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

List:       kde-commits
Subject:    [kdepim/KDE/4.10] ktimetracker: Apply patch from Chuso Perez
From:       Montel Laurent <montel () kde ! org>
Date:       2013-01-31 22:12:32
Message-ID: 20130131221232.0DF54A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 05f704ce69546b6a8b90644e9f46357c2e28801b by Montel Laurent.
Committed on 31/01/2013 at 23:11.
Pushed by mlaurent into branch 'KDE/4.10'.

Apply patch from Chuso Perez

"MainWindow tries to connect TrayIcon slots to some signals sent by
TimetrackerWidget. But these signals are not being emitted by
TimetrackerWidget, they are being emitted by TaskView.
This code patches TimetrackerWidget to receive those TaskView signals
and propagate them so MainWindow can receive them to connect them to
TrayIcon."

REVIEW: 107482

M  +6    -0    ktimetracker/timetrackerwidget.cpp

http://commits.kde.org/kdepim/05f704ce69546b6a8b90644e9f46357c2e28801b

diff --git a/ktimetracker/timetrackerwidget.cpp b/ktimetracker/timetrackerw=
idget.cpp
index f2d1d7a..bdcba7d 100644
--- a/ktimetracker/timetrackerwidget.cpp
+++ b/ktimetracker/timetrackerwidget.cpp
@@ -160,6 +160,12 @@ void TimetrackerWidget::addTaskView( const QString &fi=
leName )
 =

     connect( taskView, SIGNAL(contextMenuRequested(QPoint)),
            this, SIGNAL(contextMenuRequested(QPoint)) );
+    connect( taskView, SIGNAL(timersActive()),
+           this, SIGNAL(timersActive()) );
+    connect( taskView, SIGNAL(timersInactive()),
+           this, SIGNAL(timersInactive()) );
+    connect( taskView, SIGNAL(tasksChanged(QList<Task*>)),
+           this, SIGNAL(tasksChanged(QList<Task*>)));
 =

     emit setCaption( fileName );
     taskView->load( lFileName );
[prev in list] [next in list] [prev in thread] [next in thread] 

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