полная сборка рабочая с docTasks

This commit is contained in:
krivoshein
2024-11-27 16:39:01 +03:00
parent 9c0fae5df9
commit 923764eaf3
24 changed files with 235 additions and 206 deletions

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_DocTasksWidget_t {
QByteArrayData data[1];
char stringdata0[15];
QByteArrayData data[6];
char stringdata0[83];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -32,10 +32,16 @@ struct qt_meta_stringdata_DocTasksWidget_t {
)
static const qt_meta_stringdata_DocTasksWidget_t qt_meta_stringdata_DocTasksWidget = {
{
QT_MOC_LITERAL(0, 0, 14) // "DocTasksWidget"
QT_MOC_LITERAL(0, 0, 14), // "DocTasksWidget"
QT_MOC_LITERAL(1, 15, 32), // "on_treeWidget_currentItemChanged"
QT_MOC_LITERAL(2, 48, 0), // ""
QT_MOC_LITERAL(3, 49, 16), // "QTreeWidgetItem*"
QT_MOC_LITERAL(4, 66, 7), // "current"
QT_MOC_LITERAL(5, 74, 8) // "previous"
},
"DocTasksWidget"
"DocTasksWidget\0on_treeWidget_currentItemChanged\0"
"\0QTreeWidgetItem*\0current\0previous"
};
#undef QT_MOC_LITERAL
@@ -45,22 +51,32 @@ static const uint qt_meta_data_DocTasksWidget[] = {
8, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
1, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 2, 19, 2, 0x08 /* Private */,
// slots: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3, 4, 5,
0 // eod
};
void DocTasksWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<DocTasksWidget *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->on_treeWidget_currentItemChanged((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QTreeWidgetItem*(*)>(_a[2]))); break;
default: ;
}
}
}
QT_INIT_METAOBJECT const QMetaObject DocTasksWidget::staticMetaObject = { {
@@ -89,6 +105,17 @@ void *DocTasksWidget::qt_metacast(const char *_clname)
int DocTasksWidget::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 < 1)
qt_static_metacall(this, _c, _id, _a);
_id -= 1;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 1)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 1;
}
return _id;
}
QT_WARNING_POP

View File

@@ -14,6 +14,8 @@
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
@@ -26,6 +28,9 @@ public:
QGroupBox *groupBox;
QGridLayout *gridLayout_2;
QHBoxLayout *horizontalLayout_2;
QHBoxLayout *horizontalLayout_3;
QLabel *label;
QLineEdit *editCode;
void setupUi(QWidget *DocTasksWidget)
{
@@ -49,6 +54,21 @@ public:
gridLayout_2->addLayout(horizontalLayout_2, 0, 0, 1, 1);
horizontalLayout_3 = new QHBoxLayout();
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
label = new QLabel(groupBox);
label->setObjectName(QString::fromUtf8("label"));
horizontalLayout_3->addWidget(label);
editCode = new QLineEdit(groupBox);
editCode->setObjectName(QString::fromUtf8("editCode"));
horizontalLayout_3->addWidget(editCode);
gridLayout_2->addLayout(horizontalLayout_3, 1, 0, 1, 1);
horizontalLayout->addWidget(groupBox);
@@ -65,6 +85,7 @@ public:
{
DocTasksWidget->setWindowTitle(QCoreApplication::translate("DocTasksWidget", "Form", nullptr));
groupBox->setTitle(QCoreApplication::translate("DocTasksWidget", "Document", nullptr));
label->setText(QCoreApplication::translate("DocTasksWidget", "Code", nullptr));
} // retranslateUi
};