/****************************************************************************
** Meta object code from reading C++ file 'kexidbautofield.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../src/kexi-3.0.2/src/plugins/forms/widgets/kexidbautofield.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kexidbautofield.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. 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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_KexiDBAutoField_t {
    QByteArrayData data[35];
    char stringdata0[384];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KexiDBAutoField_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KexiDBAutoField_t qt_meta_stringdata_KexiDBAutoField = {
    {
QT_MOC_LITERAL(0, 0, 15), // "KexiDBAutoField"
QT_MOC_LITERAL(1, 16, 12), // "unsetPalette"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 13), // "paletteChange"
QT_MOC_LITERAL(4, 44, 6), // "oldPal"
QT_MOC_LITERAL(5, 51, 15), // "moveCursorToEnd"
QT_MOC_LITERAL(6, 67, 17), // "moveCursorToStart"
QT_MOC_LITERAL(7, 85, 9), // "selectAll"
QT_MOC_LITERAL(8, 95, 7), // "caption"
QT_MOC_LITERAL(9, 103, 20), // "foregroundLabelColor"
QT_MOC_LITERAL(10, 124, 20), // "backgroundLabelColor"
QT_MOC_LITERAL(11, 145, 11), // "autoCaption"
QT_MOC_LITERAL(12, 157, 10), // "dataSource"
QT_MOC_LITERAL(13, 168, 19), // "dataSourcePartClass"
QT_MOC_LITERAL(14, 188, 8), // "readOnly"
QT_MOC_LITERAL(15, 197, 13), // "labelPosition"
QT_MOC_LITERAL(16, 211, 13), // "LabelPosition"
QT_MOC_LITERAL(17, 225, 10), // "widgetType"
QT_MOC_LITERAL(18, 236, 10), // "WidgetType"
QT_MOC_LITERAL(19, 247, 17), // "fieldTypeInternal"
QT_MOC_LITERAL(20, 265, 20), // "fieldCaptionInternal"
QT_MOC_LITERAL(21, 286, 4), // "Auto"
QT_MOC_LITERAL(22, 291, 4), // "Text"
QT_MOC_LITERAL(23, 296, 7), // "Integer"
QT_MOC_LITERAL(24, 304, 6), // "Double"
QT_MOC_LITERAL(25, 311, 7), // "Boolean"
QT_MOC_LITERAL(26, 319, 4), // "Date"
QT_MOC_LITERAL(27, 324, 4), // "Time"
QT_MOC_LITERAL(28, 329, 8), // "DateTime"
QT_MOC_LITERAL(29, 338, 13), // "MultiLineText"
QT_MOC_LITERAL(30, 352, 8), // "ComboBox"
QT_MOC_LITERAL(31, 361, 5), // "Image"
QT_MOC_LITERAL(32, 367, 4), // "Left"
QT_MOC_LITERAL(33, 372, 3), // "Top"
QT_MOC_LITERAL(34, 376, 7) // "NoLabel"

    },
    "KexiDBAutoField\0unsetPalette\0\0"
    "paletteChange\0oldPal\0moveCursorToEnd\0"
    "moveCursorToStart\0selectAll\0caption\0"
    "foregroundLabelColor\0backgroundLabelColor\0"
    "autoCaption\0dataSource\0dataSourcePartClass\0"
    "readOnly\0labelPosition\0LabelPosition\0"
    "widgetType\0WidgetType\0fieldTypeInternal\0"
    "fieldCaptionInternal\0Auto\0Text\0Integer\0"
    "Double\0Boolean\0Date\0Time\0DateTime\0"
    "MultiLineText\0ComboBox\0Image\0Left\0Top\0"
    "NoLabel"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KexiDBAutoField[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
      11,   46, // properties
       2,   79, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    0,   39,    2, 0x0a /* Public */,
       3,    1,   40,    2, 0x09 /* Protected */,
       5,    0,   43,    2, 0x09 /* Protected */,
       6,    0,   44,    2, 0x09 /* Protected */,
       7,    0,   45,    2, 0x09 /* Protected */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPalette,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
       8, QMetaType::QString, 0x00095103,
       9, QMetaType::QColor, 0x00095107,
      10, QMetaType::QColor, 0x00095107,
      11, QMetaType::Bool, 0x00095103,
      12, QMetaType::QString, 0x00095103,
      13, QMetaType::QString, 0x00095003,
      14, QMetaType::Bool, 0x00095103,
      15, 0x80000000 | 16, 0x0009510b,
      17, 0x80000000 | 18, 0x0009510b,
      19, QMetaType::Int, 0x00085103,
      20, QMetaType::QString, 0x00085103,

 // enums: name, flags, count, data
      18, 0x0,   11,   87,
      16, 0x0,    3,  109,

 // enum data: key, value
      21, uint(KexiDBAutoField::Auto),
      22, uint(KexiDBAutoField::Text),
      23, uint(KexiDBAutoField::Integer),
      24, uint(KexiDBAutoField::Double),
      25, uint(KexiDBAutoField::Boolean),
      26, uint(KexiDBAutoField::Date),
      27, uint(KexiDBAutoField::Time),
      28, uint(KexiDBAutoField::DateTime),
      29, uint(KexiDBAutoField::MultiLineText),
      30, uint(KexiDBAutoField::ComboBox),
      31, uint(KexiDBAutoField::Image),
      32, uint(KexiDBAutoField::Left),
      33, uint(KexiDBAutoField::Top),
      34, uint(KexiDBAutoField::NoLabel),

       0        // eod
};

void KexiDBAutoField::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KexiDBAutoField *_t = static_cast<KexiDBAutoField *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->unsetPalette(); break;
        case 1: _t->paletteChange((*reinterpret_cast< const QPalette(*)>(_a[1]))); break;
        case 2: _t->moveCursorToEnd(); break;
        case 3: _t->moveCursorToStart(); break;
        case 4: _t->selectAll(); break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KexiDBAutoField *_t = static_cast<KexiDBAutoField *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->caption(); break;
        case 1: *reinterpret_cast< QColor*>(_v) = _t->foregroundLabelColor(); break;
        case 2: *reinterpret_cast< QColor*>(_v) = _t->backgroundLabelColor(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->hasAutoCaption(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->dataSource(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->dataSourcePluginId(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->isReadOnly(); break;
        case 7: *reinterpret_cast< LabelPosition*>(_v) = _t->labelPosition(); break;
        case 8: *reinterpret_cast< WidgetType*>(_v) = _t->widgetType(); break;
        case 9: *reinterpret_cast< int*>(_v) = _t->fieldTypeInternal(); break;
        case 10: *reinterpret_cast< QString*>(_v) = _t->fieldCaptionInternal(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KexiDBAutoField *_t = static_cast<KexiDBAutoField *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCaption(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setForegroundLabelColor(*reinterpret_cast< QColor*>(_v)); break;
        case 2: _t->setBackgroundLabelColor(*reinterpret_cast< QColor*>(_v)); break;
        case 3: _t->setAutoCaption(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setDataSource(*reinterpret_cast< QString*>(_v)); break;
        case 5: _t->setDataSourcePluginId(*reinterpret_cast< QString*>(_v)); break;
        case 6: _t->setReadOnly(*reinterpret_cast< bool*>(_v)); break;
        case 7: _t->setLabelPosition(*reinterpret_cast< LabelPosition*>(_v)); break;
        case 8: _t->setWidgetType(*reinterpret_cast< WidgetType*>(_v)); break;
        case 9: _t->setFieldTypeInternal(*reinterpret_cast< int*>(_v)); break;
        case 10: _t->setFieldCaptionInternal(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
        KexiDBAutoField *_t = static_cast<KexiDBAutoField *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 1: _t->unsetPalette(); break;
        case 2: _t->unsetPalette(); break;
        default: break;
        }
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KexiDBAutoField::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_KexiDBAutoField.data,
      qt_meta_data_KexiDBAutoField,  qt_static_metacall, nullptr, nullptr}
};


const QMetaObject *KexiDBAutoField::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *KexiDBAutoField::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KexiDBAutoField.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "KexiFormDataItemInterface"))
        return static_cast< KexiFormDataItemInterface*>(this);
    if (!strcmp(_clname, "KFormDesigner::DesignTimeDynamicChildWidgetHandler"))
        return static_cast< KFormDesigner::DesignTimeDynamicChildWidgetHandler*>(this);
    if (!strcmp(_clname, "KFormDesigner::WidgetWithSubpropertiesInterface"))
        return static_cast< KFormDesigner::WidgetWithSubpropertiesInterface*>(this);
    if (!strcmp(_clname, "KFormDesigner::FormWidgetInterface"))
        return static_cast< KFormDesigner::FormWidgetInterface*>(this);
    return QWidget::qt_metacast(_clname);
}

int KexiDBAutoField::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 5;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 11;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
