forked from mirror/openmw-tes3mp
Remove now unnecessary overrides.
This commit is contained in:
parent
137ea872d3
commit
2f5449a68c
2 changed files with 0 additions and 32 deletions
|
@ -313,32 +313,6 @@ CSMWorld::LandTextureIdTable::LandTextureIdTable(CollectionBase* idCollection, u
|
|||
{
|
||||
}
|
||||
|
||||
QVariant CSMWorld::LandTextureIdTable::data(const QModelIndex& index, int role) const
|
||||
{
|
||||
if (role==Qt::EditRole && !idCollection()->getRecord(index.row()).isModified())
|
||||
return QVariant();
|
||||
|
||||
return IdTable::data(index, role);
|
||||
}
|
||||
|
||||
bool CSMWorld::LandTextureIdTable::setData(const QModelIndex& index, const QVariant& value, int role)
|
||||
{
|
||||
if (!idCollection()->getRecord(index.row()).isModified())
|
||||
return false;
|
||||
else
|
||||
return IdTable::setData(index, value, role);
|
||||
}
|
||||
|
||||
Qt::ItemFlags CSMWorld::LandTextureIdTable::flags(const QModelIndex& index) const
|
||||
{
|
||||
Qt::ItemFlags flags = IdTable::flags(index);
|
||||
|
||||
if (!idCollection()->getRecord(index.row()).isModified())
|
||||
flags &= ~Qt::ItemIsEnabled;
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
CSMWorld::LandTextureIdTable::ImportResults CSMWorld::LandTextureIdTable::importTextures(const std::vector<std::string>& ids)
|
||||
{
|
||||
ImportResults results;
|
||||
|
|
|
@ -118,12 +118,6 @@ namespace CSMWorld
|
|||
|
||||
LandTextureIdTable(CollectionBase* idCollection, unsigned int features=0);
|
||||
|
||||
QVariant data(const QModelIndex& index, int role=Qt::DisplayRole) const override;
|
||||
|
||||
bool setData(const QModelIndex& index, const QVariant& value, int role) override;
|
||||
|
||||
Qt::ItemFlags flags (const QModelIndex & index) const override;
|
||||
|
||||
/// Finds and maps/recreates the specified ids.
|
||||
ImportResults importTextures(const std::vector<std::string>& ids);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue