mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
* Fixed filter behaviour.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
|
|
||||||
|
#include "viewmanager.h"
|
||||||
#include "thirdparty/Qocoa/qsearchfield.h"
|
#include "thirdparty/Qocoa/qsearchfield.h"
|
||||||
#include "utils/tomahawkutils.h"
|
#include "utils/tomahawkutils.h"
|
||||||
#include "utils/logger.h"
|
#include "utils/logger.h"
|
||||||
@@ -77,6 +78,8 @@ InfoBar::InfoBar( QWidget* parent )
|
|||||||
ui->horizontalLayout->addWidget( m_searchWidget );
|
ui->horizontalLayout->addWidget( m_searchWidget );
|
||||||
|
|
||||||
setAutoFillBackground( true );
|
setAutoFillBackground( true );
|
||||||
|
|
||||||
|
connect( ViewManager::instance(), SIGNAL( filterAvailable( bool ) ), SLOT( setFilterAvailable( bool ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -124,6 +127,20 @@ InfoBar::setPixmap( const QPixmap& p )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
InfoBar::setFilter( const QString& filter )
|
||||||
|
{
|
||||||
|
m_searchWidget->setText( filter );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
InfoBar::setFilterAvailable( bool b )
|
||||||
|
{
|
||||||
|
m_searchWidget->setVisible( b );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
InfoBar::onFilterEdited()
|
InfoBar::onFilterEdited()
|
||||||
{
|
{
|
||||||
|
@@ -47,6 +47,9 @@ public slots:
|
|||||||
void setLongDescription( const QString& s );
|
void setLongDescription( const QString& s );
|
||||||
void setPixmap( const QPixmap& p );
|
void setPixmap( const QPixmap& p );
|
||||||
|
|
||||||
|
void setFilter( const QString& filter );
|
||||||
|
void setFilterAvailable( bool b );
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void filterTextChanged( const QString& filter );
|
void filterTextChanged( const QString& filter );
|
||||||
|
|
||||||
|
@@ -630,7 +630,7 @@ ViewManager::updateView()
|
|||||||
connect( currentPlaylistInterface()->object(), SIGNAL( shuffleModeChanged( bool ) ),
|
connect( currentPlaylistInterface()->object(), SIGNAL( shuffleModeChanged( bool ) ),
|
||||||
SIGNAL( shuffleModeChanged( bool ) ) );
|
SIGNAL( shuffleModeChanged( bool ) ) );
|
||||||
|
|
||||||
// m_topbar->setFilter( currentPlaylistInterface()->filter() );
|
m_infobar->setFilter( currentPlaylistInterface()->filter() );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( currentPage()->showStatsBar() && currentPlaylistInterface() )
|
if ( currentPage()->showStatsBar() && currentPlaylistInterface() )
|
||||||
|
Reference in New Issue
Block a user