mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 03:53:52 +00:00
Handle typo
This commit is contained in:
parent
8d3b1b90b1
commit
8f9c3e28d9
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ void CSVWorld::EnumDelegate::paint (QPainter *painter, const QStyleOptionViewIte
|
||||||
const QModelIndex& index) const
|
const QModelIndex& index) const
|
||||||
{
|
{
|
||||||
int valueIndex = getValueIndex(index);
|
int valueIndex = getValueIndex(index);
|
||||||
if (valueIndex != -
|
if (valueIndex != -1)
|
||||||
|
{
|
||||||
QStyleOptionViewItem itemOption(option);
|
QStyleOptionViewItem itemOption(option);
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue