1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00
openmw/apps/launcher/playpage.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
703 B
C++
Raw Normal View History

2011-04-07 22:04:09 +00:00
#include "playpage.hpp"
#include <QListView>
2013-10-25 16:17:26 +00:00
Launcher::PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
2011-04-07 22:04:09 +00:00
{
setObjectName ("PlayPage");
2013-03-03 00:49:41 +00:00
setupUi(this);
profilesComboBox->setView(new QListView());
connect(profilesComboBox, qOverload<int>(&QComboBox::activated), this, &PlayPage::signalProfileChanged);
connect(playButton, &QPushButton::clicked, this, &PlayPage::slotPlayClicked);
2013-03-03 00:49:41 +00:00
}
2013-10-25 16:17:26 +00:00
void Launcher::PlayPage::setProfilesModel(QAbstractItemModel *model)
2013-03-03 00:49:41 +00:00
{
profilesComboBox->setModel(model);
}
2013-10-25 16:17:26 +00:00
void Launcher::PlayPage::setProfilesIndex(int index)
2013-03-03 00:49:41 +00:00
{
profilesComboBox->setCurrentIndex(index);
}
2013-10-25 16:17:26 +00:00
void Launcher::PlayPage::slotPlayClicked()
2013-03-03 00:49:41 +00:00
{
emit playButtonClicked();
}