diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-05-15 03:03:56 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-06-19 06:13:35 +0000 |
commit | 97af1b839c04dbd83b5ba5bec138dd4718d4491a (patch) | |
tree | 8044ebfc46875fb8190a30fd4755f4f1a2806671 | |
parent | 3d452492c6c8e8e67f92f8ca573ac045843227b6 (diff) |
Use | to OR some related flags
And not +. Guess what, this was "accidentally" working around
a number of bugs, most importantly QTBUG-75172 (which is caused by
QTBUG-74639 and probably others).
Change-Id: If13810d9408f2be7b87f0d259737bff8cacc6f7b
Pick-to: 5.15
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: David Faure <david.faure@kdab.com>
-rw-r--r-- | examples/widgets/tutorials/modelview/2_formatting/mymodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/tutorials/modelview/2_formatting/mymodel.cpp b/examples/widgets/tutorials/modelview/2_formatting/mymodel.cpp index 938597a34e..5ddde156ae 100644 --- a/examples/widgets/tutorials/modelview/2_formatting/mymodel.cpp +++ b/examples/widgets/tutorials/modelview/2_formatting/mymodel.cpp @@ -100,7 +100,7 @@ QVariant MyModel::data(const QModelIndex &index, int role) const break; case Qt::TextAlignmentRole: if (row == 1 && col == 1) //change text alignment only for cell(1,1) - return Qt::AlignRight + Qt::AlignVCenter; + return int(Qt::AlignRight | Qt::AlignVCenter); break; case Qt::CheckStateRole: if (row == 1 && col == 0) //add a checkbox to cell(1,0) |