mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
before task parser
This commit is contained in:
Binary file not shown.
@@ -1,92 +1,37 @@
|
||||
# ninja log v5
|
||||
12 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
385 434 7531869262720126 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp e72511a2b01b9766
|
||||
12 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
48 1174 7531895068607620 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/mocs_compilation.cpp.obj 223f91fdbeaff3f0
|
||||
441 491 7531869263315372 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp.obj 7ac9b57cd808a15a
|
||||
12 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
50 1161 7531895068477190 CMakeFiles/testDBpgSQL.dir/main.cpp.obj 7c6bf829703494a2
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
52 1197 7531895068837289 CMakeFiles/testDBpgSQL.dir/mainwindow.cpp.obj a213cdc2d21087f1
|
||||
385 434 7531869262720126 testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp e72511a2b01b9766
|
||||
13 38 0 CMakeFiles/clean.additional 7155004b3956b606
|
||||
38 46 0 clean 9c4b4372737ab8da
|
||||
1197 1328 7531895070126788 testDBpgSQL.exe 481e73a84a688916
|
||||
13 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
13 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
13 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
13 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
13 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
13 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 44 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 44 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 44 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 44 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 44 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 44 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
11 42 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
11 42 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
11 42 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
11 42 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
11 42 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
11 42 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
11 42 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
11 42 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
11 42 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
11 42 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
11 42 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
11 42 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
13 45 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
13 45 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
13 45 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
13 45 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
13 45 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
13 45 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 45 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 45 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 45 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 45 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 45 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 45 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
45 1157 7532017363501682 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/mocs_compilation.cpp.obj 223f91fdbeaff3f0
|
||||
48 1172 7532017363661357 CMakeFiles/testDBpgSQL.dir/main.cpp.obj 7c6bf829703494a2
|
||||
50 1216 7532017364102029 CMakeFiles/testDBpgSQL.dir/mainwindow.cpp.obj a213cdc2d21087f1
|
||||
1216 1349 7532017365409313 testDBpgSQL.exe 481e73a84a688916
|
||||
15 47 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
15 47 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
15 47 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
15 47 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
15 47 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
15 47 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
14 46 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
14 46 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
14 46 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
14 46 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
14 46 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
14 46 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
45 1186 7537126864275555 CMakeFiles/testDBpgSQL.dir/main.cpp.obj 7c6bf829703494a2
|
||||
47 1244 7537126864849491 CMakeFiles/testDBpgSQL.dir/mainwindow.cpp.obj a213cdc2d21087f1
|
||||
13 43 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
11 36 0 CMakeFiles/clean.additional 7155004b3956b606
|
||||
378 425 7532687280668591 testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp e72511a2b01b9766
|
||||
1244 1386 7537126866264346 testDBpgSQL.exe 481e73a84a688916
|
||||
36 43 0 clean 9c4b4372737ab8da
|
||||
13 43 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
43 1164 7537126864053953 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/mocs_compilation.cpp.obj 223f91fdbeaff3f0
|
||||
13 43 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
13 43 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
378 425 7532687280668591 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp e72511a2b01b9766
|
||||
432 480 7532687281241851 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp.obj 7ac9b57cd808a15a
|
||||
13 43 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 37 0 CMakeFiles/clean.additional 7155004b3956b606
|
||||
37 44 0 clean 9c4b4372737ab8da
|
||||
12 400 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 400 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 400 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
12 400 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
12 400 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
12 400 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
400 456 7542277073005524 testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp e72511a2b01b9766
|
||||
400 456 7542277073005524 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp e72511a2b01b9766
|
||||
464 516 7542277073630901 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/EWIEGA46WW/qrc_testDBpgSQL.cpp.obj 7ac9b57cd808a15a
|
||||
459 1575 7542277084212077 CMakeFiles/testDBpgSQL.dir/main.cpp.obj 7c6bf829703494a2
|
||||
456 1590 7542277084363275 CMakeFiles/testDBpgSQL.dir/testDBpgSQL_autogen/mocs_compilation.cpp.obj 223f91fdbeaff3f0
|
||||
461 1657 7542277085035608 CMakeFiles/testDBpgSQL.dir/mainwindow.cpp.obj a213cdc2d21087f1
|
||||
1657 1804 7542277086485014 testDBpgSQL.exe 481e73a84a688916
|
||||
16 55 0 CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
16 55 0 testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
16 55 0 testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
16 55 0 D:/LMS/testDB/Debug64/CMakeFiles/testDBpgSQL_autogen d08ec0c05fa072d8
|
||||
16 55 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/mocs_compilation.cpp d08ec0c05fa072d8
|
||||
16 55 0 D:/LMS/testDB/Debug64/testDBpgSQL_autogen/include/ui_mainwindow.h d08ec0c05fa072d8
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_MainWindow_t {
|
||||
QByteArrayData data[1];
|
||||
char stringdata0[11];
|
||||
QByteArrayData data[6];
|
||||
char stringdata0[81];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
@@ -32,10 +32,17 @@ struct qt_meta_stringdata_MainWindow_t {
|
||||
)
|
||||
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 10) // "MainWindow"
|
||||
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
|
||||
QT_MOC_LITERAL(1, 11, 22), // "signal_LanguageChanged"
|
||||
QT_MOC_LITERAL(2, 34, 0), // ""
|
||||
QT_MOC_LITERAL(3, 35, 8), // "language"
|
||||
QT_MOC_LITERAL(4, 44, 31), // "on_comboBox_currentIndexChanged"
|
||||
QT_MOC_LITERAL(5, 76, 4) // "arg1"
|
||||
|
||||
},
|
||||
"MainWindow"
|
||||
"MainWindow\0signal_LanguageChanged\0\0"
|
||||
"language\0on_comboBox_currentIndexChanged\0"
|
||||
"arg1"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
@@ -45,22 +52,48 @@ static const uint qt_meta_data_MainWindow[] = {
|
||||
8, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
2, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
1, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 24, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
4, 1, 27, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::QString, 3,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::QString, 5,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void MainWindow::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<MainWindow *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->signal_LanguageChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 1: _t->on_comboBox_currentIndexChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
using _t = void (MainWindow::*)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::signal_LanguageChanged)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { {
|
||||
@@ -89,7 +122,25 @@ void *MainWindow::qt_metacast(const char *_clname)
|
||||
int MainWindow::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 < 2)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 2;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 2)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 2;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void MainWindow::signal_LanguageChanged(QString _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
|
||||
@@ -11,11 +11,15 @@
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QComboBox>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <QtWidgets/QMenuBar>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QStatusBar>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -25,7 +29,12 @@ class Ui_MainWindow
|
||||
public:
|
||||
QWidget *centralwidget;
|
||||
QGridLayout *gridLayout;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QLabel *label;
|
||||
QComboBox *comboBox;
|
||||
QMenuBar *menubar;
|
||||
QStatusBar *statusbar;
|
||||
|
||||
@@ -38,10 +47,35 @@ public:
|
||||
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||
gridLayout = new QGridLayout(centralwidget);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
|
||||
gridLayout->addLayout(horizontalLayout, 0, 0, 1, 1);
|
||||
verticalLayout->addLayout(horizontalLayout);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
|
||||
label = new QLabel(centralwidget);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
|
||||
horizontalLayout_2->addWidget(label);
|
||||
|
||||
comboBox = new QComboBox(centralwidget);
|
||||
comboBox->setObjectName(QString::fromUtf8("comboBox"));
|
||||
comboBox->setMinimumSize(QSize(100, 0));
|
||||
|
||||
horizontalLayout_2->addWidget(comboBox);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout_2);
|
||||
|
||||
|
||||
gridLayout->addLayout(verticalLayout, 1, 1, 1, 1);
|
||||
|
||||
MainWindow->setCentralWidget(centralwidget);
|
||||
menubar = new QMenuBar(MainWindow);
|
||||
@@ -60,6 +94,7 @@ public:
|
||||
void retranslateUi(QMainWindow *MainWindow)
|
||||
{
|
||||
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
|
||||
label->setText(QCoreApplication::translate("MainWindow", "Language", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
BIN
testDB/Debug64/translations/DataBaseLMS_ru_RU.qm
Normal file
BIN
testDB/Debug64/translations/DataBaseLMS_ru_RU.qm
Normal file
Binary file not shown.
Binary file not shown.
BIN
testDB/Debug64/translations/testDBpgSQL_ru_RU.qm
Normal file
BIN
testDB/Debug64/translations/testDBpgSQL_ru_RU.qm
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.11.1, 2024-11-13T17:15:54. -->
|
||||
<!-- Written by QtCreator 4.11.1, 2024-11-25T15:15:00. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
||||
@@ -11,20 +11,18 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
//Задаём два пункта с текстом локалей в комбобоксе
|
||||
ui->comboBox->addItems(QStringList() << "English" << "Русский");
|
||||
|
||||
m_instructorsAndTraineesWidget = new InstructorsAndTraineesWidget(this);
|
||||
|
||||
if(! m_instructorsAndTraineesWidget->authorizationIsCompleted())
|
||||
{
|
||||
delete m_instructorsAndTraineesWidget;
|
||||
delete ui;
|
||||
throw(std::exception());
|
||||
}
|
||||
connect(this, &MainWindow::signal_LanguageChanged, m_instructorsAndTraineesWidget, &InstructorsAndTraineesWidget::slot_LanguageChanged);
|
||||
|
||||
ui->horizontalLayout->addWidget(m_instructorsAndTraineesWidget);
|
||||
|
||||
this->move(0, 0);
|
||||
this->showNormal();
|
||||
//this->showMaximized();
|
||||
//this->showNormal();
|
||||
this->showMaximized();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@@ -32,3 +30,27 @@ MainWindow::~MainWindow()
|
||||
delete m_instructorsAndTraineesWidget;
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void MainWindow::changeEvent(QEvent *event)
|
||||
{
|
||||
// В случае получения события изменения языка приложения
|
||||
if (event->type() == QEvent::LanguageChange)
|
||||
{// переведём окно заново
|
||||
ui->retranslateUi(this);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_comboBox_currentIndexChanged(const QString &arg1)
|
||||
{
|
||||
QString language;
|
||||
|
||||
if(arg1 == QStringLiteral("English"))
|
||||
language = QString("en_EN");
|
||||
else
|
||||
language = QString("ru_RU");
|
||||
|
||||
qtLanguageTranslator.load(QString("translations/testDBpgSQL_") + language, ".");
|
||||
qApp->installTranslator(&qtLanguageTranslator);
|
||||
|
||||
emit signal_LanguageChanged(language);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QTranslator>
|
||||
#include <QEvent>
|
||||
|
||||
#include "instructorsandtraineeswidget.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -16,8 +19,19 @@ public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent * event) override;
|
||||
|
||||
signals:
|
||||
//сигнал об изменении языка интерфейса
|
||||
void signal_LanguageChanged(QString language);
|
||||
|
||||
private slots:
|
||||
void on_comboBox_currentIndexChanged(const QString &arg1);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QTranslator qtLanguageTranslator;
|
||||
|
||||
InstructorsAndTraineesWidget* m_instructorsAndTraineesWidget;
|
||||
};
|
||||
|
||||
@@ -15,8 +15,46 @@
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout"/>
|
||||
<item row="1" column="1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout"/>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Language</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
||||
BIN
testDB/testDBpgSQL/translations/testDBpgSQL_ru_RU.qm
Normal file
BIN
testDB/testDBpgSQL/translations/testDBpgSQL_ru_RU.qm
Normal file
Binary file not shown.
17
testDB/testDBpgSQL/translations/testDBpgSQL_ru_RU.ts
Normal file
17
testDB/testDBpgSQL/translations/testDBpgSQL_ru_RU.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="ru_RU">
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../mainwindow.ui" line="14"/>
|
||||
<source>MainWindow</source>
|
||||
<translation>Главное окно</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.ui" line="28"/>
|
||||
<source>Language</source>
|
||||
<translation>Язык</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
Reference in New Issue
Block a user