mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Fixed a bug in the combobox popup font size, items overlapping
This commit is contained in:
parent
be43fa334f
commit
4737b20e4c
@ -15,10 +15,15 @@ PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
|
||||
QLabel *profileLabel = new QLabel(tr("Current Profile:"), playWidget);
|
||||
profileLabel->setObjectName("ProfileLabel");
|
||||
|
||||
// Hacks to get the stylesheet look properly on different platforms
|
||||
QPlastiqueStyle *style = new QPlastiqueStyle;
|
||||
QFont font = QApplication::font();
|
||||
font.setPointSize(12); // Fixes problem with overlapping items
|
||||
|
||||
mProfilesComboBox = new QComboBox(playWidget);
|
||||
mProfilesComboBox->setObjectName("ProfilesComboBox");
|
||||
mProfilesComboBox->setStyle(style);
|
||||
mProfilesComboBox->setFont(font);
|
||||
|
||||
QGridLayout *playLayout = new QGridLayout(playWidget);
|
||||
|
||||
@ -40,4 +45,4 @@ PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
|
||||
|
||||
pageLayout->addWidget(playWidget);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user