1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 21:32:42 +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-08 00:04:09 +02:00
#include "playpage.hpp"
#include <QListView>
2013-10-25 11:17:26 -05:00
Launcher::PlayPage::PlayPage(QWidget *parent) : QWidget(parent)
2011-04-08 00:04:09 +02:00
{
setObjectName ("PlayPage");
2013-03-03 01:49:41 +01: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 01:49:41 +01:00
}
2013-10-25 11:17:26 -05:00
void Launcher::PlayPage::setProfilesModel(QAbstractItemModel *model)
2013-03-03 01:49:41 +01:00
{
profilesComboBox->setModel(model);
}
2013-10-25 11:17:26 -05:00
void Launcher::PlayPage::setProfilesIndex(int index)
2013-03-03 01:49:41 +01:00
{
profilesComboBox->setCurrentIndex(index);
}
2013-10-25 11:17:26 -05:00
void Launcher::PlayPage::slotPlayClicked()
2013-03-03 01:49:41 +01:00
{
emit playButtonClicked();
}