[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/rsibreak/src
From: Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date: 2006-03-31 20:33:23
Message-ID: 1143837203.583292.19775.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 525108 by bram:
Increase statistic "Last tiny/big break" everytime it detects that the idleness takes \
longer than a break.
M +16 -0 rsitimer.cpp
--- trunk/playground/utils/rsibreak/src/rsitimer.cpp #525107:525108
@@ -387,6 +387,22 @@
emit relax( m_relax_left );
}
+ // update the stats properly when breaking
+ if ( m_useIdleDetection && t > m_intervals["big_maximized"] &&
+ m_relax_left == 0 && m_pause_left == 0 )
+ {
+ RSIGlobals::instance()->stats()->setStat( LAST_BIG_BREAK, QVariant( \
QDateTime::currentDateTime() ) ); + }
+
+ // update the stats properly when breaking
+ if ( m_useIdleDetection && t > m_intervals["tiny_maximized"] &&
+ m_relax_left == 0 && m_pause_left == 0 )
+ {
+ RSIGlobals::instance()->stats()->setStat( LAST_TINY_BREAK, QVariant( \
QDateTime::currentDateTime() ) ); + }
+
+
+ // show relax popup
if ( m_patience == 0 && m_pause_left == 0 && m_relax_left == 0 &&
( m_tiny_left == 0 || m_big_left == 0 ) )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic