summaryrefslogtreecommitdiff
path: root/core/pim/today/todaybase.cpp
authorzecke <zecke>2004-03-14 20:15:38 (UTC)
committer zecke <zecke>2004-03-14 20:15:38 (UTC)
commit5064995ccd7a57edd2e41a2908b6402ff25995c4 (patch) (unidiff)
tree156685fc97a3fe2002b6f4250c7217b9c250f390 /core/pim/today/todaybase.cpp
parent0d79c003839718ae70b3b997162044abd5c26bf6 (diff)
downloadopie-5064995ccd7a57edd2e41a2908b6402ff25995c4.zip
opie-5064995ccd7a57edd2e41a2908b6402ff25995c4.tar.gz
opie-5064995ccd7a57edd2e41a2908b6402ff25995c4.tar.bz2
More stuff cvs did not commit the first time
Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index 7f1915c..cb809d3 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -1,47 +1,48 @@
1/* 1/*
2 * todaybase.cpp 2 * todaybase.cpp
3 * 3 *
4 * copyright : (c) 2002, 2003, 2004 by Maximilian Reiß 4 * copyright : (c) 2002, 2003, 2004 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 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 * 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/resource.h> 19#include <qpe/resource.h>
20 20
21#include <qvbox.h> 21#include <qvbox.h>
22#include <qwhatsthis.h> 22#include <qwhatsthis.h>
23 23
24using namespace Opie::Ui;
24TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) 25TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
25 : QWidget( parent, name, WStyle_ContextHelp ) { 26 : QWidget( parent, name, WStyle_ContextHelp ) {
26 27
27 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo 28 QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
28 QImage opiezillaimage = QImage( Resource::loadImage("logo/opielogo" ) ); 29 QImage opiezillaimage = QImage( Resource::loadImage("logo/opielogo" ) );
29 opiezillaimage = opiezillaimage.smoothScale( 45, 45 ); 30 opiezillaimage = opiezillaimage.smoothScale( 45, 45 );
30 QPixmap opiezilla; //the opiezilla 31 QPixmap opiezilla; //the opiezilla
31 opiezilla.convertFromImage( opiezillaimage ); 32 opiezilla.convertFromImage( opiezillaimage );
32 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon 33 QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon
33 34
34 layout = 0L; 35 layout = 0L;
35 36
36 QPalette pal = this->palette(); 37 QPalette pal = this->palette();
37 QColor col = pal.color( QPalette::Active, QColorGroup::Background ); 38 QColor col = pal.color( QPalette::Active, QColorGroup::Background );
38 pal.setColor( QPalette::Active, QColorGroup::Button, col ); 39 pal.setColor( QPalette::Active, QColorGroup::Button, col );
39 pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); 40 pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
40 pal.setColor( QPalette::Normal, QColorGroup::Button, col ); 41 pal.setColor( QPalette::Normal, QColorGroup::Button, col );
41 pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); 42 pal.setColor( QPalette::Disabled, QColorGroup::Button, col );
42 this->setPalette( pal ); 43 this->setPalette( pal );
43 44
44 // --- logo Section --- 45 // --- logo Section ---
45 QPalette pal2; 46 QPalette pal2;
46 QColorGroup cg; 47 QColorGroup cg;
47 cg.setColor( QColorGroup::Text, white ); 48 cg.setColor( QColorGroup::Text, white );