diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/modeldelegates.cpp | 7 | ||||
-rw-r--r-- | desktop-widgets/modeldelegates.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/desktop-widgets/modeldelegates.cpp b/desktop-widgets/modeldelegates.cpp index 5480a41db..781ee740d 100644 --- a/desktop-widgets/modeldelegates.cpp +++ b/desktop-widgets/modeldelegates.cpp @@ -247,13 +247,6 @@ void TankInfoDelegate::editorClosed(QWidget*, QAbstractItemDelegate::EndEditHint mymodel->setData(IDX(CylindersModel::TYPE), currCombo.activeText, CylindersModel::COMMIT_ROLE); } -QWidget *TankInfoDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const -{ - QWidget *delegate = ComboBoxDelegate::createEditor(parent, option, index); - MainWindow::instance()->graphics->setReplot(false); - return delegate; -} - TankUseDelegate::TankUseDelegate(QObject *parent) : QStyledItemDelegate(parent) { } diff --git a/desktop-widgets/modeldelegates.h b/desktop-widgets/modeldelegates.h index 95e9c5fef..db804c8be 100644 --- a/desktop-widgets/modeldelegates.h +++ b/desktop-widgets/modeldelegates.h @@ -63,7 +63,6 @@ class TankInfoDelegate : public ComboBoxDelegate { public: explicit TankInfoDelegate(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 editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint); |