1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

Oops, fix signals/slot params

This commit is contained in:
Leo Franchi 2012-03-31 09:26:07 -04:00
parent b3b70cea82
commit fb13ccd285
4 changed files with 6 additions and 6 deletions

View File

@ -85,7 +85,7 @@ InfoBar::InfoBar( QWidget* parent )
m_autoUpdate->setText( tr( "Automatically update" ) );
m_autoUpdate->setLayoutDirection( Qt::RightToLeft );
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 );

View File

@ -60,7 +60,7 @@ public slots:
void setAutoUpdateAvailable( bool b );
signals:
void filterTextChanged( const QString& filter );
void autoUpdateChanged( int state );
void autoUpdateChanged( bool checked );
protected:
void changeEvent( QEvent* e );

View File

@ -112,7 +112,7 @@ ViewManager::ViewManager( QObject* parent )
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( applyFilter() ) );
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_welcomeWidget, SLOT( loadData() ) );
@ -537,9 +537,9 @@ ViewManager::applyFilter()
void
ViewManager::autoUpdateChanged( int state )
ViewManager::autoUpdateChanged( bool toggled )
{
currentPage()->setAutoUpdate( state == Qt::Checked );
currentPage()->setAutoUpdate( toggled );
}

View File

@ -174,7 +174,7 @@ private slots:
void setFilter( const QString& filter );
void applyFilter();
void autoUpdateChanged( int );
void autoUpdateChanged( bool );
void onWidgetDestroyed( QWidget* widget );