forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.4'
Conflicts: qtcreator.pri src/libs/qmljs/qmljscheck.cpp src/plugins/debugger/gdb/gdbengine.cpp src/plugins/debugger/gdb/remotegdbserveradapter.cpp src/plugins/plugins.pro src/plugins/projectexplorer/buildmanager.cpp src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp Change-Id: Id2dcebf95b94dc46c1d85908ba1d1378aaf362ac
This commit is contained in:
@@ -3745,24 +3745,6 @@ void BaseTextEditorWidget::extraAreaPaintEvent(QPaintEvent *e)
|
||||
painter.save();
|
||||
painter.setRenderHint(QPainter::Antialiasing, false);
|
||||
|
||||
int previousBraceDepth = block.previous().userState();
|
||||
if (previousBraceDepth >= 0)
|
||||
previousBraceDepth >>= 8;
|
||||
else
|
||||
previousBraceDepth = 0;
|
||||
|
||||
int braceDepth = block.userState();
|
||||
if (!nextBlock.isVisible()) {
|
||||
QTextBlock lastInvisibleBlock = nextVisibleBlock.previous();
|
||||
if (!lastInvisibleBlock.isValid())
|
||||
lastInvisibleBlock = doc->lastBlock();
|
||||
braceDepth = lastInvisibleBlock.userState();
|
||||
}
|
||||
if (braceDepth >= 0)
|
||||
braceDepth >>= 8;
|
||||
else
|
||||
braceDepth = 0;
|
||||
|
||||
if (TextBlockUserData *userData = static_cast<TextBlockUserData*>(block.userData())) {
|
||||
if (d->m_marksVisible) {
|
||||
int xoffset = 0;
|
||||
|
||||
Reference in New Issue
Block a user