src/mainwindow.cpp

Sat, 03 Aug 2019 01:18:56 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 03 Aug 2019 01:18:56 +0300
changeset 1
51d14b0c68c0
parent 0
f9f4d4d6f162
child 3
55a55a9ec2c2
permissions
-rw-r--r--

add version

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "version.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow{parent},
    ui{*new Ui_MainWindow}
{
	ui.setupUi(this);
	connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close);
	QString title = ::appName;
	title += " ";
	title += fullVersionString();
	setWindowTitle(title);
}

MainWindow::~MainWindow()
{
    delete &this->ui;
}

mercurial