diff options
| author | unknown <henrud@Henriks-PC.cad-q.net> | 2016-02-03 16:37:10 +0100 |
|---|---|---|
| committer | unknown <henrud@Henriks-PC.cad-q.net> | 2016-02-03 16:37:10 +0100 |
| commit | 6289e18f6cf7cc7c85c799940099b90081273c4c (patch) | |
| tree | 70204e42ff973e8fc7ab7539fc7fd8b86d1d049d /main.cpp | |
| parent | fce88a8120182e9cf550393fd87b7541b3b558c7 (diff) | |
| download | monzero-gui-6289e18f6cf7cc7c85c799940099b90081273c4c.tar.gz monzero-gui-6289e18f6cf7cc7c85c799940099b90081273c4c.tar.xz monzero-gui-6289e18f6cf7cc7c85c799940099b90081273c4c.zip | |
fix for window drag bug on ubuntu, only tested on windows
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -31,6 +31,7 @@ #include <QtQml> #include "clipboardAdapter.h" #include "filter.h" +#include "oscursor.h" int main(int argc, char *argv[]) { @@ -41,6 +42,10 @@ int main(int argc, char *argv[]) qmlRegisterType<clipboardAdapter>("moneroComponents", 1, 0, "Clipboard"); QQmlApplicationEngine engine; + + OSCursor cursor; + engine.rootContext()->setContextProperty("globalCursor", &cursor); + engine.rootContext()->setContextProperty("applicationDirectory", QApplication::applicationDirPath()); engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); QObject *rootObject = engine.rootObjects().first(); |
