mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-20 11:38:26 -06:00
remove erroneous manual delete
This commit is contained in:
parent
67e43e0333
commit
af78bd795b
@ -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());
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user