From f135d9f6a4876cd763ea7a424c9f078b1e4ca527 Mon Sep 17 00:00:00 2001 From: -f Date: Wed, 11 Dec 2013 10:23:15 +0100 Subject: [PATCH] changed the name of the autosave interval variable and its value --- src/board/UBBoardController.cpp | 8 ++++---- src/core/UBSettings.cpp | 2 +- src/core/UBSettings.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index ae78a5af..5d3a9a0c 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1634,7 +1634,7 @@ void UBBoardController::adjustDisplayViews() int UBBoardController::autosaveTimeoutFromSettings() { - int value = UBSettings::settings()->timerInterval->get().toInt(); + int value = UBSettings::settings()->autoSaveInterval->get().toInt(); int minute = 60 * 1000; return value * minute; @@ -1773,8 +1773,8 @@ void UBBoardController::autosaveTimeout() void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md) { - int timerInterval = autosaveTimeoutFromSettings(); - if (!timerInterval) { + int autoSaveInterval = autosaveTimeoutFromSettings(); + if (!autoSaveInterval) { return; } @@ -1784,7 +1784,7 @@ void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md) } if (md == UBApplicationController::Board) { - mAutosaveTimer->start(timerInterval); + mAutosaveTimer->start(autoSaveInterval); } else if (mAutosaveTimer->isActive()) { mAutosaveTimer->stop(); } diff --git a/src/core/UBSettings.cpp b/src/core/UBSettings.cpp index 5f4fba9f..73ac1370 100644 --- a/src/core/UBSettings.cpp +++ b/src/core/UBSettings.cpp @@ -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"); diff --git a/src/core/UBSettings.h b/src/core/UBSettings.h index 9de4c801..b37c7af1 100644 --- a/src/core/UBSettings.h +++ b/src/core/UBSettings.h @@ -373,7 +373,7 @@ class UBSettings : public QObject UBSetting* libIconSize; UBSetting* magnifierDrawingMode; - UBSetting* timerInterval; + UBSetting* autoSaveInterval; public slots: