forked from qt-creator/qt-creator
CppEditor: Fix highlight of '#' Button for duplication case
Change-Id: Ib97f31912c9b2d619e3b92287ca8b192604f3831 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user