mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
* Reimplement QLabel's clear() in QueryLabel.
This commit is contained in:
@@ -144,11 +144,7 @@ QueryLabel::text() const
|
||||
void
|
||||
QueryLabel::setText( const QString& text )
|
||||
{
|
||||
m_result.clear();
|
||||
m_query.clear();
|
||||
m_artist.clear();
|
||||
m_album.clear();
|
||||
|
||||
clear();
|
||||
QLabel::setText( m_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
|
||||
QueryLabel::onResultChanged()
|
||||
{
|
||||
|
@@ -70,6 +70,7 @@ public:
|
||||
void init();
|
||||
|
||||
public slots:
|
||||
void clear();
|
||||
void setText( const QString& text );
|
||||
void setResult( const Tomahawk::result_ptr& result );
|
||||
void setQuery( const Tomahawk::query_ptr& query );
|
||||
|
Reference in New Issue
Block a user