mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 08:49:55 +00:00
21 lines
683 B
C++
21 lines
683 B
C++
#include "landtexturetableproxymodel.hpp"
|
|
|
|
#include "idtable.hpp"
|
|
|
|
namespace CSMWorld
|
|
{
|
|
LandTextureTableProxyModel::LandTextureTableProxyModel(QObject* parent)
|
|
: IdTableProxyModel(parent)
|
|
{
|
|
}
|
|
|
|
bool LandTextureTableProxyModel::filterAcceptsRow (int sourceRow, const QModelIndex& sourceParent) const
|
|
{
|
|
int columnIndex = mSourceModel->findColumnIndex(Columns::ColumnId_Modification);
|
|
QModelIndex index = mSourceModel->index(sourceRow, columnIndex);
|
|
if (mSourceModel->data(index).toInt() != RecordBase::State_ModifiedOnly)
|
|
return false;
|
|
|
|
return IdTableProxyModel::filterAcceptsRow(sourceRow, sourceParent);
|
|
}
|
|
}
|