diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-11-22 01:50:32 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-11-22 01:50:32 +0100 |
commit | c214c13fb353ef68718e7bca6fd784037d262c91 (patch) | |
tree | 81dd20e7a685bb249762946b4df5c052555f7569 /api/logic/InstanceList.h | |
parent | c4a472981f572bfcbd99a9ef74175ebfb3b7924b (diff) | |
download | MultiMC-c214c13fb353ef68718e7bca6fd784037d262c91.tar MultiMC-c214c13fb353ef68718e7bca6fd784037d262c91.tar.gz MultiMC-c214c13fb353ef68718e7bca6fd784037d262c91.tar.lz MultiMC-c214c13fb353ef68718e7bca6fd784037d262c91.tar.xz MultiMC-c214c13fb353ef68718e7bca6fd784037d262c91.zip |
GH-2101 POC for inline renaming
Diffstat (limited to 'api/logic/InstanceList.h')
-rw-r--r-- | api/logic/InstanceList.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/api/logic/InstanceList.h b/api/logic/InstanceList.h index 5b966b33..5c172e47 100644 --- a/api/logic/InstanceList.h +++ b/api/logic/InstanceList.h @@ -58,10 +58,12 @@ public: virtual ~InstanceList(); public: - QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const; - int rowCount(const QModelIndex &parent = QModelIndex()) const; - QVariant data(const QModelIndex &index, int role) const; - Qt::ItemFlags flags(const QModelIndex &index) const; + QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const override; + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + QVariant data(const QModelIndex &index, int role) const override; + Qt::ItemFlags flags(const QModelIndex &index) const override; + + bool setData(const QModelIndex & index, const QVariant & value, int role) override; enum AdditionalRoles { |