diff options
Diffstat (limited to 'mainwindow.cpp')
| -rw-r--r-- | mainwindow.cpp | 10 |
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) { |
