mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Make Spotify config dialog resize when changing layout.
This commit is contained in:
@@ -274,6 +274,8 @@ SpotifyAccountConfig::showLoggedIn()
|
|||||||
|
|
||||||
m_ui->loginButton->setText( tr( "Log Out" ) );
|
m_ui->loginButton->setText( tr( "Log Out" ) );
|
||||||
m_ui->loginButton->setEnabled( true );
|
m_ui->loginButton->setEnabled( true );
|
||||||
|
|
||||||
|
emit sizeHintChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -290,6 +292,8 @@ SpotifyAccountConfig::showLoggedOut()
|
|||||||
|
|
||||||
m_ui->loginButton->setText( tr( "Log In" ) );
|
m_ui->loginButton->setText( tr( "Log In" ) );
|
||||||
m_ui->loginButton->setEnabled( true );
|
m_ui->loginButton->setEnabled( true );
|
||||||
|
|
||||||
|
emit sizeHintChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -68,6 +68,7 @@ signals:
|
|||||||
void login( const QString& username, const QString& pw );
|
void login( const QString& username, const QString& pw );
|
||||||
void logout();
|
void logout();
|
||||||
void updatePrivacy( bool );
|
void updatePrivacy( bool );
|
||||||
|
void sizeHintChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void showEvent( QShowEvent* event );
|
void showEvent( QShowEvent* event );
|
||||||
|
@@ -24,6 +24,18 @@
|
|||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="icon">
|
<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">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>64</width>
|
<width>64</width>
|
||||||
|
Reference in New Issue
Block a user