diff --git a/src/gui/qml/qmlwrapper.cpp b/src/gui/qml/qmlwrapper.cpp index f8bfcc51..92b27231 100644 --- a/src/gui/qml/qmlwrapper.cpp +++ b/src/gui/qml/qmlwrapper.cpp @@ -1,13 +1,9 @@ #include #include "qmlwrapper.h" -#include "views/startview/startview.h" - - qmlWrapper::qmlWrapper() { qDebug("qmlWrapperKonstruktor"); - myStartView = new startView(); } qmlWrapper::~qmlWrapper() @@ -20,5 +16,5 @@ qmlWrapper::qmlWrapper(const qmlWrapper&) void qmlWrapper::showStartView() { - myStartView->show(); + myStartView.show(); } diff --git a/src/gui/qml/qmlwrapper.h b/src/gui/qml/qmlwrapper.h index 29cd998a..580a2a1a 100644 --- a/src/gui/qml/qmlwrapper.h +++ b/src/gui/qml/qmlwrapper.h @@ -1,7 +1,7 @@ #ifndef QMLWRAPPER_H #define QMLWRAPPER_H -class startView; +#include "startview/startview.h" class qmlWrapper { @@ -13,7 +13,7 @@ public: void showStartView(); private: - startView *myStartView; + startView myStartView; }; #endif // QMLWRAPPER_H