text: /****************************************************************************
  ** Meta object code from reading C++ file 'notepad.h'
  **
  ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.2)
  **
  ** WARNING! All changes made in this file will be lost!
  *****************************************************************************/
  
  #include "../src/notepad.h"
  #include <QtCore/qbytearray.h>
  #include <QtCore/qmetatype.h>
  #if !defined(Q_MOC_OUTPUT_REVISION)
  #error "The header file 'notepad.h' doesn't include <QObject>."
  #elif Q_MOC_OUTPUT_REVISION != 67
  #error "This file was generated using the moc from 5.12.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_Notepad_t {
      QByteArrayData data[29];
      char stringdata0[227];
  };
  #define QT_MOC_LITERAL(idx, ofs, len) \
      Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
      qptrdiff(offsetof(qt_meta_stringdata_Notepad_t, stringdata0) + ofs \
          - idx * sizeof(QByteArrayData)) \
      )
  static const qt_meta_stringdata_Notepad_t qt_meta_stringdata_Notepad = {
      {
  QT_MOC_LITERAL(0, 0, 7), // "Notepad"
  QT_MOC_LITERAL(1, 8, 10), // "keyPressed"
  QT_MOC_LITERAL(2, 19, 0), // ""
  QT_MOC_LITERAL(3, 20, 4), // "CRDT"
  QT_MOC_LITERAL(4, 25, 4), // "data"
  QT_MOC_LITERAL(5, 30, 14), // "cursorPosition"
  QT_MOC_LITERAL(6, 45, 7), // "setText"
  QT_MOC_LITERAL(7, 53, 4), // "text"
  QT_MOC_LITERAL(8, 58, 17), // "setCursorPosition"
  QT_MOC_LITERAL(9, 76, 3), // "idx"
  QT_MOC_LITERAL(10, 80, 11), // "newDocument"
  QT_MOC_LITERAL(11, 92, 4), // "open"
  QT_MOC_LITERAL(12, 97, 4), // "save"
  QT_MOC_LITERAL(13, 102, 6), // "saveAs"
  QT_MOC_LITERAL(14, 109, 5), // "print"
  QT_MOC_LITERAL(15, 115, 4), // "exit"
  QT_MOC_LITERAL(16, 120, 4), // "copy"
  QT_MOC_LITERAL(17, 125, 3), // "cut"
  QT_MOC_LITERAL(18, 129, 5), // "paste"
  QT_MOC_LITERAL(19, 135, 4), // "undo"
  QT_MOC_LITERAL(20, 140, 4), // "redo"
  QT_MOC_LITERAL(21, 145, 10), // "selectFont"
  QT_MOC_LITERAL(22, 156, 11), // "setFontBold"
  QT_MOC_LITERAL(23, 168, 4), // "bold"
  QT_MOC_LITERAL(24, 173, 16), // "setFontUnderline"
  QT_MOC_LITERAL(25, 190, 9), // "underline"
  QT_MOC_LITERAL(26, 200, 13), // "setFontItalic"
  QT_MOC_LITERAL(27, 214, 6), // "italic"
  QT_MOC_LITERAL(28, 221, 5) // "about"
  
      },
      "Notepad\0keyPressed\0\0CRDT\0data\0"
      "cursorPosition\0setText\0text\0"
      "setCursorPosition\0idx\0newDocument\0"
      "open\0save\0saveAs\0print\0exit\0copy\0cut\0"
      "paste\0undo\0redo\0selectFont\0setFontBold\0"
      "bold\0setFontUnderline\0underline\0"
      "setFontItalic\0italic\0about"
  };
  #undef QT_MOC_LITERAL
  
  static const uint qt_meta_data_Notepad[] = {
  
   // content:
         8,       // revision
         0,       // classname
         0,    0, // classinfo
        19,   14, // methods
         0,    0, // properties
         0,    0, // enums/sets
         0,    0, // constructors
         0,       // flags
         1,       // signalCount
  
   // signals: name, argc, parameters, tag, flags
         1,    2,  109,    2, 0x06 /* Public */,
  
   // slots: name, argc, parameters, tag, flags
         6,    1,  114,    2, 0x0a /* Public */,
         8,    1,  117,    2, 0x0a /* Public */,
        10,    0,  120,    2, 0x08 /* Private */,
        11,    0,  121,    2, 0x08 /* Private */,
        12,    0,  122,    2, 0x08 /* Private */,
        13,    0,  123,    2, 0x08 /* Private */,
        14,    0,  124,    2, 0x08 /* Private */,
        15,    0,  125,    2, 0x08 /* Private */,
        16,    0,  126,    2, 0x08 /* Private */,
        17,    0,  127,    2, 0x08 /* Private */,
        18,    0,  128,    2, 0x08 /* Private */,
        19,    0,  129,    2, 0x08 /* Private */,
        20,    0,  130,    2, 0x08 /* Private */,
        21,    0,  131,    2, 0x08 /* Private */,
        22,    1,  132,    2, 0x08 /* Private */,
        24,    1,  135,    2, 0x08 /* Private */,
        26,    1,  138,    2, 0x08 /* Private */,
        28,    0,  141,    2, 0x08 /* Private */,
  
   // signals: parameters
      QMetaType::Void, 0x80000000 | 3, QMetaType::Int,    4,    5,
  
   // slots: parameters
      QMetaType::Void, QMetaType::QString,    7,
      QMetaType::Void, QMetaType::Int,    9,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void,
      QMetaType::Void, QMetaType::Bool,   23,
      QMetaType::Void, QMetaType::Bool,   25,
      QMetaType::Void, QMetaType::Bool,   27,
      QMetaType::Void,
  
         0        // eod
  };
  
  void Notepad::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  {
      if (_c == QMetaObject::InvokeMetaMethod) {
          auto *_t = static_cast<Notepad *>(_o);
          Q_UNUSED(_t)
          switch (_id) {
          case 0: _t->keyPressed((*reinterpret_cast< CRDT(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
          case 1: _t->setText((*reinterpret_cast< QString(*)>(_a[1]))); break;
          case 2: _t->setCursorPosition((*reinterpret_cast< int(*)>(_a[1]))); break;
          case 3: _t->newDocument(); break;
          case 4: _t->open(); break;
          case 5: _t->save(); break;
          case 6: _t->saveAs(); break;
          case 7: _t->print(); break;
          case 8: _t->exit(); break;
          case 9: _t->copy(); break;
          case 10: _t->cut(); break;
          case 11: _t->paste(); break;
          case 12: _t->undo(); break;
          case 13: _t->redo(); break;
          case 14: _t->selectFont(); break;
          case 15: _t->setFontBold((*reinterpret_cast< bool(*)>(_a[1]))); break;
          case 16: _t->setFontUnderline((*reinterpret_cast< bool(*)>(_a[1]))); break;
          case 17: _t->setFontItalic((*reinterpret_cast< bool(*)>(_a[1]))); break;
          case 18: _t->about(); break;
          default: ;
          }
      } else if (_c == QMetaObject::IndexOfMethod) {
          int *result = reinterpret_cast<int *>(_a[0]);
          {
              using _t = void (Notepad::*)(CRDT , int );
              if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Notepad::keyPressed)) {
                  *result = 0;
                  return;
              }
          }
      }
  }
  
  QT_INIT_METAOBJECT const QMetaObject Notepad::staticMetaObject = { {
      &QMainWindow::staticMetaObject,
      qt_meta_stringdata_Notepad.data,
      qt_meta_data_Notepad,
      qt_static_metacall,
      nullptr,
      nullptr
  } };
  
  
  const QMetaObject *Notepad::metaObject() const
  {
      return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  }
  
  void *Notepad::qt_metacast(const char *_clname)
  {
      if (!_clname) return nullptr;
      if (!strcmp(_clname, qt_meta_stringdata_Notepad.stringdata0))
          return static_cast<void*>(this);
      return QMainWindow::qt_metacast(_clname);
  }
  
  int Notepad::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  {
      _id = QMainWindow::qt_metacall(_c, _id, _a);
      if (_id < 0)
          return _id;
      if (_c == QMetaObject::InvokeMetaMethod) {
          if (_id < 19)
              qt_static_metacall(this, _c, _id, _a);
          _id -= 19;
      } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
          if (_id < 19)
              *reinterpret_cast<int*>(_a[0]) = -1;
          _id -= 19;
      }
      return _id;
  }
  
  // SIGNAL 0
  void Notepad::keyPressed(CRDT _t1, int _t2)
  {
      void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
      QMetaObject::activate(this, &staticMetaObject, 0, _a);
  }
  QT_WARNING_POP
  QT_END_MOC_NAMESPACE
  