mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
commit
f07d50e5bf
2 changed files with 8 additions and 1 deletions
|
@ -110,7 +110,11 @@ void CSVWorld::EnumDelegate::paint (QPainter *painter, const QStyleOptionViewIte
|
||||||
int valueIndex = getValueIndex(index);
|
int valueIndex = getValueIndex(index);
|
||||||
if (valueIndex != -1)
|
if (valueIndex != -1)
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5,7,0)
|
||||||
|
QStyleOptionViewItem itemOption(option);
|
||||||
|
#else
|
||||||
QStyleOptionViewItemV4 itemOption(option);
|
QStyleOptionViewItemV4 itemOption(option);
|
||||||
|
#endif
|
||||||
itemOption.text = mValues.at(valueIndex).second;
|
itemOption.text = mValues.at(valueIndex).second;
|
||||||
QApplication::style()->drawControl(QStyle::CE_ItemViewItem, &itemOption, painter);
|
QApplication::style()->drawControl(QStyle::CE_ItemViewItem, &itemOption, painter);
|
||||||
}
|
}
|
||||||
|
|
|
@ -328,7 +328,10 @@ namespace MWMechanics
|
||||||
if (race->mData.mFlags & ESM::Race::Beast)
|
if (race->mData.mFlags & ESM::Race::Beast)
|
||||||
return 0.f;
|
return 0.f;
|
||||||
}
|
}
|
||||||
// Intended fall-through
|
else
|
||||||
|
return 0.f;
|
||||||
|
|
||||||
|
break;
|
||||||
// Creatures can not wear armor
|
// Creatures can not wear armor
|
||||||
case ESM::MagicEffect::BoundCuirass:
|
case ESM::MagicEffect::BoundCuirass:
|
||||||
case ESM::MagicEffect::BoundGloves:
|
case ESM::MagicEffect::BoundGloves:
|
||||||
|
|
Loading…
Reference in a new issue