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:
parent
3cac235232
commit
075d5e74f8
@ -124,12 +124,9 @@ DelegateConfigWrapper::rejected()
|
||||
void
|
||||
DelegateConfigWrapper::updateSizeHint()
|
||||
{
|
||||
hide();
|
||||
setSizeGripEnabled( false );
|
||||
setMinimumSize( sizeHint() );
|
||||
setMaximumSize( sizeHint() );
|
||||
|
||||
show();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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() ) );
|
||||
}
|
||||
|
@ -49,6 +49,9 @@ private slots:
|
||||
void loadHistory();
|
||||
void onHistoryLoaded();
|
||||
|
||||
signals:
|
||||
void sizeHintChanged();
|
||||
|
||||
private:
|
||||
LastFmAccount* m_account;
|
||||
Ui_LastFmConfig* m_ui;
|
||||
|
Loading…
x
Reference in New Issue
Block a user