mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
* Reimplement QLabel's clear() in QueryLabel.
This commit is contained in:
@@ -144,11 +144,7 @@ QueryLabel::text() const
|
|||||||
void
|
void
|
||||||
QueryLabel::setText( const QString& text )
|
QueryLabel::setText( const QString& text )
|
||||||
{
|
{
|
||||||
m_result.clear();
|
clear();
|
||||||
m_query.clear();
|
|
||||||
m_artist.clear();
|
|
||||||
m_album.clear();
|
|
||||||
|
|
||||||
QLabel::setText( m_text );
|
QLabel::setText( m_text );
|
||||||
m_text = text;
|
m_text = text;
|
||||||
|
|
||||||
@@ -160,6 +156,20 @@ QueryLabel::setText( const QString& text )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
QueryLabel::clear()
|
||||||
|
{
|
||||||
|
m_type = None;
|
||||||
|
|
||||||
|
m_result.clear();
|
||||||
|
m_query.clear();
|
||||||
|
m_artist.clear();
|
||||||
|
m_album.clear();
|
||||||
|
|
||||||
|
QLabel::clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
QueryLabel::onResultChanged()
|
QueryLabel::onResultChanged()
|
||||||
{
|
{
|
||||||
|
@@ -70,6 +70,7 @@ public:
|
|||||||
void init();
|
void init();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
void clear();
|
||||||
void setText( const QString& text );
|
void setText( const QString& text );
|
||||||
void setResult( const Tomahawk::result_ptr& result );
|
void setResult( const Tomahawk::result_ptr& result );
|
||||||
void setQuery( const Tomahawk::query_ptr& query );
|
void setQuery( const Tomahawk::query_ptr& query );
|
||||||
|
Reference in New Issue
Block a user