Merge remote-tracking branch 'origin/4.7'

Change-Id: I562b0b8afb98940e03b67cbd7d7c3e756b77d736
This commit is contained in:
Eike Ziller
2018-09-14 09:59:48 +02:00
9 changed files with 16 additions and 3 deletions

View File

@@ -173,8 +173,11 @@ protected:
QStringList lines = str.split(QLatin1Char('\n')); QStringList lines = str.split(QLatin1Char('\n'));
bool multiline = lines.length() > 1; bool multiline = lines.length() > 1;
for (int i = 0; i < lines.size(); ++i) { 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 _line = lines.at(i); // multiline comments don't keep track of previos lines
}
else else
_line += lines.at(i); _line += lines.at(i);
if (i != lines.size() - 1) if (i != lines.size() - 1)

View File

@@ -25,6 +25,7 @@
#include "baseannotationhighlighter.h" #include "baseannotationhighlighter.h"
#include <texteditor/fontsettings.h> #include <texteditor/fontsettings.h>
#include <texteditor/texteditorsettings.h>
#include <QDebug> #include <QDebug>
#include <QColor> #include <QColor>
@@ -63,8 +64,10 @@ public:
void BaseAnnotationHighlighterPrivate::updateOtherFormats() void BaseAnnotationHighlighterPrivate::updateOtherFormats()
{ {
m_background = q->formatForCategory(TextEditor::C_TEXT) m_background = TextEditor::TextEditorSettings::fontSettings()
.brushProperty(QTextFormat::BackgroundBrush).color(); .toTextCharFormat(TextEditor::C_TEXT)
.brushProperty(QTextFormat::BackgroundBrush)
.color();
q->setChangeNumbers(m_changeNumberMap.keys().toSet()); q->setChangeNumbers(m_changeNumberMap.keys().toSet());
} }

View File

@@ -133,3 +133,4 @@ def main():
# exit qt creator # exit qt creator
invokeMenuItem("File", "Save All") invokeMenuItem("File", "Save All")
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
waitForCleanShutdown()

View File

@@ -87,3 +87,4 @@ def main():
invokeMenuItem('File', 'Close "main.cpp"') invokeMenuItem('File', 'Close "main.cpp"')
# exit qt creator # exit qt creator
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
waitForCleanShutdown()

View File

@@ -123,3 +123,4 @@ def main():
snooze(1) # "Close All" might be disabled snooze(1) # "Close All" might be disabled
invokeMenuItem('File', 'Close All') invokeMenuItem('File', 'Close All')
invokeMenuItem('File', 'Exit') invokeMenuItem('File', 'Exit')
waitForCleanShutdown()

View File

@@ -78,3 +78,4 @@ def main():
validateSearchResult(5 if JIRA.isBugStillOpen(2863) else 3) validateSearchResult(5 if JIRA.isBugStillOpen(2863) else 3)
invokeMenuItem("File", "Close All") invokeMenuItem("File", "Close All")
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
waitForCleanShutdown()

View File

@@ -94,3 +94,4 @@ def main():
invokeMenuItem("File", "Close All") invokeMenuItem("File", "Close All")
clickButton(waitForObject(":Save Changes.Do not Save_QPushButton")) clickButton(waitForObject(":Save Changes.Do not Save_QPushButton"))
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
waitForCleanShutdown()

View File

@@ -181,3 +181,4 @@ def main():
# editor must be closed to get the second code model applied on re-opening the file # editor must be closed to get the second code model applied on re-opening the file
invokeMenuItem('File', 'Close "main.cpp"') invokeMenuItem('File', 'Close "main.cpp"')
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
waitForCleanShutdown()

View File

@@ -54,3 +54,4 @@ def main():
snooze(1) snooze(1)
invokeMenuItem("File", "Close All") invokeMenuItem("File", "Close All")
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
waitForCleanShutdown()