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