remove erroneous manual delete

This commit is contained in:
Jussi Kuokkanen 2023-09-04 19:10:15 +03:00
parent 67e43e0333
commit af78bd795b
2 changed files with 0 additions and 7 deletions

View File

@ -28,12 +28,6 @@ DeviceModelDelegate::DeviceModelDelegate(QObject *parent) : QStyledItemDelegate(
m_functionEditor = nullptr;
}
DeviceModelDelegate::~DeviceModelDelegate() {
// Need to delete manually since this isn't a widget
if (m_functionEditor)
delete m_functionEditor;
}
void DeviceModelDelegate::commitAndClose() {
// It's also retarded to get the editor this way when we could just use it in the lambda
auto editor = qobject_cast<AbstractAssignableEditor *>(sender());

View File

@ -17,7 +17,6 @@ struct AssignableDefaultData {
class DeviceModelDelegate : public QStyledItemDelegate {
public:
DeviceModelDelegate(QObject *parent = nullptr);
~DeviceModelDelegate();
QWidget *createEditor(
QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
void updateEditorGeometry(