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.
This commit is contained in:
Martin Kleusberg
2014-06-07 00:14:50 +02:00
parent 62622ae8e8
commit 8c8187740d
2 changed files with 7 additions and 6 deletions

View File

@@ -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()));

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
<width>1000</width>
<height>630</height>
</rect>
</property>
<property name="windowTitle">
@@ -278,8 +278,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>278</width>
<height>444</height>
<width>637</width>
<height>501</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
@@ -763,7 +763,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>1000</width>
<height>20</height>
</rect>
</property>
@@ -863,7 +863,7 @@
<string>SQL Log</string>
</property>
<attribute name="dockWidgetArea">
<number>8</number>
<number>2</number>
</attribute>
<widget class="QWidget" name="dockWidgetContents">
<layout class="QVBoxLayout" name="verticalLayout_5">