You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
14 years ago
|
#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);
|
||
|
|
||
|
}
|