From 8c8187740df499a847f85d3fd82b804c8d7d9af3 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sat, 7 Jun 2014 00:14:50 +0200 Subject: [PATCH] MainWindow: Increase default size, tabify docks by default Increase the default size of the main window a bit. Move the SQL log dock to the right side and tabify it with the plot dock. This way there is much more space for actual information by default. The idea behind both changes is to make it easier for first time users to find their way around and offer them a more appropriate window layout for the usual tasks. The layout is still entirely configurable and non-first-time users are not affected at all. --- src/MainWindow.cpp | 1 + src/MainWindow.ui | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 472a34f4..a0b45b10 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -124,6 +124,7 @@ void MainWindow::init() connect(ui->dbTreeWidget->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(changeTreeSelection())); // Load window settings + tabifyDockWidget(ui->dockPlot, ui->dockLog); restoreGeometry(PreferencesDialog::getSettingsValue("MainWindow", "geometry").toByteArray()); restoreState(PreferencesDialog::getSettingsValue("MainWindow", "windowState").toByteArray()); ui->comboLogSubmittedBy->setCurrentIndex(ui->comboLogSubmittedBy->findText(PreferencesDialog::getSettingsValue("SQLLogDock", "Log").toString())); diff --git a/src/MainWindow.ui b/src/MainWindow.ui index ba9d49f1..855c77c5 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -6,8 +6,8 @@ 0 0 - 800 - 600 + 1000 + 630 @@ -278,8 +278,8 @@ 0 0 - 278 - 444 + 637 + 501 @@ -763,7 +763,7 @@ 0 0 - 800 + 1000 20 @@ -863,7 +863,7 @@ SQL Log - 8 + 2