1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 17:14:00 +02:00

Select all facility - code review fixes

This commit is contained in:
=
2012-09-30 20:31:22 +01:00
parent 57b6fe2211
commit 54fee8ffed
2 changed files with 6 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ SpotifyAccountConfig::SpotifyAccountConfig( SpotifyAccount *account )
connect( m_ui->usernameEdit, SIGNAL( textEdited( QString ) ), this, SLOT( resetLoginButton() ) );
connect( m_ui->passwordEdit, SIGNAL( textEdited( QString ) ), this, SLOT( resetLoginButton() ) );
connect( m_ui->selectAllCheckbox, SIGNAL( stateChanged( int ) ), this, SLOT( selectAllPlaylists()));
connect( m_ui->selectAllCheckbox, SIGNAL( stateChanged( int ) ), this, SLOT( selectAllPlaylists() ) );
loadFromConfig();
m_playlistsLoading = new AnimatedSpinner( m_ui->playlistList );
@@ -203,17 +203,13 @@ SpotifyAccountConfig::loginResponse( bool success, const QString& msg, const QSt
}
void
SpotifyAccountConfig::selectAllPlaylists()
{
qDebug() << Q_FUNC_INFO << "Setting playlists to sync";
for(int i = 0; i < m_ui->playlistList->count(); i++)
for( int i = 0; i < m_ui->playlistList->count(); i++ )
{
QListWidgetItem* item = m_ui->playlistList->item( i );
item->setCheckState(m_ui->selectAllCheckbox->checkState());
item->setCheckState( m_ui->selectAllCheckbox->checkState() );
}
}

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>435</width>
<width>375</width>
<height>487</height>
</rect>
</property>
@@ -34,7 +34,7 @@
<string/>
</property>
<property name="pixmap">
<pixmap resource="../../../../resources.qrc">:/data/images/spotify-logo.png</pixmap>
<pixmap resource="../../../resources.qrc">:/data/images/spotify-logo.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
@@ -168,7 +168,7 @@
</layout>
</widget>
<resources>
<include location="../../../../resources.qrc"/>
<include location="../../../resources.qrc"/>
</resources>
<connections/>
</ui>