[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-04-01 12:32:44
Message-ID: 1143894764.107397.30694.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 525247 by bram:
o Call slotReadConfig in RSIGlobals before RSITimers reads settings.
o Clear focus on buttons in full screen break widget. Prevents cancelling the screen \
when you're still typing.
M +2 -0 rsiglobals.cpp
M +6 -1 rsiwidget.cpp
--- trunk/playground/utils/rsibreak/src/rsiglobals.cpp #525246:525247
@@ -101,6 +101,8 @@
void RSIGlobals::slotReadConfig()
{
+ kdDebug() << "RSIGlobals::slotReadConfig() entered" << endl;
+
KConfig* config = kapp->config();
config->setGroup("General Settings");
--- trunk/playground/utils/rsibreak/src/rsiwidget.cpp #525246:525247
@@ -116,9 +116,9 @@
connect( m_tray, SIGNAL( quitSelected() ), kapp, SLOT( quit() ) );
connect( m_tray, SIGNAL( configChanged() ), SLOT( readConfig() ) );
+ connect( m_tray, SIGNAL( configChanged() ), RSIGlobals::instance(), SLOT( \
slotReadConfig() ) );
connect( m_tray, SIGNAL( configChanged() ), m_timer, SLOT( slotReadConfig() ) );
connect( m_tray, SIGNAL( configChanged() ), m_relaxpopup, SLOT( slotReadConfig() \
) );
- connect( m_tray, SIGNAL( configChanged() ), RSIGlobals::instance(), SLOT( \
slotReadConfig() ) );
connect( m_tray, SIGNAL( dialogEntered() ), m_timer, SLOT( slotStop() ) );
connect( m_tray, SIGNAL( dialogLeft() ), m_timer, SLOT( slotStart() ) );
connect( m_tray, SIGNAL( breakRequest() ), m_timer, SLOT( slotRequestBreak() ) \
); @@ -189,6 +189,11 @@
{
kdDebug() << "Entering RSIWidget::Maximize" << endl;
+ // prevent that users accidently press this button while
+ // they were writing text when the break appears
+ m_miniButton->clearFocus();
+ m_lockButton->clearFocus();
+
if (m_slideInterval>0)
m_timer_slide->start( m_slideInterval*1000 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic