summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index cb809d3..a89f454 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -11,31 +11,33 @@
11 * it under the terms of the GNU General Public License as published by * 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 * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "todaybase.h" 17#include "todaybase.h"
18 18
19#include <qpe/applnk.h>
19#include <qpe/resource.h> 20#include <qpe/resource.h>
20 21
21#include <qvbox.h> 22#include <qvbox.h>
22#include <qwhatsthis.h> 23#include <qwhatsthis.h>
23 24
24using namespace Opie::Ui; 25using namespace Opie::Ui;
25TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) 26TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
26 : QWidget( parent, name, WStyle_ContextHelp ) { 27 : QWidget( parent, name, WStyle_ContextHelp ) {
27 28
28 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo 29 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
29 QImage opiezillaimage = QImage( Resource::loadImage("logo/opielogo" ) ); 30 QImage opiezillaimage = QImage( Resource::loadImage("logo/opielogo" ) );
30 opiezillaimage = opiezillaimage.smoothScale( 45, 45 ); 31 opiezillaimage = opiezillaimage.smoothScale( 45, 45 );
31 QPixmap opiezilla; //the opiezilla 32 QPixmap opiezilla; //the opiezilla
32 opiezilla.convertFromImage( opiezillaimage ); 33 opiezilla.convertFromImage( opiezillaimage );
33 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon 34 QPixmap config;
35 config.convertFromImage( Resource::loadImage( "SettingsIcon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
34 36
35 layout = 0L; 37 layout = 0L;
36 38
37 QPalette pal = this->palette(); 39 QPalette pal = this->palette();
38 QColor col = pal.color( QPalette::Active, QColorGroup::Background ); 40 QColor col = pal.color( QPalette::Active, QColorGroup::Background );
39 pal.setColor( QPalette::Active, QColorGroup::Button, col ); 41 pal.setColor( QPalette::Active, QColorGroup::Button, col );
40 pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); 42 pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
41 pal.setColor( QPalette::Normal, QColorGroup::Button, col ); 43 pal.setColor( QPalette::Normal, QColorGroup::Button, col );