From 9d8987fc713ac885df5a23003f96a6ee1229c140 Mon Sep 17 00:00:00 2001 From: Lu Zhen Date: Wed, 3 Apr 2024 09:47:15 +0800 Subject: [PATCH] fix: miss DPaletteHelper modified Log: Change-Id: I3731803a787b46674d4869d115a302ebc54ba900 --- .../codeeditor/gui/completion/codecompletiondelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();