NodeListDelegate: Get rid of unused functions

Amends 1a402984da

Change-Id: I518c2bcc638f295b1540361c633af045c0caf524
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
This commit is contained in:
Jarek Kobus
2023-12-13 23:04:29 +01:00
parent 53c4fb0243
commit efc63c8ffb
2 changed files with 0 additions and 18 deletions

View File

@@ -51,18 +51,4 @@ bool NodeListDelegate::eventFilter(QObject *editor, QEvent *event)
return QStyledItemDelegate::eventFilter(editor, event); return QStyledItemDelegate::eventFilter(editor, event);
} }
void NodeListDelegate::commitAndClose()
{
if (auto *editor = qobject_cast<ShortcutWidget *>(sender())) {
emit commitData(editor);
emit closeEditor(editor);
}
}
void NodeListDelegate::close()
{
if (auto *editor = qobject_cast<ShortcutWidget *>(sender()))
emit closeEditor(editor);
}
} // namespace QmlDesigner. } // namespace QmlDesigner.

View File

@@ -16,10 +16,6 @@ public:
protected: protected:
bool eventFilter(QObject *editor, QEvent *event) override; bool eventFilter(QObject *editor, QEvent *event) override;
private:
void close();
void commitAndClose();
}; };
} // namespace QmlDesigner. } // namespace QmlDesigner.