mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:43:24 +00:00
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:
parent
39bc6e3bdd
commit
be7365755e
2 changed files with 0 additions and 11 deletions
|
@ -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)
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue