t-artistik / qtscriptgenerator

Automatically exported from code.google.com/p/qtscriptgenerator
0 stars 0 forks source link

Enums as arguments for flags #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the bindings will not accept a plain enum value as argument to a
function that expects a flags value (i.e. QIODevice::OpenModeFlag vs
QIODevice::OpenMode). Since it's relatively common to pass just a single
enum value, it would be nice if the bindings layer automatically converted
the enum value to a flags value.

Original issue reported on code.google.com by kentm...@gmail.com on 2 Feb 2009 at 1:22

GoogleCodeExporter commented 8 years ago
A very common usage is in QMessageBox.question and related.

Original comment by megib...@gmail.com on 5 Feb 2009 at 11:02