[nostalgia/core/studio] Fix memory leaks
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QStringList>
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QUndoStack>
|
||||
#include <QVariant>
|
||||
|
||||
@@ -17,6 +18,12 @@
|
||||
|
||||
namespace nostalgia::core {
|
||||
|
||||
struct TileSheetEditorColorTableDelegate: public QStyledItemDelegate {
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &opt, const QModelIndex &idx) const;
|
||||
|
||||
};
|
||||
|
||||
class SheetData: public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(int columns READ columns WRITE setColumns NOTIFY columnsChanged)
|
||||
@@ -113,6 +120,7 @@ class TileSheetEditor: public studio::Editor {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
TileSheetEditorColorTableDelegate m_colorTableDelegate;
|
||||
QString m_itemPath;
|
||||
QString m_itemName;
|
||||
const studio::Context *m_ctx = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user