- 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)
38 lines
1.1 KiB
C++
Executable File
38 lines
1.1 KiB
C++
Executable File
#include "textedit.h"
|
|
|
|
#include <QApplication>
|
|
#include <QCommandLineParser>
|
|
#include <QCommandLineOption>
|
|
#include <QScreen>
|
|
#include <QtCore/QDebug>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
//Q_INIT_RESOURCE(textedit);
|
|
|
|
QApplication a(argc, argv);
|
|
// QCoreApplication::setOrganizationName("QtProject");
|
|
// QCoreApplication::setApplicationName("Rich Text");
|
|
// QCoreApplication::setApplicationVersion(QT_VERSION_STR);
|
|
|
|
QCommandLineParser parser;
|
|
parser.setApplicationDescription(QCoreApplication::applicationName());
|
|
parser.addHelpOption();
|
|
parser.addVersionOption();
|
|
parser.addPositionalArgument(QStringLiteral("file"), QStringLiteral("The file to open."));
|
|
parser.process(a);
|
|
|
|
TextEdit mw;
|
|
|
|
const QRect availableGeometry = mw.screen()->availableGeometry();
|
|
mw.resize(availableGeometry.width() / 2, (availableGeometry.height() * 2) / 3);
|
|
mw.move((availableGeometry.width() - mw.width()) / 2,
|
|
(availableGeometry.height() - mw.height()) / 2);
|
|
|
|
if (!mw.load(parser.positionalArguments().value(0, QStringLiteral(":/example.html"))))
|
|
mw.fileNew();
|
|
|
|
mw.show();
|
|
return a.exec();
|
|
}
|