summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-03-30 10:33:49 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-03-30 10:33:49 +0200
commit80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab (patch)
tree69cd6d7a351bc07d4c41ffc271d17e8afc45dff4 /mainwindow.cpp
parent74d0a4a6f634010db71d05536cffef15bfb1edd9 (diff)
downloadGUI_SS2015-80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab.tar.gz
GUI_SS2015-80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab.zip
Adds comments and uses naming convention for auto connection
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 94b879e..155bd28 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -13,7 +13,11 @@ MainWindow::~MainWindow()
delete ui;
}
-void MainWindow::on_action_Preferences_triggered()
+/**
+ * @brief MainWindow::on_actionPreferences_triggered
+ * Creates a DlgPreferences Dialog and sets hight and width of the MainWindow.
+ */
+void MainWindow::on_actionPreferences_triggered()
{
qDebug() << "Preferences called";
DlgPreferences *tmp = new DlgPreferences(this);
@@ -25,8 +29,8 @@ void MainWindow::on_action_Preferences_triggered()
{
qDebug() << "DlgPreferences okay clicked.";
- int width = tmp->width();
- int height = tmp->height();
+ int width = tmp->Width();
+ int height = tmp->Height();
if(width >= 100 && width <= 800 && height >= 100 && height <= 800)
{