Changeset View
Changeset View
Standalone View
Standalone View
addons/filetree/katefiletreemodel.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
51 | virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; | 51 | virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; | ||
52 | virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; | 52 | virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; | ||
53 | virtual int columnCount(const QModelIndex &parent = QModelIndex()) const; | 53 | virtual int columnCount(const QModelIndex &parent = QModelIndex()) const; | ||
54 | 54 | | |||
55 | virtual QModelIndex parent(const QModelIndex &index) const; | 55 | virtual QModelIndex parent(const QModelIndex &index) const; | ||
56 | virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; | 56 | virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; | ||
57 | virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const; | 57 | virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const; | ||
58 | 58 | | |||
59 | QMimeData *mimeData(const QModelIndexList &indexes) const override; | ||||
60 | | ||||
59 | /* extra api for view */ | 61 | /* extra api for view */ | ||
60 | QModelIndex docIndex(const KTextEditor::Document *) const; | 62 | QModelIndex docIndex(const KTextEditor::Document *) const; | ||
61 | 63 | | |||
62 | bool isDir(const QModelIndex &index) const; | 64 | bool isDir(const QModelIndex &index) const; | ||
63 | 65 | | |||
64 | bool listMode() const; | 66 | bool listMode() const; | ||
65 | void setListMode(bool); | 67 | void setListMode(bool); | ||
66 | 68 | | |||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |