forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.7'
Change-Id: I562b0b8afb98940e03b67cbd7d7c3e756b77d736
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "baseannotationhighlighter.h"
|
||||
#include <texteditor/fontsettings.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QColor>
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -133,3 +133,4 @@ def main():
|
||||
# exit qt creator
|
||||
invokeMenuItem("File", "Save All")
|
||||
invokeMenuItem("File", "Exit")
|
||||
waitForCleanShutdown()
|
||||
|
||||
@@ -87,3 +87,4 @@ def main():
|
||||
invokeMenuItem('File', 'Close "main.cpp"')
|
||||
# exit qt creator
|
||||
invokeMenuItem("File", "Exit")
|
||||
waitForCleanShutdown()
|
||||
|
||||
@@ -123,3 +123,4 @@ def main():
|
||||
snooze(1) # "Close All" might be disabled
|
||||
invokeMenuItem('File', 'Close All')
|
||||
invokeMenuItem('File', 'Exit')
|
||||
waitForCleanShutdown()
|
||||
|
||||
@@ -78,3 +78,4 @@ def main():
|
||||
validateSearchResult(5 if JIRA.isBugStillOpen(2863) else 3)
|
||||
invokeMenuItem("File", "Close All")
|
||||
invokeMenuItem("File", "Exit")
|
||||
waitForCleanShutdown()
|
||||
|
||||
@@ -94,3 +94,4 @@ def main():
|
||||
invokeMenuItem("File", "Close All")
|
||||
clickButton(waitForObject(":Save Changes.Do not Save_QPushButton"))
|
||||
invokeMenuItem("File", "Exit")
|
||||
waitForCleanShutdown()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -54,3 +54,4 @@ def main():
|
||||
snooze(1)
|
||||
invokeMenuItem("File", "Close All")
|
||||
invokeMenuItem("File", "Exit")
|
||||
waitForCleanShutdown()
|
||||
|
||||
Reference in New Issue
Block a user