1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 22:23:52 +00:00

store undoStack in the nestedtable

This commit is contained in:
Marek Kochanowicz 2014-06-30 16:03:38 +02:00
parent c96d48fb91
commit 6dc199743c
2 changed files with 3 additions and 1 deletions

View file

@ -8,7 +8,8 @@
CSVWorld::NestedTable::NestedTable(QUndoStack& undoStack,
CSMWorld::NestedTableModel* model,
QWidget* parent)
: QTableView(parent)
: QTableView(parent),
mUndoStack(undoStack)
{
setSelectionBehavior (QAbstractItemView::SelectRows);

View file

@ -26,6 +26,7 @@ namespace CSVWorld
QAction *mAddNewRowAction;
QAction *mRemoveRowAction;
QUndoStack& mUndoStack;
public:
NestedTable(QUndoStack& undoStack,