connected to gui
This commit is contained in:
parent
42e884aced
commit
8a6e916876
7 changed files with 165 additions and 3 deletions
20
simulator_SIC_XE/gui/qt/MainWindow.cpp
Normal file
20
simulator_SIC_XE/gui/qt/MainWindow.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "MainWindow.h"
|
||||
#include "MachineController.h"
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
QWidget *central = new QWidget(this);
|
||||
auto *layout = new QVBoxLayout(central);
|
||||
auto *label = new QLabel("SIC/XE Simulator — GUI stub", central);
|
||||
label->setAlignment(Qt::AlignCenter);
|
||||
layout->addWidget(label);
|
||||
setCentralWidget(central);
|
||||
|
||||
m_controller = new MachineController(this);
|
||||
setWindowTitle("SIC/XE Simulator");
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() = default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue