summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/modeldelegates.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/modeldelegates.h')
-rw-r--r--desktop-widgets/modeldelegates.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/desktop-widgets/modeldelegates.h b/desktop-widgets/modeldelegates.h
index e2baa1582..277bf994e 100644
--- a/desktop-widgets/modeldelegates.h
+++ b/desktop-widgets/modeldelegates.h
@@ -45,7 +45,7 @@ slots:
//HACK: try to get rid of this in the future.
void fakeActivation();
void fixTabBehavior();
- virtual void revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint) = 0;
+ virtual void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint) = 0;
private:
bool editable;
protected:
@@ -60,7 +60,7 @@ public:
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
public
slots:
- void revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
+ void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
void reenableReplot(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
};
@@ -78,10 +78,9 @@ class WSInfoDelegate : public ComboBoxDelegate {
public:
explicit WSInfoDelegate(QObject *parent = 0);
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
- QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
public
slots:
- void revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
+ void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
};
class AirTypesDelegate : public ComboBoxDelegate {
@@ -91,7 +90,7 @@ public:
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
public
slots:
- void revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
+ void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
};
class DiveTypesDelegate : public ComboBoxDelegate {
@@ -101,7 +100,7 @@ public:
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
public
slots:
- void revertModelData(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
+ void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
};
class SpinBoxDelegate : public QStyledItemDelegate {