소스 검색

Move from namespace to static class

Donald Carr 7 년 전
부모
커밋
fa5736ae84
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  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()
 {