mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 12:09:41 +00:00
Fixed a bug in the combobox popup font size, items overlapping
This commit is contained in:
parent
be43fa334f
commit
4737b20e4c
1 changed files with 6 additions and 1 deletions
|
@ -15,10 +15,15 @@ PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
|
||||||
QLabel *profileLabel = new QLabel(tr("Current Profile:"), playWidget);
|
QLabel *profileLabel = new QLabel(tr("Current Profile:"), playWidget);
|
||||||
profileLabel->setObjectName("ProfileLabel");
|
profileLabel->setObjectName("ProfileLabel");
|
||||||
|
|
||||||
|
// Hacks to get the stylesheet look properly on different platforms
|
||||||
QPlastiqueStyle *style = new QPlastiqueStyle;
|
QPlastiqueStyle *style = new QPlastiqueStyle;
|
||||||
|
QFont font = QApplication::font();
|
||||||
|
font.setPointSize(12); // Fixes problem with overlapping items
|
||||||
|
|
||||||
mProfilesComboBox = new QComboBox(playWidget);
|
mProfilesComboBox = new QComboBox(playWidget);
|
||||||
mProfilesComboBox->setObjectName("ProfilesComboBox");
|
mProfilesComboBox->setObjectName("ProfilesComboBox");
|
||||||
mProfilesComboBox->setStyle(style);
|
mProfilesComboBox->setStyle(style);
|
||||||
|
mProfilesComboBox->setFont(font);
|
||||||
|
|
||||||
QGridLayout *playLayout = new QGridLayout(playWidget);
|
QGridLayout *playLayout = new QGridLayout(playWidget);
|
||||||
|
|
||||||
|
@ -40,4 +45,4 @@ PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
|
||||||
|
|
||||||
pageLayout->addWidget(playWidget);
|
pageLayout->addWidget(playWidget);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue