Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/PanelView/listmodel.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
42 | explicit ListModel(KrInterView *); | 42 | explicit ListModel(KrInterView *); | ||
43 | virtual ~ListModel(); | 43 | virtual ~ListModel(); | ||
44 | 44 | | |||
45 | inline bool ready() const { | 45 | inline bool ready() const { | ||
46 | return _ready; | 46 | return _ready; | ||
47 | } | 47 | } | ||
48 | void populate(const QList<FileItem*> &files, FileItem *dummy); | 48 | void populate(const QList<FileItem*> &files, FileItem *dummy); | ||
49 | QModelIndex addItem(FileItem *); | 49 | QModelIndex addItem(FileItem *); | ||
50 | QModelIndex removeItem(FileItem *); | 50 | void removeItem(FileItem *); | ||
51 | 51 | | |||
52 | int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | 52 | int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | ||
53 | int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | 53 | int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | ||
54 | QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; | 54 | QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; | ||
55 | bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) Q_DECL_OVERRIDE; | 55 | bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) Q_DECL_OVERRIDE; | ||
56 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; | 56 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; | ||
57 | void setExtensionEnabled(bool exten) { | 57 | void setExtensionEnabled(bool exten) { | ||
58 | _extensionEnabled = exten; | 58 | _extensionEnabled = exten; | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |