cleanup: remove TankInfoDelegate::reenableReplot

Update of the profile is now done by the undo-commands. If the
planner needs this, it is probably better to connect directly
to the model, not the delegate.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-27 22:19:50 +01:00
parent 39bc6e3bdd
commit be7365755e
2 changed files with 0 additions and 11 deletions

View file

@ -256,16 +256,6 @@ void TankInfoDelegate::setModelData(QWidget*, QAbstractItemModel*, const QModelI
TankInfoDelegate::TankInfoDelegate(QObject *parent) : ComboBoxDelegate(TankInfoModel::instance(), parent, true) TankInfoDelegate::TankInfoDelegate(QObject *parent) : ComboBoxDelegate(TankInfoModel::instance(), parent, true)
{ {
connect(this, SIGNAL(closeEditor(QWidget *, QAbstractItemDelegate::EndEditHint)),
this, SLOT(reenableReplot(QWidget *, QAbstractItemDelegate::EndEditHint)));
}
void TankInfoDelegate::reenableReplot(QWidget*, QAbstractItemDelegate::EndEditHint)
{
MainWindow::instance()->graphics->setReplot(true);
// FIXME: We need to replot after a cylinder is selected but the replot below overwrites
// the newly selected cylinder.
// MainWindow::instance()->graphics->replot();
} }
void TankInfoDelegate::editorClosed(QWidget*, QAbstractItemDelegate::EndEditHint hint) void TankInfoDelegate::editorClosed(QWidget*, QAbstractItemDelegate::EndEditHint hint)

View file

@ -61,7 +61,6 @@ public:
public public
slots: slots:
void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint); void editorClosed(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
void reenableReplot(QWidget *widget, QAbstractItemDelegate::EndEditHint hint);
}; };
class TankUseDelegate : public QStyledItemDelegate { class TankUseDelegate : public QStyledItemDelegate {