Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
f135d9f6
Commit
f135d9f6
authored
Dec 11, 2013
by
-f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the name of the autosave interval variable and its value
parent
6b2a555b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
UBBoardController.cpp
src/board/UBBoardController.cpp
+4
-4
UBSettings.cpp
src/core/UBSettings.cpp
+1
-1
UBSettings.h
src/core/UBSettings.h
+1
-1
No files found.
src/board/UBBoardController.cpp
View file @
f135d9f6
...
...
@@ -1634,7 +1634,7 @@ void UBBoardController::adjustDisplayViews()
int
UBBoardController
::
autosaveTimeoutFromSettings
()
{
int
value
=
UBSettings
::
settings
()
->
timer
Interval
->
get
().
toInt
();
int
value
=
UBSettings
::
settings
()
->
autoSave
Interval
->
get
().
toInt
();
int
minute
=
60
*
1000
;
return
value
*
minute
;
...
...
@@ -1773,8 +1773,8 @@ void UBBoardController::autosaveTimeout()
void
UBBoardController
::
appMainModeChanged
(
UBApplicationController
::
MainMode
md
)
{
int
timer
Interval
=
autosaveTimeoutFromSettings
();
if
(
!
timer
Interval
)
{
int
autoSave
Interval
=
autosaveTimeoutFromSettings
();
if
(
!
autoSave
Interval
)
{
return
;
}
...
...
@@ -1784,7 +1784,7 @@ void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md)
}
if
(
md
==
UBApplicationController
::
Board
)
{
mAutosaveTimer
->
start
(
timer
Interval
);
mAutosaveTimer
->
start
(
autoSave
Interval
);
}
else
if
(
mAutosaveTimer
->
isActive
())
{
mAutosaveTimer
->
stop
();
}
...
...
src/core/UBSettings.cpp
View file @
f135d9f6
...
...
@@ -353,7 +353,7 @@ void UBSettings::init()
boardShowToolsPalette
=
new
UBSetting
(
this
,
"Board"
,
"ShowToolsPalette"
,
"false"
);
magnifierDrawingMode
=
new
UBSetting
(
this
,
"Board"
,
"MagnifierDrawingMode"
,
"0"
);
timerInterval
=
new
UBSetting
(
this
,
"Board"
,
"Timer interval"
,
"5
"
);
autoSaveInterval
=
new
UBSetting
(
this
,
"Board"
,
"AutoSaveIntervalInMinutes"
,
"3
"
);
svgViewBoxMargin
=
new
UBSetting
(
this
,
"SVG"
,
"ViewBoxMargin"
,
"50"
);
...
...
src/core/UBSettings.h
View file @
f135d9f6
...
...
@@ -373,7 +373,7 @@ class UBSettings : public QObject
UBSetting
*
libIconSize
;
UBSetting
*
magnifierDrawingMode
;
UBSetting
*
timer
Interval
;
UBSetting
*
autoSave
Interval
;
public
slots
:
...
...
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