⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appmgrmodel.h

📁 程序代码使用说明: (1)所有源代码目录下都提供了Makefile(非Qt)
💻 H
字号:
#ifndef APPMGR_MODEL_H#define APPMGR_MODEL_H#include <QAbstractTableModel>#include <QList>#define TOP_FOLDER_FLAG "TOP_FOLDER_FLAG"struct AppNode;class AppMgrModel : public QAbstractTableModel{    Q_OBJECTpublic:    AppMgrModel(const QString& children, QObject* parent = 0);    ~AppMgrModel();    int rowCount(const QModelIndex & parent = QModelIndex()) const     {         return (int)((double)nodesCount/COL_NUM + 0.5);     }        int columnCount(const QModelIndex & parent = QModelIndex()) const     {         return COL_NUM;     }    QVariant data(const QModelIndex &, int role = Qt::DisplayRole) const;public slots:    void loadChildNodes();private:    void clearNodes();    QList<AppNode* > mNodeList;    QString mChildren;        int nodesCount;            static const QString iniFileName;    static const int COL_NUM;};#endif //APPMGR_MODEL_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -