CppEditor: Fix highlight of '#' Button for duplication case

Change-Id: Ib97f31912c9b2d619e3b92287ca8b192604f3831
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-02-03 11:38:15 +01:00
parent dd3ba874b4
commit 93fe64e789
3 changed files with 21 additions and 3 deletions

View File

@@ -25,6 +25,8 @@
#include "cppparsecontext.h"
#include "cppeditor.h"
#include <QAction>
#include <QDir>
#include <QDebug>
@@ -165,7 +167,7 @@ void ParseContextWidget::syncToModel()
const bool isPreferred = m_parseContextModel.isCurrentPreferred();
m_clearPreferredAction->setEnabled(isPreferred);
QComboBox::setProperty("highlightWidget", isPreferred);
CppEditorWidget::updateWidgetHighlighting(this, isPreferred);
}
} // namespace Internal