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 0ee0703
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/source/tree/datamodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include <QElapsedTimer>
#include <QItemSelection>
#include <DApplicationHelper>
#include <DGuiApplicationHelper>

DGUI_USE_NAMESPACE

DataModel::DataModel(QObject *parent)
: QAbstractTableModel(parent)
Expand Down

0 comments on commit 0ee0703

Please sign in to comment.