From 558ef154a604addfd687b6ff8423ffbcfc887aa4 Mon Sep 17 00:00:00 2001 From: "PANIK\\chris" Date: Sun, 5 Oct 2025 14:50:45 +0200 Subject: [PATCH] Removed dead code. --- src/application/xqmainwindow.cpp | 2 +- src/main.cpp | 73 -------------------------------- src/model/xqnode.cpp | 2 - src/nodes/znode.h | 8 ++-- 4 files changed, 5 insertions(+), 80 deletions(-) diff --git a/src/application/xqmainwindow.cpp b/src/application/xqmainwindow.cpp index bd0a0a2..68ea34f 100644 --- a/src/application/xqmainwindow.cpp +++ b/src/application/xqmainwindow.cpp @@ -118,7 +118,7 @@ void XQMainWindow::initMainWindow() loadDocument( c_DocumentFileName1 ); loadDocument( c_DocumentFileName2, true ); //loadDocument( c_DocumentFileName2 ); - //loadDocument( c_DocumentFileName3 ); + loadDocument( c_DocumentFileName3 ); qDebug() << " --- #nodes created: " << XQNode::s_Count; diff --git a/src/main.cpp b/src/main.cpp index 4a7a3d1..a53d187 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,50 +28,6 @@ #include -/* - - -CONFIG += precompile_header -PRECOMPILED_HEADER = pch.h - -// pch.h – Precompiled Header für Qt-Projekt - -Stelle sicher, dass pch.h im Projektordner liegt und in den .cpp-Dateien eingebunden wird: - -C++ -#include "pch.h" - -#ifndef PCH_H -#define PCH_H - -// Qt Core -#include -#include -#include -#include -#include - -// Qt GUI -#include -#include -#include - -// Qt Widgets (falls verwendet) -#include -#include -#include -#include - -// STL -#include -#include -#include -#include - -#endif // PCH_H - -*/ - using namespace Qt::Literals::StringLiterals; int main(int argc, char *argv[]) @@ -86,35 +42,6 @@ int main(int argc, char *argv[]) XQMainWindow window; window.show(); - /* - QApplication app(argc, argv); - - XQMainWindow::setupWorkingDir(); - XQItemFactory::instance().initItemFactory( c_ModelSheetFileName ); - - XQChildModel* myModel = createChildModel(); - qmlRegisterType< XQChildModel>("MyApp.Models", 1, 0, "MyChildModel"); - - - QQmlApplicationEngine engine; - - engine.rootContext()->setContextProperty("myChildModel", myModel); - - QObject::connect( - &engine, - &QQmlApplicationEngine::objectCreationFailed, - &app, - []() { QCoreApplication::exit(-1); }, - Qt::QueuedConnection); - - qDebug() << " fitz!"; - - engine.load( QUrl(QStringLiteral("qrc:/dummyview.qml")) ); - //engine.load( QUrl(QStringLiteral("qrc:/xqtableview.qml")) ); - - qDebug() << " hhakl!"; - -*/ return app.exec(); } diff --git a/src/model/xqnode.cpp b/src/model/xqnode.cpp index 2a87506..c70bab8 100644 --- a/src/model/xqnode.cpp +++ b/src/model/xqnode.cpp @@ -16,8 +16,6 @@ #include - - //! hilfsfunktion: gibt diesen teilbaum rekursiv aus void inspect( const XQNodePtr& node, int indent ) diff --git a/src/nodes/znode.h b/src/nodes/znode.h index 6365eda..384c80a 100644 --- a/src/nodes/znode.h +++ b/src/nodes/znode.h @@ -38,21 +38,21 @@ namespace znode */ - //! tree-klasse, besonderheit: der nutzlast-string-type ist templated. + //! tree-klasse, besonderheit: der nutzlast & string-type sind templated. template class zbasic_node : public zid, public payload_t, public std::enable_shared_from_this> { public: - using str_cref = const str_t&; - using str_list = std::vector; - using zweak_node = std::weak_ptr; using zshared_node = std::shared_ptr; using znode_list = std::vector; using zshared_cref = const std::shared_ptr&; + using str_cref = const str_t&; + using str_list = std::vector; + using ziterator = znode_iterator; protected: