forked from cneben/QuickQanava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cneben#248 Backport edges sample to support QuickQanava QML module.
Signed-off-by: cneben <[email protected]>
- Loading branch information
Showing
10 changed files
with
43 additions
and
70 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
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
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
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
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
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
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,7 +27,7 @@ | |
//----------------------------------------------------------------------------- | ||
// This file is a part of the QuickQanava software library. | ||
// | ||
// \file connector.cpp | ||
// \file edges.cpp | ||
// \author [email protected] | ||
// \date 2017 03 06 | ||
//----------------------------------------------------------------------------- | ||
|
@@ -43,18 +43,18 @@ | |
|
||
using namespace qan; | ||
|
||
#include <QQmlExtensionPlugin> | ||
Q_IMPORT_QML_PLUGIN(QuickQanavaPlugin) | ||
|
||
//----------------------------------------------------------------------------- | ||
int main( int argc, char** argv ) | ||
{ | ||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) | ||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); | ||
#endif | ||
QGuiApplication app(argc, argv); // Necessary for Qt.labs ColorDialog | ||
QQuickStyle::setStyle("Material"); | ||
QQmlApplicationEngine engine; | ||
engine.addPluginPath(QStringLiteral("../../src")); // Necessary only for development when plugin is not installed to QTDIR/qml | ||
engine.addImportPath("../../src"); // Enable loading of ../../src/QuickQanava module | ||
QuickQanava::initialize(&engine); | ||
engine.load(QUrl("qrc:/edges.qml")); | ||
engine.loadFromModule("SampleEdges", "SampleEdges"); | ||
return app.exec(); | ||
} | ||
//----------------------------------------------------------------------------- | ||
|
This file was deleted.
Oops, something went wrong.
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
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