From 075d5e74f8e9b7a8df735e264e41ef64832379cd Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 25 May 2012 16:20:48 -0400 Subject: [PATCH] TWK-903: Resize last.fm dialog when beginning to import --- src/DelegateConfigWrapper.cpp | 3 --- src/accounts/lastfm/LastFmConfig.cpp | 2 ++ src/accounts/lastfm/LastFmConfig.h | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/DelegateConfigWrapper.cpp b/src/DelegateConfigWrapper.cpp index abd1de5ad..fccd60606 100644 --- a/src/DelegateConfigWrapper.cpp +++ b/src/DelegateConfigWrapper.cpp @@ -124,12 +124,9 @@ DelegateConfigWrapper::rejected() void DelegateConfigWrapper::updateSizeHint() { - hide(); setSizeGripEnabled( false ); setMinimumSize( sizeHint() ); setMaximumSize( sizeHint() ); - - show(); } diff --git a/src/accounts/lastfm/LastFmConfig.cpp b/src/accounts/lastfm/LastFmConfig.cpp index 9fd240abe..c9fdcf357 100644 --- a/src/accounts/lastfm/LastFmConfig.cpp +++ b/src/accounts/lastfm/LastFmConfig.cpp @@ -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() ) ); } diff --git a/src/accounts/lastfm/LastFmConfig.h b/src/accounts/lastfm/LastFmConfig.h index cc6bfc8fb..c7c53f2b9 100644 --- a/src/accounts/lastfm/LastFmConfig.h +++ b/src/accounts/lastfm/LastFmConfig.h @@ -49,6 +49,9 @@ private slots: void loadHistory(); void onHistoryLoaded(); +signals: + void sizeHintChanged(); + private: LastFmAccount* m_account; Ui_LastFmConfig* m_ui;