Skip to content

Commit

Permalink
#160 WIP.
Browse files Browse the repository at this point in the history
Signed-off-by: cneben <[email protected]>
  • Loading branch information
cneben committed Aug 10, 2022
1 parent 5ce69ab commit 5862370
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 770 deletions.
17 changes: 3 additions & 14 deletions samples/tools/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
//-----------------------------------------------------------------------------
// This file is a part of the QuickQanava software library.
//
// \file topology.cpp
// \file tools.cpp
// \author [email protected]
// \date 2016 02 09
// \date 2022 08 10
//-----------------------------------------------------------------------------

// QuickQanava headers
Expand All @@ -40,9 +40,6 @@
#include <QQuickStyle>
#include <QIcon>

// Topology sample headers
#include "./qanFaceNode.h"

using namespace qan;

int main(int argc, char** argv)
Expand All @@ -53,18 +50,10 @@ int main(int argc, char** argv)
QApplication app(argc, argv);
app.setQuitOnLastWindowClosed(true);
QQuickStyle::setStyle("Material");
QStringList themePaths; themePaths << "qrc:/icons"
<< "qrc:/icons/Qan";
QIcon::setFallbackSearchPaths(QIcon::fallbackSearchPaths() << themePaths);
QIcon::setThemeSearchPaths(QIcon::themeSearchPaths() << themePaths);
QIcon::setThemeName(QStringLiteral("Qan"));

QQmlApplicationEngine engine;
engine.addPluginPath(QStringLiteral("../../src")); // Necessary only for development when plugin is not installed to QTDIR/qml
QuickQanava::initialize(&engine);
qmlRegisterType<qan::FaceNode>("TopologySample", 1, 0, "AbstractFaceNode");
qmlRegisterType<qan::FaceGraph>("TopologySample", 1, 0, "FaceGraph");
engine.load(QUrl("qrc:/topology.qml"));
engine.load(QUrl("qrc:/tools.qml"));
return app.exec();
}

Loading

0 comments on commit 5862370

Please sign in to comment.