📄 appmgrmodel.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 + -