-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.cpp
More file actions
40 lines (31 loc) · 828 Bytes
/
MainWindow.cpp
File metadata and controls
40 lines (31 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <QDebug>
#include <iostream>
#include "MainWindow.h"
#include "ui_MainWindow.h"
#include "SettingsWindow.h"
#include "GameWindow.h"
using namespace std;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->gameVersion->setText("v."+
QString::number(APPLICATION_RELEASE_VERSION)+"."+
QString::number(APPLICATION_RELEASE_SUBVERSION)+"."+
QString::number(APPLICATION_RELEASE_MICROVERSION));
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::onSettingsButtonClicked() const
{
SettingsWindow settingsWindow;
settingsWindow.exec();
}
void MainWindow::onPlayButtonClicked() const
{
GameWindow gameWindow;
gameWindow.exec();
}