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:
parent
319e82fdee
commit
59e8aecf25
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user