try to make cppcheck happy
This commit is contained in:
@@ -7,9 +7,7 @@
|
|||||||
qmlWrapper::qmlWrapper()
|
qmlWrapper::qmlWrapper()
|
||||||
{
|
{
|
||||||
qDebug("qmlWrapperKonstruktor");
|
qDebug("qmlWrapperKonstruktor");
|
||||||
|
myStartView = new startView();
|
||||||
startView myStartView;
|
|
||||||
myStartView.show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qmlWrapper::~qmlWrapper()
|
qmlWrapper::~qmlWrapper()
|
||||||
@@ -17,3 +15,7 @@ qmlWrapper::~qmlWrapper()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void qmlWrapper::showStartView()
|
||||||
|
{
|
||||||
|
myStartView->show();
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,12 +1,18 @@
|
|||||||
#ifndef QMLWRAPPER_H
|
#ifndef QMLWRAPPER_H
|
||||||
#define QMLWRAPPER_H
|
#define QMLWRAPPER_H
|
||||||
|
|
||||||
|
class startView;
|
||||||
|
|
||||||
class qmlWrapper
|
class qmlWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
qmlWrapper();
|
qmlWrapper();
|
||||||
~qmlWrapper();
|
~qmlWrapper();
|
||||||
|
|
||||||
|
void showStartView();
|
||||||
|
|
||||||
|
private:
|
||||||
|
startView *myStartView;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QMLWRAPPER_H
|
#endif // QMLWRAPPER_H
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ startView::~startView()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
startView::startView(const startView&)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void startView::show()
|
void startView::show()
|
||||||
{
|
{
|
||||||
qDebug("show mal bitte");
|
qDebug("show mal bitte");
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ class startView
|
|||||||
public:
|
public:
|
||||||
startView();
|
startView();
|
||||||
~startView();
|
~startView();
|
||||||
|
startView(const startView&);
|
||||||
|
|
||||||
void show();
|
void show();
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -37,7 +37,8 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
qmlWrapper *myQml = new qmlWrapper();
|
qmlWrapper myQml;
|
||||||
|
myQml.showStartView();
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user