diff --git a/src/plugins/codeeditor/gui/completion/codecompletiondelegate.cpp b/src/plugins/codeeditor/gui/completion/codecompletiondelegate.cpp index fd14728e3..b769951c6 100644 --- a/src/plugins/codeeditor/gui/completion/codecompletiondelegate.cpp +++ b/src/plugins/codeeditor/gui/completion/codecompletiondelegate.cpp @@ -103,7 +103,7 @@ void CodeCompletionDelegate::paintItemBackground(QPainter *painter, const QStyle // draw background if (option.widget) { -#ifndef DTKWIDGET_CLASS_DPaletteHelper +#ifdef DTKWIDGET_CLASS_DPaletteHelper DPalette pl(DPaletteHelper::instance()->palette(option.widget)); #else const DPalette &pl = DGuiApplicationHelper::instance()->applicationPalette();