Skip to content

Commit

Permalink
fix: The compilation failed
Browse files Browse the repository at this point in the history
as title

Log: Fix compilation errors
  • Loading branch information
Kakueeen authored and deepin-mozart committed Dec 3, 2024
1 parent c0f3f6c commit f2b3b8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/plugins/codeeditor/statusbar/encodecombobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
#include "encodecombobox.h"
#include "utils/editorutils.h"

#include <DPaletteHelper>
#include <DStyle>
#ifdef DTKWIDGET_CLASS_DPaletteHelper
#include <DPaletteHelper>
#else
#include <DApplicationHelper>
#endif

#include <QHBoxLayout>
#include <QMouseEvent>
Expand Down Expand Up @@ -126,7 +130,11 @@ bool EncodeComboBox::eventFilter(QObject *obj, QEvent *e)

QIcon EncodeComboBox::createIcon()
{
#ifdef DTKWIDGET_CLASS_DPaletteHelper
DPalette dpalette = DPaletteHelper::instance()->palette(toolBtn);
#else
DPalette dpalette = DApplicationHelper::instance()->palette(toolBtn);
#endif
QColor textColor;
QPixmap arrowPixmap = QCommonStyle().standardPixmap(QStyle::SP_ArrowDown);
if (isPressed) {
Expand Down

0 comments on commit f2b3b8a

Please sign in to comment.