[nostalgia/core/studio] Stub out saveItem in TileSheetEditor
This commit is contained in:
parent
320d8c1143
commit
748fea3d43
@ -125,6 +125,7 @@ void SheetData::updatePixel(QVariant pixelItem) {
|
|||||||
if (p && p != m_prevPixelUpdated) {
|
if (p && p != m_prevPixelUpdated) {
|
||||||
m_cmdStack.push(new UpdatePixelsCommand(m_pixels, m_palette, p, m_selectedColor, m_cmdIdx));
|
m_cmdStack.push(new UpdatePixelsCommand(m_pixels, m_palette, p, m_selectedColor, m_cmdIdx));
|
||||||
m_prevPixelUpdated = p;
|
m_prevPixelUpdated = p;
|
||||||
|
emit changeOccurred();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,6 +238,7 @@ TileSheetEditor::TileSheetEditor(QString path, const studio::Context *ctx, QWidg
|
|||||||
m_canvas->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
m_canvas->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||||
setColorTable(m_sheetData.palette());
|
setColorTable(m_sheetData.palette());
|
||||||
restoreState();
|
restoreState();
|
||||||
|
connect(&m_sheetData, &SheetData::changeOccurred, [this] { setUnsavedChanges(true); });
|
||||||
}
|
}
|
||||||
|
|
||||||
TileSheetEditor::~TileSheetEditor() {
|
TileSheetEditor::~TileSheetEditor() {
|
||||||
@ -247,7 +249,7 @@ QString TileSheetEditor::itemName() {
|
|||||||
return m_itemName;
|
return m_itemName;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TileSheetEditor::save() {
|
void TileSheetEditor::saveItem() {
|
||||||
}
|
}
|
||||||
|
|
||||||
QUndoStack *TileSheetEditor::undoStack() {
|
QUndoStack *TileSheetEditor::undoStack() {
|
||||||
|
@ -69,6 +69,8 @@ class SheetData: public QObject {
|
|||||||
void updatePixels(const NostalgiaGraphic *ng, const NostalgiaPalette *npal);
|
void updatePixels(const NostalgiaGraphic *ng, const NostalgiaPalette *npal);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
void changeOccurred();
|
||||||
|
|
||||||
void columnsChanged(int);
|
void columnsChanged(int);
|
||||||
|
|
||||||
void rowsChanged(int);
|
void rowsChanged(int);
|
||||||
@ -103,7 +105,7 @@ class TileSheetEditor: public studio::Editor {
|
|||||||
|
|
||||||
QString itemName() override;
|
QString itemName() override;
|
||||||
|
|
||||||
void save() override;
|
void saveItem() override;
|
||||||
|
|
||||||
QUndoStack *undoStack() override;
|
QUndoStack *undoStack() override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user