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()),
|
connect(ui_->button_box->button(QDialogButtonBox::Reset), SIGNAL(clicked()),
|
||||||
SLOT(Reset()));
|
SLOT(Reset()));
|
||||||
|
|
||||||
|
resize(sizeHint());
|
||||||
}
|
}
|
||||||
|
|
||||||
GroupByDialog::~GroupByDialog() {
|
GroupByDialog::~GroupByDialog() {
|
||||||
|
@ -34,6 +34,9 @@ LastFMConfig::LastFMConfig(QWidget *parent)
|
|||||||
|
|
||||||
connect(service_, SIGNAL(AuthenticationComplete(bool)), SLOT(AuthenticationComplete(bool)));
|
connect(service_, SIGNAL(AuthenticationComplete(bool)), SLOT(AuthenticationComplete(bool)));
|
||||||
connect(ui_->sign_out, SIGNAL(clicked()), SLOT(SignOut()));
|
connect(ui_->sign_out, SIGNAL(clicked()), SLOT(SignOut()));
|
||||||
|
|
||||||
|
ui_->username->setMinimumWidth(QFontMetrics(QFont()).width("WWWWWWWWWWWW"));
|
||||||
|
resize(sizeHint());
|
||||||
}
|
}
|
||||||
|
|
||||||
LastFMConfig::~LastFMConfig() {
|
LastFMConfig::~LastFMConfig() {
|
||||||
|
@ -102,6 +102,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_4">
|
<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">
|
<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>
|
<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>
|
</property>
|
||||||
|
@ -22,6 +22,8 @@ LastFMStationDialog::LastFMStationDialog(QWidget* parent)
|
|||||||
ui_(new Ui_LastFMStationDialog)
|
ui_(new Ui_LastFMStationDialog)
|
||||||
{
|
{
|
||||||
ui_->setupUi(this);
|
ui_->setupUi(this);
|
||||||
|
|
||||||
|
resize(sizeHint());
|
||||||
}
|
}
|
||||||
|
|
||||||
LastFMStationDialog::~LastFMStationDialog() {
|
LastFMStationDialog::~LastFMStationDialog() {
|
||||||
|
@ -30,6 +30,11 @@ About::About(QWidget *parent)
|
|||||||
ui_.title->setText(QCoreApplication::applicationName());
|
ui_.title->setText(QCoreApplication::applicationName());
|
||||||
ui_.version->setText(tr("Version %1").arg(QCoreApplication::applicationVersion()));
|
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")
|
authors_ << Person("David Sansome", "me@davidsansome.com")
|
||||||
<< Person("John Maguire", "john.maguire@gmail.com");
|
<< Person("John Maguire", "john.maguire@gmail.com");
|
||||||
thanks_to_ << Person("Mark Kretschmann", "markey@web.de")
|
thanks_to_ << Person("Mark Kretschmann", "markey@web.de")
|
||||||
|
@ -14,11 +14,7 @@
|
|||||||
<string notr="true">#line {
|
<string notr="true">#line {
|
||||||
color: lightgrey;
|
color: lightgrey;
|
||||||
}
|
}
|
||||||
|
</string>
|
||||||
#title {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 16px;
|
|
||||||
}</string>
|
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
|
@ -76,6 +76,9 @@ SettingsDialog::SettingsDialog(QWidget* parent)
|
|||||||
|
|
||||||
connect(ui_.stacked_widget, SIGNAL(currentChanged(int)), SLOT(UpdatePopupVisible()));
|
connect(ui_.stacked_widget, SIGNAL(currentChanged(int)), SLOT(UpdatePopupVisible()));
|
||||||
connect(ui_.notifications_pretty, SIGNAL(toggled(bool)), 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() {
|
SettingsDialog::~SettingsDialog() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user