Do not use deprecated implicit conversion

7220-lua-add-a-general-purpose-lexical-parser
Andrei Kortunov 2 years ago
parent 99a575b663
commit 792feae39e

@ -192,12 +192,12 @@ QVariant ContentSelectorModel::ContentModel::data(const QModelIndex& index, int
{ {
case 0: case 0:
case 1: case 1:
return Qt::AlignLeft + Qt::AlignVCenter; return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
case 2: case 2:
case 3: case 3:
return Qt::AlignRight + Qt::AlignVCenter; return QVariant(Qt::AlignRight | Qt::AlignVCenter);
default: default:
return Qt::AlignLeft + Qt::AlignVCenter; return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
} }
} }

Loading…
Cancel
Save