summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-10-20 10:59:37 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-10-20 10:59:37 +0200
commit56b21f3107fb36edeed15544a30238e4f57b977c (patch)
tree85ce810e29413f1835bf2ce76cce2218e070bf98 /src
parent092c5c6b84b92a40e210ee7447fc7dbd3b492ca4 (diff)
added mac target for qt 5.6
Diffstat (limited to 'src')
-rw-r--r--src/gui/mainwindow.cpp6
-rw-r--r--src/gui/mainwindow.ui3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
index acbad69..d4d13b5 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
@@ -70,6 +70,12 @@ MainWindow::MainWindow(QWidget *parent) :
connect(_tikzDocument->undoStack(), SIGNAL(cleanChanged(bool)), this, SLOT(updateFileName()));
_menu->addDocks(createPopupMenu());
+
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
+ ui->tikzSource->setTabStopDistance(20.0);
+#else
+ ui->tikzSource->setTabStopWidth(20);
+#endif
}
MainWindow::~MainWindow()
diff --git a/src/gui/mainwindow.ui b/src/gui/mainwindow.ui
index 27e0127..bedc695 100644
--- a/src/gui/mainwindow.ui
+++ b/src/gui/mainwindow.ui
@@ -62,9 +62,6 @@ p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Courier New'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'.SF NS Text'; font-size:13pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
- <property name="tabStopDistance">
- <double>20.000000000000000</double>
- </property>
</widget>
</widget>
</item>