forked from teamnwah/openmw-tes3coop
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);
|
||||
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…
Reference in a new issue