Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
b79453fc
Commit
b79453fc
authored
Dec 18, 2018
by
Leander Schulten
Browse files
Throw error if qml code have errors
parent
ba5d1215
Changes
1
Hide whitespace changes
Inline
Side-by-side
controlpanel.cpp
View file @
b79453fc
...
...
@@ -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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment