-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartdialog.cpp
More file actions
34 lines (27 loc) · 792 Bytes
/
startdialog.cpp
File metadata and controls
34 lines (27 loc) · 792 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
#include "startdialog.h"
#include "ui_startdialog.h"
#include "version.h"
StartDialog::StartDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::startdialog)
{
ui->setupUi(this);
//Display version number
ui->labelInfo->setText(QString(std::string("ScoringEngine\n" + std::to_string(VERSION_YEAR) + "\nVersion " + std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_PATCH)).c_str()));
}
StartDialog::~StartDialog()
{
delete ui;
}
void StartDialog::on_btnSingle_clicked()
{
}
void StartDialog::on_btnMulti_clicked()
{
}
void StartDialog::on_btnEditor_clicked()
{
this->hide();
this->editorWindow= new MainWindow(0); //setting to 'this' instead of 0 can cause a crash later
this->editorWindow->show();
}