From 23a7efbc6aacef5d2be522fbe711d928f048f807 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 14 Oct 2013 14:49:01 +0300 Subject: [PATCH] The main window is maximized after start application. --HG-- branch : develop --- main.cpp | 1 + mainwindow.ui | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 6ed51ac57..5f8fea974 100644 --- a/main.cpp +++ b/main.cpp @@ -60,6 +60,7 @@ int main(int argc, char *argv[]){ app.installTranslator(&appTranslator); MainWindow w; + w.setWindowState(w.windowState() ^ Qt::WindowMaximized); app.setWindowIcon(QIcon(":/icon/64x64/icon64x64.png")); TableWindow table; QObject::connect(&w, &MainWindow::ModelChosen, &table, &TableWindow::ModelChosen); diff --git a/mainwindow.ui b/mainwindow.ui index 5a99c2733..b842a4655 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -303,7 +303,7 @@ 0 0 - 137 + 150 58 @@ -379,7 +379,7 @@ 0 0 - 137 + 150 58