# HG changeset patch # User Teemu Piippo # Date 1522144862 -10800 # Node ID 45d8eec8bd52dd3df433c5c987323ba193978367 # Parent ecad65ee47f2aefd11b89d4688d7c84fb4e11628 The border between the canvas and left tool box is now resizable diff -r ecad65ee47f2 -r 45d8eec8bd52 src/configurationoptions.txt --- a/src/configurationoptions.txt Tue Mar 27 12:49:15 2018 +0300 +++ b/src/configurationoptions.txt Tue Mar 27 13:01:02 2018 +0300 @@ -70,6 +70,7 @@ option DrawAngles = false option MainWindowState = QByteArray {} option MainWindowGeometry = QByteArray {} +option MainSplitterState = QByteArray {} # File management options option Libraries = QVector {} diff -r ecad65ee47f2 -r 45d8eec8bd52 src/mainwindow.cpp --- a/src/mainwindow.cpp Tue Mar 27 12:49:15 2018 +0300 +++ b/src/mainwindow.cpp Tue Mar 27 13:01:02 2018 +0300 @@ -63,6 +63,12 @@ ui.setupUi (this); this->restoreGeometry(config::mainWindowGeometry()); this->restoreState(config::mainWindowState()); + + if (config::mainSplitterState().isEmpty()) + this->ui.splitter->setSizes({this->width() * 2 / 3, this->width() / 3}); + else + this->ui.splitter->restoreState(config::mainSplitterState()); + m_updatingTabs = false; m_tabs = new QTabBar; m_tabs->setTabsClosable (true); @@ -420,6 +426,7 @@ // Store the state of the main window before closing. config::setMainWindowGeometry(this->saveGeometry()); config::setMainWindowState(this->saveState()); + config::setMainSplitterState(this->ui.splitter->saveState()); settingsObject().sync(); event->accept(); } diff -r ecad65ee47f2 -r 45d8eec8bd52 src/mainwindow.ui --- a/src/mainwindow.ui Tue Mar 27 12:49:15 2018 +0300 +++ b/src/mainwindow.ui Tue Mar 27 13:01:02 2018 +0300 @@ -20,209 +20,213 @@ - - - - - - 0 - 0 - - - - QFrame::StyledPanel + + + Qt::Horizontal + + + + + 0 + 0 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + 1 + + + + + 0 + 0 + 871 + 364 + - - QFrame::Raised - - - - - - - 2 - - + + Header + + - 0 - 0 - 465 - 362 - - - - Header - - - - - - - - - - - 0 - 0 - 465 - 362 - - - - Document - - - - - - - 0 - 0 - - - - QAbstractItemView::ExtendedSelection - - - - - - - - - 0 - 0 - 465 - 362 + 9 + 9 + 447 + 344 - - Tool Options - - - - - - Circle Tool Options - - - - - - - - Divisions: - - - - - - - Segments: - - - - - - - - - true - - - 1 - - - 16 - - - 16 - - - - - - - a / b - - - - - - - - - 1 - - - - 8 - - - - - 16 - - - - - 48 - - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - 0 - 0 - 465 - 362 - - - - Primitives - - - - - - QAbstractItemView::DragOnly - - - false - - - 0 - - - - - - + + + + 0 + 0 + 871 + 364 + + + + Document + + + + + + + 0 + 0 + + + + QAbstractItemView::ExtendedSelection + + + + + + + + + 0 + 0 + 871 + 364 + + + + Tool Options + + + + + + Circle Tool Options + + + + + + + + Divisions: + + + + + + + Segments: + + + + + + + + + true + + + 1 + + + 16 + + + 16 + + + + + + + a / b + + + + + + + + + 1 + + + + 8 + + + + + 16 + + + + + 48 + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + 0 + 0 + 871 + 364 + + + + Primitives + + + + + + QAbstractItemView::DragOnly + + + false + + + 0 + + + + + + +