Removed dead code.

This commit is contained in:
2025-10-05 14:50:45 +02:00
parent f70e67e6ed
commit 558ef154a6
4 changed files with 5 additions and 80 deletions

View File

@@ -118,7 +118,7 @@ void XQMainWindow::initMainWindow()
loadDocument( c_DocumentFileName1 ); loadDocument( c_DocumentFileName1 );
loadDocument( c_DocumentFileName2, true ); loadDocument( c_DocumentFileName2, true );
//loadDocument( c_DocumentFileName2 ); //loadDocument( c_DocumentFileName2 );
//loadDocument( c_DocumentFileName3 ); loadDocument( c_DocumentFileName3 );
qDebug() << " --- #nodes created: " << XQNode::s_Count; qDebug() << " --- #nodes created: " << XQNode::s_Count;

View File

@@ -28,50 +28,6 @@
#include <xqmainwindow.h> #include <xqmainwindow.h>
/*
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 <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtCore/QObject>
#include <QtCore/QTimer>
#include <QtCore/QDateTime>
// Qt GUI
#include <QtGui/QGuiApplication>
#include <QtGui/QIcon>
#include <QtGui/QPixmap>
// Qt Widgets (falls verwendet)
#include <QtWidgets/QApplication>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QLabel>
// STL
#include <vector>
#include <string>
#include <map>
#include <memory>
#endif // PCH_H
*/
using namespace Qt::Literals::StringLiterals; using namespace Qt::Literals::StringLiterals;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
@@ -86,35 +42,6 @@ int main(int argc, char *argv[])
XQMainWindow window; XQMainWindow window;
window.show(); 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(); return app.exec();
} }

View File

@@ -16,8 +16,6 @@
#include <xqitem.h> #include <xqitem.h>
//! hilfsfunktion: gibt diesen teilbaum rekursiv aus //! hilfsfunktion: gibt diesen teilbaum rekursiv aus
void inspect( const XQNodePtr& node, int indent ) void inspect( const XQNodePtr& node, int indent )

View File

@@ -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<typename str_t, typename payload_t> template<typename str_t, typename payload_t>
class zbasic_node : public zid, public payload_t, public std::enable_shared_from_this<zbasic_node<str_t,payload_t>> class zbasic_node : public zid, public payload_t, public std::enable_shared_from_this<zbasic_node<str_t,payload_t>>
{ {
public: public:
using str_cref = const str_t&;
using str_list = std::vector<str_t>;
using zweak_node = std::weak_ptr<zbasic_node>; using zweak_node = std::weak_ptr<zbasic_node>;
using zshared_node = std::shared_ptr<zbasic_node>; using zshared_node = std::shared_ptr<zbasic_node>;
using znode_list = std::vector<zshared_node>; using znode_list = std::vector<zshared_node>;
using zshared_cref = const std::shared_ptr<zbasic_node>&; using zshared_cref = const std::shared_ptr<zbasic_node>&;
using str_cref = const str_t&;
using str_list = std::vector<str_t>;
using ziterator = znode_iterator<zbasic_node>; using ziterator = znode_iterator<zbasic_node>;
protected: protected: