aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/bin/mobile/maincontroller.cpp
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud@rolisteam.org>2025-10-07 00:10:02 +0200
committerRenaud Guezennec <renaud@rolisteam.org>2025-11-10 02:39:57 +0000
commit19670fc751782d063fafd43c9be03ecc92572c6b (patch)
tree0c7a3a803324e7cc9f70a6f2f5ed41907b4468e8 /src/bin/mobile/maincontroller.cpp
parent46cb61e9f90a480b0277816ae8d42e5b0c91fe0c (diff)
downloadOneRoll-19670fc751782d063fafd43c9be03ecc92572c6b.tar.gz
OneRoll-19670fc751782d063fafd43c9be03ecc92572c6b.zip
Fix error and cpp style.
Diffstat (limited to 'src/bin/mobile/maincontroller.cpp')
-rw-r--r--src/bin/mobile/maincontroller.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/bin/mobile/maincontroller.cpp b/src/bin/mobile/maincontroller.cpp
index 6f301ff..c131436 100644
--- a/src/bin/mobile/maincontroller.cpp
+++ b/src/bin/mobile/maincontroller.cpp
@@ -7,17 +7,19 @@ MainControler::MainControler(QObject* parent) : QObject(parent)
{
m_diceParser= new DiceParser();
- qmlRegisterSingletonType("DiceParser", 1, 0, "Model", [](QQmlEngine* engine, QJSEngine* scriptEngine) -> QObject* {
- Q_UNUSED(engine)
- static CommandModel model;
- static bool initialized= false;
- if(!initialized)
- {
- model.insertCmd("L5R", "8D10e10k4");
- initialized= true;
- }
- return &model;
- });
+ qmlRegisterSingletonType("DiceParser", 1, 0, "Model",
+ [](QQmlEngine* engine, QJSEngine* scriptEngine) -> QObject*
+ {
+ Q_UNUSED(engine)
+ static CommandModel model;
+ static bool initialized= false;
+ if(!initialized)
+ {
+ model.insertCmd("L5R", "8D10e10k4");
+ initialized= true;
+ }
+ return &model;
+ });
}
void MainControler::initEngine(QQmlApplicationEngine* engine)
{