[Kde-bindings] KDE/kdebindings/perl
Chris Michael Burel
chrisburel at gmail.com
Tue Aug 31 04:29:55 UTC 2010
SVN commit 1170205 by burel:
QtGui needed to use the marshall_it marshaller, so don't make it static, and make it visible for linking.
Add the itemviews/pixelator example. This example has functionality that depends on bug 249567.
CCMAIL: kde-bindings at kde.org
M +3 -1 qtcore/src/handlers.cpp
M +1 -1 qtcore/src/handlers.h
A qtgui/examples/itemviews/pixelator (directory)
A qtgui/examples/itemviews/pixelator/ImageModel.pm
A qtgui/examples/itemviews/pixelator/MainWindow.pm
A qtgui/examples/itemviews/pixelator/PixelDelegate.pm
A qtgui/examples/itemviews/pixelator/images (directory)
AM qtgui/examples/itemviews/pixelator/images/qt.png
AM qtgui/examples/itemviews/pixelator/pixelator.pl
M +17 -0 qtgui/src/qtgui4handlers.cpp
--- trunk/KDE/kdebindings/perl/qtcore/src/handlers.cpp #1170204:1170205
@@ -183,7 +183,7 @@
}
template <class T>
-static void marshall_it(Marshall* m) {
+void marshall_it(Marshall* m) {
switch( m->action() ) {
case Marshall::FromSV:
marshall_from_perl<T>( m );
@@ -199,6 +199,8 @@
}
}
+template Q_DECL_EXPORT void marshall_it<unsigned int *>(Marshall* m);
+
QString* qstringFromPerlString( SV* perlstring ) {
// Finally found how 'in_constructor' is being used
// PerlQt3 has this bizness:
--- trunk/KDE/kdebindings/perl/qtcore/src/handlers.h #1170204:1170205
@@ -27,7 +27,7 @@
// destroyed
extern struct mgvtbl vtbl_smoke;
-template <class T> static void marshall_it(Marshall* m);
+template <class T> void marshall_it(Marshall* m);
Q_DECL_EXPORT void *construct_copy(smokeperl_object *o);
void marshall_basetype(Marshall* m);
--- trunk/KDE/kdebindings/perl/qtgui/src/qtgui4handlers.cpp #1170204:1170205
@@ -32,5 +32,22 @@
TypeHandler QtGui4_handlers[] = {
//{ "QList<QTestAccessibilityEvent>", marshall_QTestAccessibilityEventList },
+ { "QFlags<QAbstractSpinBox::StepEnabledFlag>&", marshall_it< unsigned int *> },
+ { "QFlags<QPaintEngine::DirtyFlag>&", marshall_it< unsigned int *> },
+ { "QFlags<QPaintEngine::PaintEngineFeature>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyle::StateFlag>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyle::SubControl>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyleOptionButton::ButtonFeature>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyleOptionFrameV2::FrameFeature>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyleOptionTab::CornerWidget>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyleOptionToolBar::ToolBarFeature>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyleOptionToolButton::ToolButtonFeature>&", marshall_it< unsigned int *> },
+ { "QFlags<QStyleOptionViewItemV2::ViewItemFeature>&", marshall_it< unsigned int *> },
+ { "QFlags<Qt::AlignmentFlag>&", marshall_it< unsigned int *> },
+ { "QFlags<Qt::DropAction>&", marshall_it< unsigned int *> },
+ { "QFlags<Qt::KeyboardModifier>&", marshall_it< unsigned int *> },
+ { "QFlags<Qt::MouseButton>&", marshall_it< unsigned int *> },
+ { "QFlags<Qt::TouchPointState>&", marshall_it< unsigned int *> },
+ { "QFlags<Qt::WindowType>&", marshall_it< unsigned int *> },
{ 0, 0 }
};
More information about the Kde-bindings
mailing list