summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-09-20 22:16:53 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-09-24 07:48:17 +0200
commit6e40278f58e63adcf6459242219f3a8d282fdebc (patch)
treefab20b86866de821ab9bac9854e20724c9c749cc
parentfa3d7da179b25d2ece40b56f5f9adddb3831906e (diff)
made doc resizable
-rw-r--r--src/gui/mainwindow.cpp1
-rw-r--r--src/gui/stylepalette.ui2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
index 4525aef..f9743a1 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
@@ -37,6 +37,7 @@ MainWindow::MainWindow(QWidget *parent) :
_stylePalette = new StylePalette(this);
addDockWidget(Qt::RightDockWidgetArea, _stylePalette);
+ resizeDocks({_stylePalette}, {130}, Qt::Horizontal);
_tikzScene = new TikzScene(_tikzDocument, _toolPalette, _stylePalette, this);
ui->tikzView->setScene(_tikzScene);
diff --git a/src/gui/stylepalette.ui b/src/gui/stylepalette.ui
index 10e7392..681d83e 100644
--- a/src/gui/stylepalette.ui
+++ b/src/gui/stylepalette.ui
@@ -24,7 +24,7 @@
</property>
<property name="maximumSize">
<size>
- <width>130</width>
+ <width>400</width>
<height>524287</height>
</size>
</property>