Skip to content

Commit f452e84

Browse files
committed
Merge branch 'release/2.0.14'
2 parents 3e1cc36 + 7acc614 commit f452e84

19 files changed

+369
-282
lines changed

MiniZincIDE/MiniZincIDE.pro

+14-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@
44
#
55
#-------------------------------------------------
66

7-
QT += core gui webkitwidgets
7+
QT += core gui widgets
88

9-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
9+
greaterThan(QT_MAJOR_VERSION, 4): {
10+
greaterThan(QT_MINOR_VERSION, 5): {
11+
QT += webenginewidgets
12+
DEFINES += MINIZINC_IDE_HAVE_WEBENGINE
13+
}
14+
!greaterThan(QT_MINOR_VERSION, 5): {
15+
QT += webkitwidgets
16+
}
17+
}
1018

1119
TARGET = MiniZincIDE
1220
TEMPLATE = app
1321

14-
VERSION = 2.0.13
22+
VERSION = 2.0.14
1523
DEFINES += MINIZINC_IDE_VERSION=\\\"$$VERSION\\\"
1624

1725
bundled {
@@ -86,3 +94,6 @@ FORMS += \
8694

8795
RESOURCES += \
8896
minizincide.qrc
97+
98+
target.path = /bin
99+
INSTALLS += target

MiniZincIDE/aboutdialog.ui

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
5252
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
5353
p, li { white-space: pre-wrap; }
54-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.Helvetica Neue DeskInterface'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt;
55-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:30px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://www.minizinc.org&quot;&gt;&lt;img src=&quot;:/images/mznlogo.png&quot; width=&quot;128&quot; height=&quot;108&quot; /&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI';&quot;&gt; &lt;/span&gt;&lt;/p&gt;
54+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.SF NS Text'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt;
55+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:30px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://www.minizinc.org&quot;&gt;&lt;img src=&quot;:/images/mznicon.png&quot; width=&quot;108&quot; height=&quot;108&quot; /&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI';&quot;&gt; &lt;/span&gt;&lt;/p&gt;
5656
&lt;p style=&quot; margin-top:14px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:large; font-weight:600;&quot;&gt;The MiniZinc IDE&lt;/span&gt;&lt;/p&gt;
5757
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI';&quot;&gt;Version $VERSION&lt;/span&gt;&lt;/p&gt;
5858
&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:'.Lucida Grande UI';&quot;&gt;&lt;br /&gt;&lt;/p&gt;

MiniZincIDE/codeeditor.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ void CodeEditor::keyPressEvent(QKeyEvent *e)
129129
e->accept();
130130
QTextCursor cursor(textCursor());
131131
cursor.insertText(" ");
132+
} else if (e->key() == Qt::Key_Return) {
133+
e->accept();
134+
QTextCursor cursor(textCursor());
135+
QString curLine = cursor.block().text();
136+
QRegExp leadingWhitespace("^(\\s*)");
137+
cursor.insertText("\n");
138+
if (leadingWhitespace.indexIn(curLine) != -1) {
139+
cursor.insertText(leadingWhitespace.cap(1));
140+
}
132141
} else {
133142
QPlainTextEdit::keyPressEvent(e);
134143
}

0 commit comments

Comments
 (0)