1
0
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:
David Sansome 2010-05-17 00:47:43 +00:00
parent 6806d78f96
commit 55bc18a9c0
7 changed files with 22 additions and 5 deletions

View File

@ -37,6 +37,8 @@ GroupByDialog::GroupByDialog(QWidget *parent)
connect(ui_->button_box->button(QDialogButtonBox::Reset), SIGNAL(clicked()),
SLOT(Reset()));
resize(sizeHint());
}
GroupByDialog::~GroupByDialog() {

View File

@ -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() {

View File

@ -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 &lt;span style=&quot; font-weight:600;&quot;&gt;paid subscriber&lt;/span&gt; to listen to Last.fm radio from within Clementine.</string>
</property>

View File

@ -22,6 +22,8 @@ LastFMStationDialog::LastFMStationDialog(QWidget* parent)
ui_(new Ui_LastFMStationDialog)
{
ui_->setupUi(this);
resize(sizeHint());
}
LastFMStationDialog::~LastFMStationDialog() {

View File

@ -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")

View File

@ -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>

View File

@ -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() {