Browse Source

Move from namespace to static class

Donald Carr 7 years ago
parent
commit
fa5736ae84
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/main.cpp

+ 6 - 3
src/main.cpp

@@ -94,10 +94,13 @@ void NativeUtils::monitorRunPath(const QString &path)
     emit rebootRequiredChanged();
 }
 
-namespace ArtView {
+class ArtView {
+public:
     static QQuickView* artView();
-    static QQmlEngine* sharedQmlEngine = nullptr;
-}
+    static QQmlEngine* sharedQmlEngine;
+};
+
+QQmlEngine* ArtView::sharedQmlEngine = nullptr;
 
 QQuickView* ArtView::artView()
 {