Skip to content

Commit

Permalink
fix: build failures for new dtkgui
Browse files Browse the repository at this point in the history
Fixes the following build failures:
```
/home/felix/projects/deepin/deepin-compressor/src/source/tree/datamodel.cpp: In member function ‘virtual QVariant DataModel::data(const QModelIndex&, int) const’:
/home/felix/projects/deepin/deepin-compressor/src/source/tree/datamodel.cpp:105:17: error: ‘DGuiApplicationHelper’ has not been declared
  105 |             if (DGuiApplicationHelper::instance()->sizeMode() == DGuiApplicationHelper::NormalMode) {
      |                 ^~~~~~~~~~~~~~~~~~~~~
/home/felix/projects/deepin/deepin-compressor/src/source/tree/datamodel.cpp:105:66: error: ‘DGuiApplicationHelper’ has not been declared
  105 |             if (DGuiApplicationHelper::instance()->sizeMode() == DGuiApplicationHelper::NormalMode) {
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~
```
  • Loading branch information
felixonmars committed Oct 18, 2023
1 parent 82f646f commit 57da98a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/source/tree/datamodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#include <QAbstractTableModel>
#include <QFileInfoList>
#include <QDir>
#include <DGuiApplicationHelper>

DGUI_USE_NAMESPACE

class MimeTypeDisplayManager;
class QItemSelection;
Expand Down

0 comments on commit 57da98a

Please sign in to comment.