diff --git a/src/libs/qmljs/qmljsreformatter.cpp b/src/libs/qmljs/qmljsreformatter.cpp index 91d4db897e5..7744bfa9711 100644 --- a/src/libs/qmljs/qmljsreformatter.cpp +++ b/src/libs/qmljs/qmljsreformatter.cpp @@ -173,8 +173,11 @@ protected: QStringList lines = str.split(QLatin1Char('\n')); bool multiline = lines.length() > 1; for (int i = 0; i < lines.size(); ++i) { - if (multiline) + if (multiline) { + if (i == 0) + newLine(); _line = lines.at(i); // multiline comments don't keep track of previos lines + } else _line += lines.at(i); if (i != lines.size() - 1) diff --git a/src/plugins/vcsbase/baseannotationhighlighter.cpp b/src/plugins/vcsbase/baseannotationhighlighter.cpp index b95fe6a1793..6b3154ab274 100644 --- a/src/plugins/vcsbase/baseannotationhighlighter.cpp +++ b/src/plugins/vcsbase/baseannotationhighlighter.cpp @@ -25,6 +25,7 @@ #include "baseannotationhighlighter.h" #include +#include #include #include @@ -63,8 +64,10 @@ public: void BaseAnnotationHighlighterPrivate::updateOtherFormats() { - m_background = q->formatForCategory(TextEditor::C_TEXT) - .brushProperty(QTextFormat::BackgroundBrush).color(); + m_background = TextEditor::TextEditorSettings::fontSettings() + .toTextCharFormat(TextEditor::C_TEXT) + .brushProperty(QTextFormat::BackgroundBrush) + .color(); q->setChangeNumbers(m_changeNumberMap.keys().toSet()); } diff --git a/tests/system/suite_CSUP/tst_CSUP01/test.py b/tests/system/suite_CSUP/tst_CSUP01/test.py index 1031ce75dcb..63779811f6f 100644 --- a/tests/system/suite_CSUP/tst_CSUP01/test.py +++ b/tests/system/suite_CSUP/tst_CSUP01/test.py @@ -133,3 +133,4 @@ def main(): # exit qt creator invokeMenuItem("File", "Save All") invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP02/test.py b/tests/system/suite_CSUP/tst_CSUP02/test.py index f44f9bc093a..147f1b09350 100644 --- a/tests/system/suite_CSUP/tst_CSUP02/test.py +++ b/tests/system/suite_CSUP/tst_CSUP02/test.py @@ -87,3 +87,4 @@ def main(): invokeMenuItem('File', 'Close "main.cpp"') # exit qt creator invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP03/test.py b/tests/system/suite_CSUP/tst_CSUP03/test.py index 90e60322fc9..7565af28307 100644 --- a/tests/system/suite_CSUP/tst_CSUP03/test.py +++ b/tests/system/suite_CSUP/tst_CSUP03/test.py @@ -123,3 +123,4 @@ def main(): snooze(1) # "Close All" might be disabled invokeMenuItem('File', 'Close All') invokeMenuItem('File', 'Exit') + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP04/test.py b/tests/system/suite_CSUP/tst_CSUP04/test.py index c910de02b5f..6fc59a3caad 100644 --- a/tests/system/suite_CSUP/tst_CSUP04/test.py +++ b/tests/system/suite_CSUP/tst_CSUP04/test.py @@ -78,3 +78,4 @@ def main(): validateSearchResult(5 if JIRA.isBugStillOpen(2863) else 3) invokeMenuItem("File", "Close All") invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP05/test.py b/tests/system/suite_CSUP/tst_CSUP05/test.py index e24d80ebf92..62be1a02e19 100644 --- a/tests/system/suite_CSUP/tst_CSUP05/test.py +++ b/tests/system/suite_CSUP/tst_CSUP05/test.py @@ -94,3 +94,4 @@ def main(): invokeMenuItem("File", "Close All") clickButton(waitForObject(":Save Changes.Do not Save_QPushButton")) invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_CSUP/tst_CSUP06/test.py b/tests/system/suite_CSUP/tst_CSUP06/test.py index 4cdb74c53ea..9e094b0a0dd 100644 --- a/tests/system/suite_CSUP/tst_CSUP06/test.py +++ b/tests/system/suite_CSUP/tst_CSUP06/test.py @@ -181,3 +181,4 @@ def main(): # editor must be closed to get the second code model applied on re-opening the file invokeMenuItem('File', 'Close "main.cpp"') invokeMenuItem("File", "Exit") + waitForCleanShutdown() diff --git a/tests/system/suite_editors/tst_memberoperator/test.py b/tests/system/suite_editors/tst_memberoperator/test.py index 3b3133af9d0..d7b20f8b3d7 100644 --- a/tests/system/suite_editors/tst_memberoperator/test.py +++ b/tests/system/suite_editors/tst_memberoperator/test.py @@ -54,3 +54,4 @@ def main(): snooze(1) invokeMenuItem("File", "Close All") invokeMenuItem("File", "Exit") + waitForCleanShutdown()