mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 11:50:37 +02:00
TWK-903: Resize last.fm dialog when beginning to import
This commit is contained in:
@@ -124,12 +124,9 @@ DelegateConfigWrapper::rejected()
|
|||||||
void
|
void
|
||||||
DelegateConfigWrapper::updateSizeHint()
|
DelegateConfigWrapper::updateSizeHint()
|
||||||
{
|
{
|
||||||
hide();
|
|
||||||
setSizeGripEnabled( false );
|
setSizeGripEnabled( false );
|
||||||
setMinimumSize( sizeHint() );
|
setMinimumSize( sizeHint() );
|
||||||
setMaximumSize( sizeHint() );
|
setMaximumSize( sizeHint() );
|
||||||
|
|
||||||
show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -119,6 +119,8 @@ LastFmConfig::loadHistory()
|
|||||||
m_ui->importHistory->setEnabled( false );
|
m_ui->importHistory->setEnabled( false );
|
||||||
m_ui->progressBar->show();
|
m_ui->progressBar->show();
|
||||||
|
|
||||||
|
emit sizeHintChanged();
|
||||||
|
|
||||||
QNetworkReply* reply = lastfm::User( m_ui->username->text().toLower() ).getRecentTracks( 200, m_page );
|
QNetworkReply* reply = lastfm::User( m_ui->username->text().toLower() ).getRecentTracks( 200, m_page );
|
||||||
connect( reply, SIGNAL( finished() ), SLOT( onHistoryLoaded() ) );
|
connect( reply, SIGNAL( finished() ), SLOT( onHistoryLoaded() ) );
|
||||||
}
|
}
|
||||||
|
@@ -49,6 +49,9 @@ private slots:
|
|||||||
void loadHistory();
|
void loadHistory();
|
||||||
void onHistoryLoaded();
|
void onHistoryLoaded();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void sizeHintChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LastFmAccount* m_account;
|
LastFmAccount* m_account;
|
||||||
Ui_LastFmConfig* m_ui;
|
Ui_LastFmConfig* m_ui;
|
||||||
|
Reference in New Issue
Block a user