summaryrefslogtreecommitdiff
path: root/gui_item_delegate.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2014-05-03 16:14:48 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2014-05-03 22:38:33 +0200
commit13cfd05f9b2bb3c8d7d1bf47fcef037a745bacf8 (patch)
tree98a325d0e547d5da0b0fd4b0b9ce2054306e87d0 /gui_item_delegate.hpp
parent5bf919190e90b017ff00ab074bce68e90958fa3c (diff)
downloadgeneric-gui-13cfd05f9b2bb3c8d7d1bf47fcef037a745bacf8.tar.gz
generic-gui-13cfd05f9b2bb3c8d7d1bf47fcef037a745bacf8.tar.bz2
generic-gui-13cfd05f9b2bb3c8d7d1bf47fcef037a745bacf8.zip
Adds editing functionality to the models.
no longer able to store QStrings in the model though, But when creating generic guis you should not use any Gui related types anyway.
Diffstat (limited to 'gui_item_delegate.hpp')
-rw-r--r--gui_item_delegate.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui_item_delegate.hpp b/gui_item_delegate.hpp
index d715dc2..b0f52a7 100644
--- a/gui_item_delegate.hpp
+++ b/gui_item_delegate.hpp
@@ -9,6 +9,8 @@ public:
explicit GuiItemDelegate(QObject *parent = 0);
virtual ~GuiItemDelegate() = default;
+ virtual void setModelData(QWidget* widget, QAbstractItemModel* model, QModelIndex const& index) const override final;
+ virtual void setEditorData(QWidget* widget, QModelIndex const& index) const override final;
virtual QString displayText(const QVariant &value, const QLocale &locale) const override final;
signals: