Remove now unnecessary overrides.

new-script-api
Kyle Cooley 7 years ago
parent 137ea872d3
commit 2f5449a68c

@ -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) CSMWorld::LandTextureIdTable::ImportResults CSMWorld::LandTextureIdTable::importTextures(const std::vector<std::string>& ids)
{ {
ImportResults results; ImportResults results;

@ -118,12 +118,6 @@ namespace CSMWorld
LandTextureIdTable(CollectionBase* idCollection, unsigned int features=0); 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. /// Finds and maps/recreates the specified ids.
ImportResults importTextures(const std::vector<std::string>& ids); ImportResults importTextures(const std::vector<std::string>& ids);
}; };

Loading…
Cancel
Save