Start working on settings

This commit is contained in:
SimoneN64
2024-01-22 21:01:16 +01:00
parent cc1cb8b961
commit bc7849c765
3 changed files with 23 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
#include <QMessageBox>
#include <QKeyEvent>
#include <MainWindow.hpp>
#include <QSlider>
MainWindowController::MainWindowController() noexcept {
view.setupUi(this);
@@ -55,4 +56,12 @@ void MainWindowController::ConnectSignalsToSlots() noexcept {
"Kaizen is licensed under the BSD 3-clause license.\n"
"Nintendo 64 is a registered trademarks of Nintendo Co., Ltd."));
});
connect(view.actionSettings, &QAction::triggered, this, [this]() {
auto layout = new QVBoxLayout(this);
layout->addWidget(new QSlider(Qt::Horizontal));
auto settings = new QWidget;
settings->setLayout(layout);
settings->show();
});
}