From 45d31b52da05ce362794e84e259910d9c9c0512b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 Dec 2013 17:57:07 +0000 Subject: =?UTF-8?q?Preset=20menu=20support=20for=20Qt=20(patch=20from=20Ti?= =?UTF-8?q?mo=20Westk=C3=A4mper)=20(#930).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5227 a436a847-0d15-0410-975c-d299462d15a1 --- src/jalv_qt4_meta.hpp | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/jalv_qt4_meta.hpp (limited to 'src/jalv_qt4_meta.hpp') diff --git a/src/jalv_qt4_meta.hpp b/src/jalv_qt4_meta.hpp new file mode 100644 index 0000000..f61fe16 --- /dev/null +++ b/src/jalv_qt4_meta.hpp @@ -0,0 +1,92 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'jalv_qt4.cpp' +** +** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.6) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'jalv_qt4.cpp' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 63 +#error "This file was generated using the moc from 4.8.6. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_PresetAction[] = { + + // content: + 6, // revision + 0, // classname + 0, 0, // classinfo + 1, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 14, 13, 13, 13, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_PresetAction[] = { + "PresetAction\0\0presetChosen()\0" +}; + +void PresetAction::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + Q_ASSERT(staticMetaObject.cast(_o)); + PresetAction *_t = static_cast(_o); + switch (_id) { + case 0: _t->presetChosen(); break; + default: ; + } + } + Q_UNUSED(_a); +} + +const QMetaObjectExtraData PresetAction::staticMetaObjectExtraData = { + 0, qt_static_metacall +}; + +const QMetaObject PresetAction::staticMetaObject = { + { &QAction::staticMetaObject, qt_meta_stringdata_PresetAction, + qt_meta_data_PresetAction, &staticMetaObjectExtraData } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &PresetAction::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *PresetAction::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *PresetAction::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_PresetAction)) + return static_cast(const_cast< PresetAction*>(this)); + return QAction::qt_metacast(_clname); +} + +int PresetAction::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QAction::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 1) + qt_static_metacall(this, _c, _id, _a); + _id -= 1; + } + return _id; +} +QT_END_MOC_NAMESPACE -- cgit v1.2.1