From 9b1c2e8b8800f96810f54aab3f7e534502e50935 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sun, 23 Aug 2020 21:27:07 +0200 Subject: [PATCH] fix some labels --- mainwindow.cpp | 4 ++++ settings.cpp | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 94d194c..9cc5c16 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -27,6 +27,8 @@ #define TRANSCRIPT_STATUS_COL 4 #define NUM_OF_COLS 5 +#define WINDOW_TITLE "Memo Uploader" + MainWindow::MainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::MainWindow){ @@ -70,6 +72,8 @@ MainWindow::MainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::MainWind /* add handler for menu configuration */ ui->menuKonfiguration->addAction("Standards", this, SLOT(openConfigurationWindow()) ); + /* set window options */ + this->setWindowTitle(WINDOW_TITLE); } void MainWindow::openConfigurationWindow(){ diff --git a/settings.cpp b/settings.cpp index bd75651..9361bb6 100644 --- a/settings.cpp +++ b/settings.cpp @@ -7,6 +7,10 @@ #include #include +#define SETTINGS_WINDOW_TITLE "Konfiguration" +#define BUTTON_TEXT_ABORT "Abbrechen" +#define BUTTON_TEXT_OK "OK" + Settings::Settings(QWidget *parent) : QMainWindow(parent), ui(new Ui::settings) @@ -65,8 +69,8 @@ Settings::Settings(QWidget *parent) : } /* buttons */ - auto ok = new QPushButton("Ok"); - auto cancle = new QPushButton("Cancle"); + auto ok = new QPushButton(BUTTON_TEXT_OK); + auto cancle = new QPushButton(BUTTON_TEXT_ABORT); layout->addWidget(ok, configOptions->length(), 0); layout->addWidget(cancle, configOptions->length(), 1);