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/today.cpp | |
parent | 526ee9ecc0e9b35dfff85f37ece86ab628efd47e (diff) | |
download | opie-3f29dc777e7f0a5c2a9b44521b486c69b610c13a.zip opie-3f29dc777e7f0a5c2a9b44521b486c69b610c13a.tar.gz opie-3f29dc777e7f0a5c2a9b44521b486c69b610c13a.tar.bz2 |
added more whatsthis
-rw-r--r-- | core/pim/today/today.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 34ec3cb..dd98824 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -26,24 +26,25 @@ #include <qpe/contact.h> #include <qdir.h> #include <qfile.h> #include <qpushbutton.h> #include <qlabel.h> #include <qtimer.h> #include <qpixmap.h> #include <qlayout.h> #include <qhbox.h> #include <opie/otabwidget.h> #include <qdialog.h> +#include <qwhatsthis.h> struct TodayPlugin { QLibrary *library; TodayPluginInterface *iface; TodayPluginObject *guiPart; QWidget *guiBox; QString name; bool active; int pos; }; @@ -158,24 +159,25 @@ void Today::loadPlugins() { } else { plugin.active = false; } plugin.guiPart = plugin.iface->guiPart(); // package the whole thing into a qwidget so it can be shown and hidden plugin.guiBox = new QWidget( this ); QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox ); QPixmap plugPix; plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 ); OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox ); plugIcon->setPixmap( plugPix ); + QWhatsThis::add( plugIcon, tr("Click here to launch the associated app") ); plugIcon->setName( plugin.guiPart->appName() ); connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) ); // a scrollview for each plugin QScrollView* sv = new QScrollView( plugin.guiBox ); QWidget *plugWidget = plugin.guiPart->widget( sv->viewport() ); // not sure if that is good .-) sv->setMinimumHeight( 10 ); sv->setResizePolicy( QScrollView::AutoOneFit ); sv->setHScrollBarMode( QScrollView::AlwaysOff ); sv->setFrameShape( QFrame::NoFrame ); sv->addChild( plugWidget ); // make sure the icon is on the top alligned |