-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 | |||
@@ -32,12 +32,13 @@ | |||
32 | #include <qtimer.h> | 32 | #include <qtimer.h> |
33 | #include <qpixmap.h> | 33 | #include <qpixmap.h> |
34 | #include <qlayout.h> | 34 | #include <qlayout.h> |
35 | #include <qhbox.h> | 35 | #include <qhbox.h> |
36 | #include <opie/otabwidget.h> | 36 | #include <opie/otabwidget.h> |
37 | #include <qdialog.h> | 37 | #include <qdialog.h> |
38 | #include <qwhatsthis.h> | ||
38 | 39 | ||
39 | 40 | ||
40 | struct TodayPlugin { | 41 | struct TodayPlugin { |
41 | QLibrary *library; | 42 | QLibrary *library; |
42 | TodayPluginInterface *iface; | 43 | TodayPluginInterface *iface; |
43 | TodayPluginObject *guiPart; | 44 | TodayPluginObject *guiPart; |
@@ -164,12 +165,13 @@ void Today::loadPlugins() { | |||
164 | plugin.guiBox = new QWidget( this ); | 165 | plugin.guiBox = new QWidget( this ); |
165 | QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox ); | 166 | QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox ); |
166 | QPixmap plugPix; | 167 | QPixmap plugPix; |
167 | plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 ); | 168 | plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 ); |
168 | OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox ); | 169 | OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox ); |
169 | plugIcon->setPixmap( plugPix ); | 170 | plugIcon->setPixmap( plugPix ); |
171 | QWhatsThis::add( plugIcon, tr("Click here to launch the associated app") ); | ||
170 | plugIcon->setName( plugin.guiPart->appName() ); | 172 | plugIcon->setName( plugin.guiPart->appName() ); |
171 | connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) ); | 173 | connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) ); |
172 | // a scrollview for each plugin | 174 | // a scrollview for each plugin |
173 | QScrollView* sv = new QScrollView( plugin.guiBox ); | 175 | QScrollView* sv = new QScrollView( plugin.guiBox ); |
174 | QWidget *plugWidget = plugin.guiPart->widget( sv->viewport() ); | 176 | QWidget *plugWidget = plugin.guiPart->widget( sv->viewport() ); |
175 | // not sure if that is good .-) | 177 | // not sure if that is good .-) |