summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
Unidiff
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp44
1 files changed, 29 insertions, 15 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 3e895a4..67b23e1 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -1,30 +1,44 @@
1/* 1/*
2 * today.cpp 2                 This file is part of the Opie Project
3 * 3
4 * copyright : (c) 2002,2003,2004 by Maximilian Reiß 4 Copyright (C) Maximilian Reiss <harlekin@handhelds.org>
5 * email : harlekin@handhelds.org 5 =.
6 * 6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17    : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22 :     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
7 */ 29 */
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 30
17#include "today.h" 31#include "today.h"
18 32
19#include <opie2/odebug.h> 33#include <opie2/odebug.h>
20#include <opie2/opluginloader.h> 34#include <opie2/opluginloader.h>
21#include <opie2/oconfig.h> 35#include <opie2/oconfig.h>
36#include <opie2/oresource.h>
22 37
23#include <qpe/qcopenvelope_qws.h> 38#include <qpe/qcopenvelope_qws.h>
24#include <qpe/resource.h>
25#include <qpe/qpeapplication.h> 39#include <qpe/qpeapplication.h>
26#include <qpe/contact.h> 40#include <qpe/contact.h>
27 41
28#include <qdir.h> 42#include <qdir.h>
29#include <qtimer.h> 43#include <qtimer.h>
30#include <qwhatsthis.h> 44#include <qwhatsthis.h>
@@ -215,13 +229,13 @@ void Today::loadPluginWidgets() {
215 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh(); 229 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh();
216 230
217 // package the whole thing into a qwidget so it can be shown and hidden 231 // package the whole thing into a qwidget so it can be shown and hidden
218 plugin.guiBox = new QWidget( m_big_box ); 232 plugin.guiBox = new QWidget( m_big_box );
219 QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox ); 233 QHBoxLayout *boxLayout = new QHBoxLayout( plugin.guiBox );
220 QPixmap plugPix; 234 QPixmap plugPix;
221 plugPix.convertFromImage( Resource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 ); 235 plugPix.convertFromImage( Opie::Core::OResource::loadImage( plugin.guiPart->pixmapNameWidget() ).smoothScale( m_iconSize, m_iconSize ), 0 );
222 OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox ); 236 OClickableLabel* plugIcon = new OClickableLabel( plugin.guiBox );
223 plugIcon->setPixmap( plugPix ); 237 plugIcon->setPixmap( plugPix );
224 QWhatsThis::add 238 QWhatsThis::add
225 ( plugIcon, tr("Click here to launch the associated app") ); 239 ( plugIcon, tr("Click here to launch the associated app") );
226 plugIcon->setName( plugin.guiPart->appName() ); 240 plugIcon->setName( plugin.guiPart->appName() );
227 connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) ); 241 connect( plugIcon, SIGNAL( clicked() ), this, SLOT( startApplication() ) );