forked from qt-creator/qt-creator
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:
@@ -51,18 +51,4 @@ bool NodeListDelegate::eventFilter(QObject *editor, QEvent *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.
|
||||
|
@@ -16,10 +16,6 @@ public:
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *editor, QEvent *event) override;
|
||||
|
||||
private:
|
||||
void close();
|
||||
void commitAndClose();
|
||||
};
|
||||
|
||||
} // namespace QmlDesigner.
|
||||
|
Reference in New Issue
Block a user