mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 13:19:54 +00:00
13 lines
356 B
C++
13 lines
356 B
C++
|
|
||
|
#include "idtableproxymodel.hpp"
|
||
|
|
||
|
#include "idtable.hpp"
|
||
|
|
||
|
CSMWorld::IdTableProxyModel::IdTableProxyModel (QObject *parent)
|
||
|
: QSortFilterProxyModel (parent)
|
||
|
{}
|
||
|
|
||
|
QModelIndex CSMWorld::IdTableProxyModel::getModelIndex (const std::string& id, int column) const
|
||
|
{
|
||
|
return mapFromSource (dynamic_cast<IdTable&> (*sourceModel()).getModelIndex (id, column));
|
||
|
}
|