Esempio n. 1
0
int Q3DockWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Q3Frame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = closeMode(); break;
        case 1: *reinterpret_cast< bool*>(_v) = isResizeEnabled(); break;
        case 2: *reinterpret_cast< bool*>(_v) = isMovingEnabled(); break;
        case 3: *reinterpret_cast< bool*>(_v) = isHorizontallyStretchable(); break;
        case 4: *reinterpret_cast< bool*>(_v) = isVerticallyStretchable(); break;
        case 5: *reinterpret_cast< bool*>(_v) = isStretchable(); break;
        case 6: *reinterpret_cast< bool*>(_v) = newLine(); break;
        case 7: *reinterpret_cast< bool*>(_v) = opaqueMoving(); break;
        case 8: *reinterpret_cast< int*>(_v) = offset(); break;
        case 9: *reinterpret_cast< Place*>(_v) = place(); break;
        }
        _id -= 10;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setCloseMode(*reinterpret_cast< int*>(_v)); break;
        case 1: setResizeEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 2: setMovingEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 3: setHorizontallyStretchable(*reinterpret_cast< bool*>(_v)); break;
        case 4: setVerticallyStretchable(*reinterpret_cast< bool*>(_v)); break;
        case 6: setNewLine(*reinterpret_cast< bool*>(_v)); break;
        case 7: setOpaqueMoving(*reinterpret_cast< bool*>(_v)); break;
        case 8: setOffset(*reinterpret_cast< int*>(_v)); break;
        }
        _id -= 10;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 10;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 10;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 10;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 10;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 10;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 10;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
Esempio n. 2
0
int Q3Header::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Qt::Orientation*>(_v) = orientation(); break;
        case 1: *reinterpret_cast< bool*>(_v) = tracking(); break;
        case 2: *reinterpret_cast< int*>(_v) = count(); break;
        case 3: *reinterpret_cast< int*>(_v) = offset(); break;
        case 4: *reinterpret_cast< bool*>(_v) = isMovingEnabled(); break;
        case 5: *reinterpret_cast< bool*>(_v) = isStretchEnabled(); break;
        }
        _id -= 6;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
        case 1: setTracking(*reinterpret_cast< bool*>(_v)); break;
        case 3: setOffset(*reinterpret_cast< int*>(_v)); break;
        case 4: setMovingEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 5: setStretchEnabled(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 6;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}