From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- karm/taskviewwhatsthis.cpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 karm/taskviewwhatsthis.cpp (limited to 'karm/taskviewwhatsthis.cpp') diff --git a/karm/taskviewwhatsthis.cpp b/karm/taskviewwhatsthis.cpp new file mode 100644 index 00000000..9beb163d --- /dev/null +++ b/karm/taskviewwhatsthis.cpp @@ -0,0 +1,41 @@ +// +// C++ Implementation: taskviewwhatsthis +// +// Description: +// This is a subclass of QWhatsThis, specially adapted for karm's taskview. +// +// Author: Thorsten Staerk , (C) 2005 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#include "taskviewwhatsthis.h" +#include +#include +#include + +TaskViewWhatsThis::TaskViewWhatsThis( QWidget* qw ) + : QWhatsThis( qw ) +{ + _listView=(KListView *) qw; +} + +TaskViewWhatsThis::~TaskViewWhatsThis() +{ +} + +QString TaskViewWhatsThis::text ( const QPoint & pos ) +{ + QString desc = QString::null; + kdDebug(5970) << "entering TaskViewWhatsThis::text" << endl; + kdDebug(5970) << "x-pos:" << pos.x() << endl; + if ( pos.x() < _listView->columnWidth( 0 ) ) + { + desc=i18n("Task Name shows the name of a task or subtask you are working on."); + } + else + { + desc=i18n("Session time: Time for this task since you chose \"Start New Session\".\nTotal Session time: Time for this task and all its subtasks since you chose \"Start New Session\".\nTime: Overall time for this task.\nTotal Time: Overall time for this task and all its subtasks."); + } + return desc; +} -- cgit v1.2.3