#ifndef SEARCHITEM_H #define SEARCHITEM_H #include #include #include "search-item-model.h" #include "file-utils.h" class SearchItem : public QObject { friend class SearchItemModel; Q_OBJECT public: explicit SearchItem(QObject *parent = nullptr); ~SearchItem(); enum SearchType { All, Apps, Settings, Files, Best }; void setSearchList(const int&, const QStringList&); private: // SearchItem * m_parent = nullptr; // QVector * m_children = nullptr; int m_searchtype = 0; QStringList m_pathlist; QIcon getIcon(int); QString getName(int); FileUtils * m_util = nullptr; Q_SIGNALS: }; #endif // SEARCHITEM_H