# HG changeset patch # User Matti Hamalainen # Date 1491473048 -10800 # Node ID 2cc7c89ab649ca0151798ec4c29ed89ce90e4c6d # Parent bbdb61de5cdae96e1a21c7e34623787b034b99f8 Version information, etc. diff -r bbdb61de5cda -r 2cc7c89ab649 main.cpp --- a/main.cpp Thu Apr 06 12:32:34 2017 +0300 +++ b/main.cpp Thu Apr 06 13:04:08 2017 +0300 @@ -195,8 +195,11 @@ { // Setup UI ui->setupUi(this); - this->setWindowIcon(QIcon(QPixmap(":/img/icon-64.png"))); - + setWindowIcon(QIcon(QPixmap(":/img/icon-64.png"))); + setWindowTitle(tr("%1%2%3"). + arg(tr(APP_NAME)). + arg(tr(" versio ")). + arg(tr(APP_VERSION))); // Read config readSettings(); @@ -268,7 +271,7 @@ void SyntilistaMainWindow::readSettings() { - QSettings settings(APP_VENDOR, APP_NAME); + QSettings settings(APP_VENDOR, APP_ID); move(settings.value("pos", QPoint(100, 100)).toPoint()); resize(settings.value("size", QSize(1000, 600)).toSize()); setScale = settings.value("scale", 1.0f).toDouble(); @@ -277,7 +280,7 @@ void SyntilistaMainWindow::saveSettings() { - QSettings settings(APP_VENDOR, APP_NAME); + QSettings settings(APP_VENDOR, APP_ID); settings.setValue("pos", pos()); settings.setValue("size", size()); settings.setValue("scale", setScale); diff -r bbdb61de5cda -r 2cc7c89ab649 main.h --- a/main.h Thu Apr 06 12:32:34 2017 +0300 +++ b/main.h Thu Apr 06 13:04:08 2017 +0300 @@ -17,8 +17,9 @@ // // #define APP_VENDOR "TNSP" -#define APP_NAME "Syntilista" -#define APP_VERSION "0.1" +#define APP_ID "Kampus Syntilista" +#define APP_NAME "Café Kampus Syntilista" +#define APP_VERSION "0.2" // diff -r bbdb61de5cda -r 2cc7c89ab649 mainwindow.ui --- a/mainwindow.ui Thu Apr 06 12:32:34 2017 +0300 +++ b/mainwindow.ui Thu Apr 06 13:04:08 2017 +0300 @@ -10,9 +10,6 @@ 646 - - Café Kampus Syntilista -