From 2f0cf5202c83fe9d034dc3254e8db127f5bdffe3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Mar 2016 12:56:47 +0900 Subject: Increased maximum time limit for timers to 50000 min (almost 35 days). This relates to bug 2599. NOTE: if the max limit is removed, the TQSpinBox reverts to the default value of 99. Also fixed minimum limit for some timers and percentage fields. Signed-off-by: Michele Calgaro --- src/configure_Dialog.ui | 47 +++++++++++++++++++++++++++++++++++++++++++---- src/inactivity.cpp | 6 +++--- src/tdepowersave.cpp | 10 +++++----- 3 files changed, 51 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/configure_Dialog.ui b/src/configure_Dialog.ui index 5ea68c5..956721a 100644 --- a/src/configure_Dialog.ui +++ b/src/configure_Dialog.ui @@ -327,7 +327,10 @@ min - 1500 + 50000 + + + 1 @@ -341,7 +344,10 @@ min - 1500 + 50000 + + + 1 @@ -355,7 +361,10 @@ min - 1500 + 50000 + + + 1 @@ -656,6 +665,12 @@ min + + 50000 + + + 1 + @@ -881,7 +896,7 @@ % - 1500 + 100 @@ -944,6 +959,12 @@ min + + 50000 + + + 1 + @@ -1329,6 +1350,9 @@ 100 + + 1 + @@ -1348,6 +1372,9 @@ 100 + + 1 + @@ -1367,6 +1394,9 @@ 100 + + 1 + @@ -1386,6 +1416,9 @@ 100 + + 1 + @@ -1405,6 +1438,9 @@ 100 + + 1 + @@ -1424,6 +1460,9 @@ 100 + + 1 + diff --git a/src/inactivity.cpp b/src/inactivity.cpp index 6da740d..8d7205e 100644 --- a/src/inactivity.cpp +++ b/src/inactivity.cpp @@ -32,8 +32,8 @@ extern "C" { #include #include } - -// KDE Headers + +// TDE Headers #include /*! The default constructor of the class autosuspend */ @@ -93,7 +93,7 @@ void inactivity::start( int timeToExpire, TQStringList blacked ) { } /*! - * \b TQT_SLOT to call check as recheck inactivity if befor a running PID + * \b TQT_SLOT to call check as recheck inactivity if before a running PID * request was detected. */ void inactivity::recheck() { diff --git a/src/tdepowersave.cpp b/src/tdepowersave.cpp index 6779aae..7737089 100644 --- a/src/tdepowersave.cpp +++ b/src/tdepowersave.cpp @@ -101,7 +101,7 @@ tdepowersave::tdepowersave( bool force_acpi_check, bool trace_func ) : KSystemTr connect(hwinfo, TQT_SIGNAL(ACStatus(bool)), this, TQT_SLOT(handleACStatusChange (bool))); connect(hwinfo, TQT_SIGNAL(resumed(int)), this, TQT_SLOT(forwardResumeSignal(int))); - // connect to error mesages + // connect to error messages connect(autoSuspend, TQT_SIGNAL(displayErrorMsg(TQString)), this, TQT_SLOT(showErrorMessage(TQString))); // connect to events @@ -747,7 +747,7 @@ bool tdepowersave::do_suspend2disk(){ /*! * \b TQT_SLOT to send the command for "suspend to RAM" to the TDE hardware library. - * If there is a error while "suspend to RAM" the user get e messagebox. + * If there is a error while "suspend to RAM" the user get a messagebox. * This function need a power management backend in TDE hardware library for "suspend to RAM". * \return boolean with the result of the operation * \retval true if successful @@ -986,11 +986,11 @@ void tdepowersave::do_autosuspendWarn() { /*! * \b TQT_SLOT to send the related suspend command for autosuspend - * \param chancel boolean with info if the autosuspend should get chanceld + * \param chancel boolean with info if the autosuspend should get canceled * \return boolean with the result of the operation * \retval true if successful * \retval false if command not supported or on any other error - * \todo add check if the requested command is supported befor send and + * \todo add check if the requested command is supported before send and * add message for this case to tell that maybe changed config! */ bool tdepowersave::do_autosuspend(bool chancel) { @@ -1021,7 +1021,7 @@ bool tdepowersave::do_autosuspend(bool chancel) { return false; } } else { - kdDebug() << "The autosuspend was chanceled (via the chancel dialog), start again." << endl; + kdDebug() << "The autosuspend was canceled (via the cancel dialog), start again." << endl; setAutoSuspend(false); return false; } -- cgit v1.2.3