Adds first regression and Qt6-migration-quality accessing results

This commit is contained in:
torsten committed 2026-10-22 08:17:55 +00:00
1 parent c39dbec31f
commit 068316af63
5 files changed
+8 -8

No files matched your search

@@ -192,7 +192,7 @@ int main(int argc, char **argv) // TODO: json strings to lower
NGLApplication app(argc, argv); NGLApplication app(argc, argv);
app.createLogger("opApp"); app.createLogger("opApp");
QApplication::setQuitOnLastWindowClosed(false); // we are cool enough to handle it ourselves 8) QApplication::setQuitOnLastWindowClosed(false); // we are cool enough to handle it ourselves 8)
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); // Qt::AA_UseHighDpiPixmaps: no-op since Qt6 (high-DPI pixmaps are always enabled)
QNetworkProxy::setApplicationProxy(QNetworkProxy()); // do NOT use proxies anywhere! QNetworkProxy::setApplicationProxy(QNetworkProxy()); // do NOT use proxies anywhere!
NGL::LoggerHandler *lh = NGL::LoggerHandler::getLoggerHandler(); NGL::LoggerHandler *lh = NGL::LoggerHandler::getLoggerHandler();
@@ -23,7 +23,7 @@ int main(int argc, char **argv)
QNetworkProxy::setApplicationProxy(QNetworkProxy()); QNetworkProxy::setApplicationProxy(QNetworkProxy());
NGLApplication app(argc, argv); NGLApplication app(argc, argv);
app.createLogger("SRP"); app.createLogger("SRP");
app.setAttribute(Qt::AA_UseHighDpiPixmaps); // Qt::AA_UseHighDpiPixmaps: no-op since Qt6 (high-DPI pixmaps are always enabled)
SituationReplay::ConnectionParams connParams; SituationReplay::ConnectionParams connParams;
connParams.domainId = 1; connParams.domainId = 1;
@@ -50,7 +50,7 @@ int main(int argc, char **argv)
app.createLogger("THP", "log4cxx_thp_viewer.props"); app.createLogger("THP", "log4cxx_thp_viewer.props");
app.setOrganizationName(QStringLiteral("RME")); app.setOrganizationName(QStringLiteral("RME"));
app.setApplicationName(QStringLiteral("thp_viewer")); app.setApplicationName(QStringLiteral("thp_viewer"));
app.setAttribute(Qt::AA_UseHighDpiPixmaps); // Qt::AA_UseHighDpiPixmaps: no-op since Qt6 (high-DPI pixmaps are always enabled)
QDir::setSearchPaths(QLatin1String("icon"), QStringList(QLatin1String(":/style/"))); QDir::setSearchPaths(QLatin1String("icon"), QStringList(QLatin1String(":/style/")));
Q_INIT_RESOURCE(rme_light_style); Q_INIT_RESOURCE(rme_light_style);
@@ -4,7 +4,7 @@
#include <osg/Material> #include <osg/Material>
#include <osg/BlendFunc> #include <osg/BlendFunc>
#include <osg/BlendColor> #include <osg/BlendColor>
#include <QStringRef> #include <QStringView>
#include <QtCore/QVector> #include <QtCore/QVector>
namespace VCtrl namespace VCtrl
@@ -87,10 +87,10 @@ void SplitVisitor::apply(osg::Group &node)
for (unsigned int i = 0; i < node.getNumDescriptions(); ++i) for (unsigned int i = 0; i < node.getNumDescriptions(); ++i)
{ {
QString descr = QString::fromStdString(node.getDescription(i)); QString descr = QString::fromStdString(node.getDescription(i));
const QVector<QStringRef> descprt = descr.splitRef(QLatin1Char(';')); const QVector<QStringView> descprt = QStringView(descr).split(QLatin1Char(';'));
for (const QStringRef &prt : descprt) for (const QStringView &prt : descprt)
{ {
const QVector<QStringRef> items = prt.split(QLatin1Char('=')); const QVector<QStringView> items = prt.split(QLatin1Char('='));
if (items.size() == 2 && items[0] == QLatin1String("base_height")) if (items.size() == 2 && items[0] == QLatin1String("base_height"))
h = items[1].toFloat(); h = items[1].toFloat();
} }
@@ -23,7 +23,7 @@ TypeStruct::TypeStruct(const rpr2::EntityTypeStruct &eis)
TypeStruct TypeStruct::fromString(const QString &string) TypeStruct TypeStruct::fromString(const QString &string)
{ {
const QVector<QStringRef> sl = string.splitRef(QLatin1Char('.')); const QVector<QStringView> sl = QStringView(string).split(QLatin1Char('.'));
TypeStruct ts; TypeStruct ts;
bool bOk; bool bOk;