New Blinds Raise Interval Selector Component for ListViews

Outsourced Styles for RadioButton and TextField
This commit is contained in:
Felix Hammer
2015-08-17 14:52:46 +02:00
parent 27946480cd
commit bb441b565c
20 changed files with 479 additions and 382 deletions
+11 -1
View File
@@ -6,6 +6,8 @@
#include "qmlconfig.h"
#include "qmlwrapper.h"
#include "startviewimpl.h"
#include "createlocalgameviewimpl.h"
QmlWrapper::QmlWrapper(boost::shared_ptr<ConfigFile> c)
:QObject(), myConfig(c)
@@ -13,8 +15,14 @@ QmlWrapper::QmlWrapper(boost::shared_ptr<ConfigFile> c)
myEngine.reset(new QQmlApplicationEngine);
myQmlConfig = new QmlConfig(myConfig); //need to be a default pointer because QML doesnt support shared_ptr()
// Add c++ content here
//TODO create Session and Log here
myStartViewImpl = new StartViewImpl(this);
myCreateLocalGameViewImpl = new CreateLocalGameViewImpl(this);
//Add c++ content to QML here
myEngine->rootContext()->setContextProperty("Config", myQmlConfig);
myEngine->rootContext()->setContextProperty("StartViewImpl", myStartViewImpl);
myEngine->load(QUrl(QStringLiteral("qrc:/main.qml")));
}
@@ -29,3 +37,5 @@ QmlWrapper::QmlWrapper(const QmlWrapper&)
{
}