diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-14 12:45:51 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-14 12:45:51 +0200 |
commit | c5665c40f923a477b7ec0bcd7f57c92e98634ef6 (patch) | |
tree | 44d42621f63f1a476c2971431a9bf2ce99aa2544 /src/mainwindow | |
parent | Completer: double clicking on an item activates it (diff) | |
download | smolbote-c5665c40f923a477b7ec0bcd7f57c92e98634ef6.tar.xz |
Add poi.desktop
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 0234f13..6558c65 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -38,12 +38,12 @@ MainWindow::MainWindow(std::shared_ptr<Configuration> &config, QWidget *parent) m_config = config; // create UI - resize(config->value<int>("mainwindow.width").value(), config->value<int>("mainwindow.height").value()); setWindowTitle(QString::fromStdString(config->value<std::string>("mainwindow.title").value())); - if(config->value<bool>("mainwindow.maximized").value()) - showMaximized(); - else - show(); + resize(config->value<int>("mainwindow.width").value(), config->value<int>("mainwindow.height").value()); + if(config->value<bool>("mainwindow.maximized").value()) { + setWindowState(Qt::WindowMaximized); + } + show(); createMenuBar(); |