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

* Make Spotify config dialog resize when changing layout.

This commit is contained in:
Christian Muehlhaeuser 2014-10-11 02:57:55 +02:00
parent 319e82fdee
commit 59e8aecf25
3 changed files with 17 additions and 0 deletions

View File

@ -274,6 +274,8 @@ SpotifyAccountConfig::showLoggedIn()
m_ui->loginButton->setText( tr( "Log Out" ) );
m_ui->loginButton->setEnabled( true );
emit sizeHintChanged();
}
@ -290,6 +292,8 @@ SpotifyAccountConfig::showLoggedOut()
m_ui->loginButton->setText( tr( "Log In" ) );
m_ui->loginButton->setEnabled( true );
emit sizeHintChanged();
}

View File

@ -68,6 +68,7 @@ signals:
void login( const QString& username, const QString& pw );
void logout();
void updatePrivacy( bool );
void sizeHintChanged();
protected:
void showEvent( QShowEvent* event );

View File

@ -24,6 +24,18 @@
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="icon">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>64</width>