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
5e67427a
Commit
5e67427a
authored
Feb 21, 2018
by
Leander Schulten
Browse files
Fix settings name
parent
8de914ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings.h
View file @
5e67427a
...
...
@@ -18,8 +18,8 @@ public:
QString
getJsonSettingsFilePath
()
const
{
return
settings
.
value
(
"jsonSettingsFilePath"
).
toString
();}
void
setDriverFilePath
(
QString
file
){
if
(
!
QFile
::
exists
(
file
))
return
;
settings
.
setValue
(
"driverFilePath"
,
file
);
emit
driverFilePathChanged
();}
QString
getDriverFilePath
()
const
{
return
settings
.
value
(
"driverFilePath"
).
toString
();}
void
setUpdatePauseInMs
(
unsigned
int
pause
){
settings
.
setValue
(
"
driverFilePath
"
,
pause
);
emit
updatePauseInMsChanged
();}
unsigned
int
getUpdatePauseInMs
()
const
{
return
settings
.
value
(
"
driverFilePath
"
).
toUInt
();}
void
setUpdatePauseInMs
(
unsigned
int
pause
){
settings
.
setValue
(
"
updatePauseInMs
"
,
pause
);
emit
updatePauseInMsChanged
();}
unsigned
int
getUpdatePauseInMs
()
const
{
return
settings
.
value
(
"
updatePauseInMs
"
).
toUInt
();}
signals:
void
jsonSettingsFilePathChanged
();
void
driverFilePathChanged
();
...
...
Write
Preview
Supports
Markdown
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