mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Oops, fix signals/slot params
This commit is contained in:
@@ -85,7 +85,7 @@ InfoBar::InfoBar( QWidget* parent )
|
|||||||
m_autoUpdate->setText( tr( "Automatically update" ) );
|
m_autoUpdate->setText( tr( "Automatically update" ) );
|
||||||
m_autoUpdate->setLayoutDirection( Qt::RightToLeft );
|
m_autoUpdate->setLayoutDirection( Qt::RightToLeft );
|
||||||
m_autoUpdate->setPalette( whitePal );
|
m_autoUpdate->setPalette( whitePal );
|
||||||
connect( m_autoUpdate, SIGNAL( toggled(bool) ), this, SIGNAL( autoUpdateChanged( int ) ) );
|
connect( m_autoUpdate, SIGNAL( toggled( bool ) ), this, SIGNAL( autoUpdateChanged( bool ) ) );
|
||||||
|
|
||||||
ui->horizontalLayout->addWidget( m_autoUpdate );
|
ui->horizontalLayout->addWidget( m_autoUpdate );
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ public slots:
|
|||||||
void setAutoUpdateAvailable( bool b );
|
void setAutoUpdateAvailable( bool b );
|
||||||
signals:
|
signals:
|
||||||
void filterTextChanged( const QString& filter );
|
void filterTextChanged( const QString& filter );
|
||||||
void autoUpdateChanged( int state );
|
void autoUpdateChanged( bool checked );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent( QEvent* e );
|
void changeEvent( QEvent* e );
|
||||||
|
@@ -112,7 +112,7 @@ ViewManager::ViewManager( QObject* parent )
|
|||||||
|
|
||||||
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( applyFilter() ) );
|
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( applyFilter() ) );
|
||||||
connect( m_infobar, SIGNAL( filterTextChanged( QString ) ), SLOT( setFilter( QString ) ) );
|
connect( m_infobar, SIGNAL( filterTextChanged( QString ) ), SLOT( setFilter( QString ) ) );
|
||||||
connect( m_infobar, SIGNAL( autoUpdateChanged( int ) ), SLOT( autoUpdateChanged( int ) ) );
|
connect( m_infobar, SIGNAL( autoUpdateChanged( bool ) ), SLOT( autoUpdateChanged( bool ) ) );
|
||||||
|
|
||||||
connect( this, SIGNAL( tomahawkLoaded() ), m_whatsHotWidget, SLOT( fetchData() ) );
|
connect( this, SIGNAL( tomahawkLoaded() ), m_whatsHotWidget, SLOT( fetchData() ) );
|
||||||
connect( this, SIGNAL( tomahawkLoaded() ), m_welcomeWidget, SLOT( loadData() ) );
|
connect( this, SIGNAL( tomahawkLoaded() ), m_welcomeWidget, SLOT( loadData() ) );
|
||||||
@@ -537,9 +537,9 @@ ViewManager::applyFilter()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ViewManager::autoUpdateChanged( int state )
|
ViewManager::autoUpdateChanged( bool toggled )
|
||||||
{
|
{
|
||||||
currentPage()->setAutoUpdate( state == Qt::Checked );
|
currentPage()->setAutoUpdate( toggled );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -174,7 +174,7 @@ private slots:
|
|||||||
void setFilter( const QString& filter );
|
void setFilter( const QString& filter );
|
||||||
void applyFilter();
|
void applyFilter();
|
||||||
|
|
||||||
void autoUpdateChanged( int );
|
void autoUpdateChanged( bool );
|
||||||
|
|
||||||
void onWidgetDestroyed( QWidget* widget );
|
void onWidgetDestroyed( QWidget* widget );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user