1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 18:44:30 +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->usernameEdit, SIGNAL( textEdited( QString ) ), this, SLOT( resetLoginButton() ) );
connect( m_ui->passwordEdit, 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(); loadFromConfig();
m_playlistsLoading = new AnimatedSpinner( m_ui->playlistList ); m_playlistsLoading = new AnimatedSpinner( m_ui->playlistList );
@@ -203,17 +203,13 @@ SpotifyAccountConfig::loginResponse( bool success, const QString& msg, const QSt
} }
void void
SpotifyAccountConfig::selectAllPlaylists() 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 ); 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> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>435</width> <width>375</width>
<height>487</height> <height>487</height>
</rect> </rect>
</property> </property>
@@ -34,7 +34,7 @@
<string/> <string/>
</property> </property>
<property name="pixmap"> <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>
<property name="scaledContents"> <property name="scaledContents">
<bool>true</bool> <bool>true</bool>
@@ -168,7 +168,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../../../../resources.qrc"/> <include location="../../../resources.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>