karm
taskviewwhatsthis.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "taskviewwhatsthis.h"
00013 #include <kdebug.h>
00014 #include <klistview.h>
00015 #include <klocale.h>
00016
00017 TaskViewWhatsThis::TaskViewWhatsThis( QWidget* qw )
00018 : QWhatsThis( qw )
00019 {
00020 _listView=(KListView *) qw;
00021 }
00022
00023 TaskViewWhatsThis::~TaskViewWhatsThis()
00024 {
00025 }
00026
00027 QString TaskViewWhatsThis::text ( const QPoint & pos )
00028 {
00029 QString desc = QString::null;
00030 kdDebug(5970) << "entering TaskViewWhatsThis::text" << endl;
00031 kdDebug(5970) << "x-pos:" << pos.x() << endl;
00032 if ( pos.x() < _listView->columnWidth( 0 ) )
00033 {
00034 desc=i18n("Task Name shows the name of a task or subtask you are working on.");
00035 }
00036 else
00037 {
00038 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.");
00039 }
00040 return desc;
00041 }
|