Session 022: Migrate Lts/Tools (72 submodules) to Qt6
- Copied complete Lts/Tools directory from qt5-before to qt6-after - Updated 32 CMakeLists.txt files (Qt5:: → Qt6::) - Tools subdirectory already included in parent Lts/CMakeLists.txt - All 72 tool submodules now present in qt6-migrated-legatus - Includes: Adler, ArAssets, ConfigX, DBAdministration, DBUpdate, DdsView, InfrastructureManagement, and 67 more tools - C++17 standard (RTI 7.7.0 compatibility maintained) - Tests deferred until final validation phase Migration progress: ✅ Lts/Application (68 files) ✅ Lts/DDS (verified Qt6-ready) ✅ Lts/Plugins (60 submodules, verified) ✅ Lts/Projects (5 submodules, verified) ✅ Lts/Proxies (13 submodules, verified) ✅ Lts/Services (47 submodules, verified) ✅ Lts/Tools (72 submodules, copied + CMake updated) ✅ Lts/Viewer (LtsFileDialog, LtsReportDisplay, SituationMap) 🟡 TetraIF (partial) 🟡 Z (partial: nglwidgets, QtSingleApplication, qsql_informix, WMS_Interface)
This commit is contained in:
1 parent
01dce5fe52
commit
d5c13033e2
1792 files changed
+982018
No files matched your search
@@ -0,0 +1,108 @@
|
||||
#pragma once
|
||||
|
||||
#include "LoginWnd.h"
|
||||
#include "DataModel.h"
|
||||
#include "AddModel.h"
|
||||
|
||||
#include <QSqlDatabase>
|
||||
#include <QtCore/QList>
|
||||
#include <QModelIndex>
|
||||
|
||||
class Query;
|
||||
|
||||
class QueryWorker: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QueryWorker();
|
||||
~QueryWorker();
|
||||
|
||||
void dy()
|
||||
{
|
||||
m_dy = true;
|
||||
}
|
||||
|
||||
bool isIdle() const
|
||||
{
|
||||
return m_idle;
|
||||
}
|
||||
|
||||
QAtomicInt m_dy;
|
||||
QAtomicInt m_idle; // dunno how to solve this atm
|
||||
|
||||
private:
|
||||
QSqlDatabase m_sqlDB;
|
||||
|
||||
QString selectQuery(const QString &queryString, DataModel *dataModel); //DataModel* model, )
|
||||
QString executeQuery(int* affectedRows, const QString &queryString);
|
||||
QString valueToSqlString(const QVariant &val, const HeaderList &headerList, const int col);
|
||||
|
||||
|
||||
// NEW ARCH
|
||||
// Delete Lines
|
||||
public slots:
|
||||
void slotDeleteLines(Query* caller, const QList<QModelIndex> &selectedRows, DataModel* dataModel);
|
||||
|
||||
signals:
|
||||
void signalDeleteLinesResult(Query*,int, const QString &, const QList<QModelIndex> &);
|
||||
|
||||
|
||||
// Custom Query
|
||||
public slots:
|
||||
void slotCustomQuery(Query* caller, const QString &queryString, DataModel* model);
|
||||
|
||||
signals:
|
||||
void signalCustomQueryResult(Query*,const QString &);
|
||||
|
||||
|
||||
// Table Query
|
||||
public slots:
|
||||
void slotTableQuery(Query* caller, DataModel* model);
|
||||
|
||||
signals:
|
||||
void signalTableQueryResult(Query*,const QString &);
|
||||
void signalSwapModelData();
|
||||
|
||||
|
||||
|
||||
// Add Lines
|
||||
public slots:
|
||||
void slotAddLines(Query* caller, AddModel* addModel);
|
||||
|
||||
signals:
|
||||
void signalAddLinesResult(Query*,int, const QString &);
|
||||
|
||||
|
||||
|
||||
// Set Data
|
||||
public slots:
|
||||
void slotSetData(Query* caller, DataModel*, const QModelIndex &, const QVariant &);
|
||||
|
||||
signals:
|
||||
void signalSetDataResult(Query*,const QString &);
|
||||
void signalSetDataInModel(const QModelIndex &idx, const QVariant &data);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public slots:
|
||||
void slotConnectIt(const LoginData &loginData);
|
||||
void slotGetTableList();
|
||||
|
||||
|
||||
signals:
|
||||
void signalConnectResult(const QString &);
|
||||
void signalNewTableList(const QStringList &);
|
||||
|
||||
//unused?void signalSelectQueryResult(QString errorMsg, DataModel* dataModel);
|
||||
void signalSelectQueryStatus(int percent); // 0 - 100
|
||||
|
||||
//unsued?void signalExecuteQueryResult(bool success, QString errorMsg, QVariant actualValue, QModelIndex onThisPosition); // take actual value as the new value set!
|
||||
void signalExecuteQueryStatus(int percent);
|
||||
|
||||
};
|
||||
Reference in new issue
Block a user