1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

TWK-903: Resize last.fm dialog when beginning to import

This commit is contained in:
Leo Franchi 2012-05-25 16:20:48 -04:00
parent 3cac235232
commit 075d5e74f8
3 changed files with 5 additions and 3 deletions

View File

@ -124,12 +124,9 @@ DelegateConfigWrapper::rejected()
void
DelegateConfigWrapper::updateSizeHint()
{
hide();
setSizeGripEnabled( false );
setMinimumSize( sizeHint() );
setMaximumSize( sizeHint() );
show();
}

View File

@ -119,6 +119,8 @@ LastFmConfig::loadHistory()
m_ui->importHistory->setEnabled( false );
m_ui->progressBar->show();
emit sizeHintChanged();
QNetworkReply* reply = lastfm::User( m_ui->username->text().toLower() ).getRecentTracks( 200, m_page );
connect( reply, SIGNAL( finished() ), SLOT( onHistoryLoaded() ) );
}

View File

@ -49,6 +49,9 @@ private slots:
void loadHistory();
void onHistoryLoaded();
signals:
void sizeHintChanged();
private:
LastFmAccount* m_account;
Ui_LastFmConfig* m_ui;