mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
29 lines
651 B
C++
29 lines
651 B
C++
|
|
#include "regionmapsubview.hpp"
|
|
|
|
#include <QTableView>
|
|
#include <QHeaderView>
|
|
|
|
CSVWorld::RegionMapSubView::RegionMapSubView (CSMWorld::UniversalId universalId,
|
|
CSMDoc::Document& document)
|
|
: CSVDoc::SubView (universalId)
|
|
{
|
|
mTable = new QTableView (this);
|
|
|
|
mTable->verticalHeader()->hide();
|
|
mTable->horizontalHeader()->hide();
|
|
|
|
mTable->setSelectionMode (QAbstractItemView::ExtendedSelection);
|
|
|
|
mTable->setModel (document.getData().getTableModel (universalId));
|
|
|
|
mTable->resizeColumnsToContents();
|
|
mTable->resizeRowsToContents();
|
|
|
|
setWidget (mTable);
|
|
}
|
|
|
|
void CSVWorld::RegionMapSubView::setEditLock (bool locked)
|
|
{
|
|
|
|
} |