mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 17:19:56 +00:00
29 lines
No EOL
651 B
C++
29 lines
No EOL
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)
|
|
{
|
|
|
|
} |