mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Fix the appearance of several dialogs when using a high font DPI. Fixes issue #310
This commit is contained in:
parent
6806d78f96
commit
55bc18a9c0
@ -37,6 +37,8 @@ GroupByDialog::GroupByDialog(QWidget *parent)
|
||||
|
||||
connect(ui_->button_box->button(QDialogButtonBox::Reset), SIGNAL(clicked()),
|
||||
SLOT(Reset()));
|
||||
|
||||
resize(sizeHint());
|
||||
}
|
||||
|
||||
GroupByDialog::~GroupByDialog() {
|
||||
|
@ -34,6 +34,9 @@ LastFMConfig::LastFMConfig(QWidget *parent)
|
||||
|
||||
connect(service_, SIGNAL(AuthenticationComplete(bool)), SLOT(AuthenticationComplete(bool)));
|
||||
connect(ui_->sign_out, SIGNAL(clicked()), SLOT(SignOut()));
|
||||
|
||||
ui_->username->setMinimumWidth(QFontMetrics(QFont()).width("WWWWWWWWWWWW"));
|
||||
resize(sizeHint());
|
||||
}
|
||||
|
||||
LastFMConfig::~LastFMConfig() {
|
||||
|
@ -102,6 +102,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Note that you must be a <span style=" font-weight:600;">paid subscriber</span> to listen to Last.fm radio from within Clementine.</string>
|
||||
</property>
|
||||
|
@ -22,6 +22,8 @@ LastFMStationDialog::LastFMStationDialog(QWidget* parent)
|
||||
ui_(new Ui_LastFMStationDialog)
|
||||
{
|
||||
ui_->setupUi(this);
|
||||
|
||||
resize(sizeHint());
|
||||
}
|
||||
|
||||
LastFMStationDialog::~LastFMStationDialog() {
|
||||
|
@ -30,6 +30,11 @@ About::About(QWidget *parent)
|
||||
ui_.title->setText(QCoreApplication::applicationName());
|
||||
ui_.version->setText(tr("Version %1").arg(QCoreApplication::applicationVersion()));
|
||||
|
||||
QFont title_font;
|
||||
title_font.setBold(true);
|
||||
title_font.setPointSize(title_font.pointSize() + 4);
|
||||
ui_.title->setFont(title_font);
|
||||
|
||||
authors_ << Person("David Sansome", "me@davidsansome.com")
|
||||
<< Person("John Maguire", "john.maguire@gmail.com");
|
||||
thanks_to_ << Person("Mark Kretschmann", "markey@web.de")
|
||||
|
@ -14,11 +14,7 @@
|
||||
<string notr="true">#line {
|
||||
color: lightgrey;
|
||||
}
|
||||
|
||||
#title {
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}</string>
|
||||
</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
|
@ -76,6 +76,9 @@ SettingsDialog::SettingsDialog(QWidget* parent)
|
||||
|
||||
connect(ui_.stacked_widget, SIGNAL(currentChanged(int)), SLOT(UpdatePopupVisible()));
|
||||
connect(ui_.notifications_pretty, SIGNAL(toggled(bool)), SLOT(UpdatePopupVisible()));
|
||||
|
||||
// Make sure the list is big enough to show all the items
|
||||
ui_.list->setMinimumWidth(ui_.list->sizeHintForColumn(0));
|
||||
}
|
||||
|
||||
SettingsDialog::~SettingsDialog() {
|
||||
|
Loading…
Reference in New Issue
Block a user