#include "playpage.hpp" #include Launcher::PlayPage::PlayPage(QWidget* parent) : QWidget(parent) { setObjectName("PlayPage"); setupUi(this); profilesComboBox->setView(new QListView()); connect(profilesComboBox, qOverload(&QComboBox::activated), this, &PlayPage::signalProfileChanged); connect(playButton, &QPushButton::clicked, this, &PlayPage::slotPlayClicked); } void Launcher::PlayPage::setProfilesModel(QAbstractItemModel* model) { profilesComboBox->setModel(model); } void Launcher::PlayPage::setProfilesIndex(int index) { profilesComboBox->setCurrentIndex(index); } void Launcher::PlayPage::slotPlayClicked() { emit playButtonClicked(); }