Commit b79453fc authored by Leander Schulten's avatar Leander Schulten
Browse files

Throw error if qml code have errors

parent ba5d1215
......@@ -15,7 +15,12 @@ ControlPanel::ControlPanel():programm(engine,QUrl("qrc:/ProgrammControl.qml")),s
throw std::runtime_error("Kein Kontext gesetzt!");
}
setAcceptHoverEvents(true);
if(dimmerGroup.isError())
throw std::runtime_error(dimmerGroup.errorString().toStdString());
if(switchGroup.isError())
throw std::runtime_error(switchGroup.errorString().toStdString());
if(programm.isError())
throw std::runtime_error(programm.errorString().toStdString());
}
void ControlPanel::writeJsonObject(QJsonObject &o){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment