[commonqt-devel] The logical disjunction of constants

4 Nov
2012
4 Nov
'12
1:51 p.m.
Is it possible to perform or-ing* of constants or CommonQt lacks this functionality? *Like in this C++ example: QLabel label("A label"); label.setAlignment( Qt::AlignRight | Qt::AlignBottom );

4 Nov
4 Nov
6:27 p.m.
Hello. On Sun, Nov 4, 2012 at 5:51 PM, Goheeca <goheeca@gmail.com> wrote:
Is it possible to perform or-ing* of constants or CommonQt lacks this functionality? *Like in this C++ example: QLabel label("A label"); label.setAlignment( Qt::AlignRight | Qt::AlignBottom );
You can use ENUM-OR, e.g. (qt:enum-or (#_Qt::AlignRight) (#_Qt::AlignBottom)) -- Ivan Shvedunov <ivan4th@gmail.com> ;; My GPG fingerprint is: 2E61 0748 8E12 BB1A 5AB9 F7D0 613E C0F8 0BC5 2807
4511
Age (days ago)
4511
Last active (days ago)
1 comments
2 participants
participants (2)
-
Goheeca
-
Ivan Shvedunov