[Kde-bindings] [Bug 249567] New: Smoke incorrectly detects type of QFlags<type>&
Chris Burel
chrisburel at gmail.com
Tue Aug 31 00:39:48 UTC 2010
https://bugs.kde.org/show_bug.cgi?id=249567
Summary: Smoke incorrectly detects type of QFlags<type>&
Product: bindings
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings at kde.org
ReportedBy: chrisburel at gmail.com
Version: unspecified (using Devel)
OS: Linux
QFlags<type> is a typedef for a uint, so, QFlags<type>& is a uint*.
smokedata.cpp for qtcore has a type for unsigned int&:
{ "unsigned int&", 0, Smoke::t_voidp|Smoke::tf_ref }
but all the QFlags<type>& are set to Smoke::t_uint :
{ "QFlags<QTextCodec::ConversionFlag>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QAbstractSpinBox::StepEnabledFlag>&", 0, Smoke::t_uint|Smoke::tf_ref
}
{ "QFlags<QPaintEngine::DirtyFlag>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QPaintEngine::PaintEngineFeature>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QStyle::StateFlag>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QStyle::SubControl>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QStyleOptionButton::ButtonFeature>&", 0, Smoke::t_uint|Smoke::tf_ref
}
{ "QFlags<QStyleOptionFrameV2::FrameFeature>&", 0, Smoke::t_uint|Smoke::tf_ref
}
{ "QFlags<QStyleOptionTab::CornerWidget>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QStyleOptionToolBar::ToolBarFeature>&", 0,
Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QStyleOptionToolButton::ToolButtonFeature>&", 0,
Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<QStyleOptionViewItemV2::ViewItemFeature>&", 0,
Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<Qt::AlignmentFlag>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<Qt::DropAction>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<Qt::KeyboardModifier>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<Qt::MouseButton>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<Qt::TouchPointState>&", 0, Smoke::t_uint|Smoke::tf_ref }
{ "QFlags<Qt::WindowType>&", 0, Smoke::t_uint|Smoke::tf_ref }
Those be set to Smoke::t_voidp. In particular, the QFlags<QStyle*Option> ones
break the usage of the QStyle*Option classes.
Reproducible: Always
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-bindings
mailing list