Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todaybase.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index f2958ad..14cdfd9 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -1,47 +1,46 @@ | |||
1 | /* | 1 | /* |
2 | * todaybase.cpp | 2 | * todaybase.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002, 2003 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 <qvbox.h> | ||
20 | #include <qwhatsthis.h> | ||
21 | |||
22 | #include <qpe/resource.h> | 19 | #include <qpe/resource.h> |
23 | 20 | ||
21 | #include <qvbox.h> | ||
22 | #include <qwhatsthis.h> | ||
24 | 23 | ||
25 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | 24 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) |
26 | : QWidget( parent, name, WStyle_ContextHelp ) { | 25 | : QWidget( parent, name, WStyle_ContextHelp ) { |
27 | 26 | ||
28 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 27 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
29 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 28 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla |
30 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon | 29 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon |
31 | 30 | ||
32 | layout = 0L; | 31 | layout = 0L; |
33 | 32 | ||
34 | QPalette pal = this->palette(); | 33 | QPalette pal = this->palette(); |
35 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 34 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
36 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 35 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
37 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 36 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
38 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 37 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
39 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 38 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
40 | this->setPalette( pal ); | 39 | this->setPalette( pal ); |
41 | 40 | ||
42 | // --- logo Section --- | 41 | // --- logo Section --- |
43 | QPalette pal2; | 42 | QPalette pal2; |
44 | QColorGroup cg; | 43 | QColorGroup cg; |
45 | cg.setColor( QColorGroup::Text, white ); | 44 | cg.setColor( QColorGroup::Text, white ); |
46 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); | 45 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); |
47 | pal2.setActive( cg ); | 46 | pal2.setActive( cg ); |