Renamed core subproject into BeetRoundCore.

This commit is contained in:
2026-02-05 18:58:46 +01:00
parent 455c6ef3bd
commit 2fcd69df5f
34 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,30 @@
#ifndef INSERTROWSCOMMAND_H
#define INSERTROWSCOMMAND_H
#include <QUndoCommand>
typedef QMap<int, QVariant> ModelItemValues;
class TableModel;
class InsertRowsCommand : public QUndoCommand {
public:
// TODO don't use simple pointer to model
/// Using simple pointer to model because there was a crash when closing the application with an
/// unclean undo stack
InsertRowsCommand(TableModel* model,
int startRow,
QList<ModelItemValues> valueList,
QUndoCommand* parent = nullptr);
/// QUndoCommand interface
void undo() override;
void redo() override;
private:
TableModel* m_tableModel;
const int m_startRow;
const QList<ModelItemValues> m_valueList;
};
#endif // INSERTROWSCOMMAND_H