1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-28 21:15:34 +00:00
openmw-tes3mp/apps/launcher/playpage.cpp

33 lines
1 KiB
C++
Raw Normal View History

2011-04-07 22:04:09 +00:00
#include <QtGui>
#include "playpage.hpp"
PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
{
QPushButton *playButton = new QPushButton(tr("Play"));
playButton->setMinimumSize(QSize(150, 50));
// TEST
mProfileModel = new QStringListModel();
QStringList profileList;
profileList << "Other" << "Bla" << "No" << "SEGFAULT!";
mProfileModel->setStringList(profileList);
mProfileComboBox = new QComboBox(this);
//mProfileComboBox->setMinimumWidth(200);
mProfileComboBox->setModel(mProfileModel);
QHBoxLayout *buttonLayout = new QHBoxLayout();
QSpacerItem *hSpacer1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
QSpacerItem *hSpacer2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
buttonLayout->addItem(hSpacer1);
buttonLayout->addWidget(playButton);
buttonLayout->addItem(hSpacer2);
QVBoxLayout *pageLayout = new QVBoxLayout(this);
pageLayout->addLayout(buttonLayout);
pageLayout->addWidget(mProfileComboBox);
}