author | harlekin <harlekin> | 2002-10-11 17:18:08 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-11 17:18:08 (UTC) |
commit | 3f29dc777e7f0a5c2a9b44521b486c69b610c13a (patch) (side-by-side diff) | |
tree | 5b1019cbf47625faad281959497c4a2e6ea6678e /core/pim/today/plugins/todolist/todopluginconfig.cpp | |
parent | 526ee9ecc0e9b35dfff85f37ece86ab628efd47e (diff) | |
download | opie-3f29dc777e7f0a5c2a9b44521b486c69b610c13a.zip opie-3f29dc777e7f0a5c2a9b44521b486c69b610c13a.tar.gz opie-3f29dc777e7f0a5c2a9b44521b486c69b610c13a.tar.bz2 |
added more whatsthis
Diffstat (limited to 'core/pim/today/plugins/todolist/todopluginconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/todolist/todopluginconfig.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/pim/today/plugins/todolist/todopluginconfig.cpp b/core/pim/today/plugins/todolist/todopluginconfig.cpp index 110b2e0..56b7aa2 100644 --- a/core/pim/today/plugins/todolist/todopluginconfig.cpp +++ b/core/pim/today/plugins/todolist/todopluginconfig.cpp @@ -13,50 +13,53 @@ * (at your option) any later version. * * * ***************************************************************************/ #include "todopluginconfig.h" #include <qpe/config.h> #include <qlayout.h> #include <qhbox.h> #include <qtoolbutton.h> #include <qlabel.h> +#include <qwhatsthis.h> TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) : TodayConfigWidget(parent, name ) { QVBoxLayout * layout = new QVBoxLayout( this ); layout->setMargin( 20 ); QHBox *box1 = new QHBox( this ); QLabel* TextLabel6 = new QLabel( box1, "TextLabel6" ); - TextLabel6->setText( tr( "How many\n tasks should \n" - "be shown?" ) ); + TextLabel6->setText( tr( "tasks shown " ) ); SpinBox2 = new QSpinBox( box1, "SpinBox2" ); SpinBox2->setMaxValue( 40 ); + QWhatsThis::add( SpinBox2 , tr( "Set the maximum number of task that should be shown" ) ); + + QHBox *box2 = new QHBox( this ); QLabel* clipLabel = new QLabel( box2, "" ); - clipLabel->setText( tr( "Clip line after\n X chars" ) ); + clipLabel->setText( tr( "Clip line after X chars" ) ); SpinBoxClip = new QSpinBox( box2, "SpinClip" ); SpinBoxClip->setMaxValue( 200 ); - + QWhatsThis::add( SpinBoxClip , tr( "After how many chars should be the info about the task be cut off" ) ); layout->addWidget( box1 ); layout->addWidget( box2 ); readConfig(); } void TodolistPluginConfig::readConfig() { Config cfg( "todaytodoplugin" ); cfg.setGroup( "config" ); m_max_lines_task = cfg.readNumEntry( "maxlinestask", 5 ); SpinBox2->setValue( m_max_lines_task ); m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); |