mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
26 lines
746 B
C++
26 lines
746 B
C++
|
|
#include "tablesubview.hpp"
|
|
|
|
#include "../../model/doc/document.hpp"
|
|
|
|
#include "table.hpp"
|
|
|
|
CSVWorld::TableSubView::TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
|
|
bool createAndDelete)
|
|
: SubView (id)
|
|
{
|
|
setWidget (mTable = new Table (id, document.getData(), document.getUndoStack(), createAndDelete));
|
|
|
|
connect (mTable, SIGNAL (doubleClicked (const QModelIndex&)), this, SLOT (rowActivated (const QModelIndex&)));
|
|
}
|
|
|
|
void CSVWorld::TableSubView::setEditLock (bool locked)
|
|
{
|
|
mTable->setEditLock (locked);
|
|
}
|
|
|
|
void CSVWorld::TableSubView::rowActivated (const QModelIndex& index)
|
|
{
|
|
/// \todo re-enable, after dialogue sub views have been fixed up
|
|
// focusId (mTable->getUniversalId (index.row()));
|
|
} |