?? 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 + -