[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/ktimetracker
From:       Thorsten Staerk <dev () staerk ! de>
Date:       2008-02-15 21:21:29
Message-ID: 1203110489.318746.6930.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 775452 by tstaerk:

periodFocus used to be the poll interval, but as we do not poll any longer...

 M  +3 -3      focusdetector.cpp  
 M  +1 -2      focusdetector.h  
 M  +1 -1      focusdetectornotifier.cpp  
 M  +1 -1      karmutility.cpp  


--- trunk/KDE/kdepim/ktimetracker/focusdetector.cpp #775451:775452
@@ -29,7 +29,7 @@
 #ifdef Q_WS_X11
 #endif
 
-FocusDetector::FocusDetector( int periodFocus )
+FocusDetector::FocusDetector()
 {
   KWindowSystem* kw=KWindowSystem::self();
   connect(kw, SIGNAL(activeWindowChanged(WId)), SLOT( slotfocuschanged() ) );
@@ -37,10 +37,10 @@
 
 void FocusDetector::slotfocuschanged()
 {
-  kDebug(5970) << "The focus changed";
+  kDebug(5970) << "Entering function";
   QString sysanswer = getFocusWindow();
-  kDebug(5970) <<"getFocusWindow =" << sysanswer;
   emit( newFocus( sysanswer ) );
+  kDebug(5970) << "Leaving function";
 }
 
 #include "focusdetector.moc" 
--- trunk/KDE/kdepim/ktimetracker/focusdetector.h #775451:775452
@@ -40,9 +40,8 @@
 public:
   /**
     Initializes the time period
-    at param periodFocus seconds before every focus detection.
    */
-  FocusDetector( int periodFocus );
+  FocusDetector();
 
 public slots:
   void slotfocuschanged();
--- trunk/KDE/kdepim/ktimetracker/focusdetectornotifier.cpp #775451:775452
@@ -29,7 +29,7 @@
   public:
     Private() 
     {
-      mDetector = new FocusDetector( 1 );
+      mDetector = new FocusDetector();
     }
 
     FocusDetector *mDetector;
--- trunk/KDE/kdepim/ktimetracker/karmutility.cpp #775451:775452
@@ -32,7 +32,7 @@
 QString getFocusWindow()
 {
   Display *display = XOpenDisplay( 0 );
-  char *name = "blahblah";
+  char *name;
   Window window = 0;
   int i = 0;
   XGetInputFocus( display, &window, &i );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic