-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: cneben <[email protected]>
- Loading branch information
Showing
6 changed files
with
41 additions
and
770 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -40,9 +40,6 @@ | |
#include <QQuickStyle> | ||
#include <QIcon> | ||
|
||
// Topology sample headers | ||
#include "./qanFaceNode.h" | ||
|
||
using namespace qan; | ||
|
||
int main(int argc, char** argv) | ||
|
@@ -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(); | ||
} | ||
|
Oops, something went wrong.