author | drw <drw> | 2004-03-08 19:07:39 (UTC) |
---|---|---|
committer | drw <drw> | 2004-03-08 19:07:39 (UTC) |
commit | 64f05e3c2733a0b696ca008baad335073ef927cb (patch) (unidiff) | |
tree | 7eda90d8d509ca1d13fd116cb393b97824149f0f /core/pim/today | |
parent | 5c0d3f0db722ad2b81bdab1a2a06d45c198ed975 (diff) | |
download | opie-64f05e3c2733a0b696ca008baad335073ef927cb.zip opie-64f05e3c2733a0b696ca008baad335073ef927cb.tar.gz opie-64f05e3c2733a0b696ca008baad335073ef927cb.tar.bz2 |
Consolidate Opie logo images. Apps should use common logo: pics/logo/opielogo.png
-rw-r--r-- | core/pim/today/todaybase.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 14cdfd9..7f1915c 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -16,25 +16,28 @@ | |||
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 | ||
24 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | 24 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) |
25 | : QWidget( parent, name, WStyle_ContextHelp ) { | 25 | : QWidget( parent, name, WStyle_ContextHelp ) { |
26 | 26 | ||
27 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 27 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
28 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 28 | QImage opiezillaimage = QImage( Resource::loadImage("logo/opielogo" ) ); |
29 | opiezillaimage = opiezillaimage.smoothScale( 45, 45 ); | ||
30 | QPixmap opiezilla; //the opiezilla | ||
31 | opiezilla.convertFromImage( opiezillaimage ); | ||
29 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon | 32 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon |
30 | 33 | ||
31 | layout = 0L; | 34 | layout = 0L; |
32 | 35 | ||
33 | QPalette pal = this->palette(); | 36 | QPalette pal = this->palette(); |
34 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 37 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
35 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 38 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
36 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 39 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
37 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 40 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
38 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 41 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
39 | this->setPalette( pal ); | 42 | this->setPalette( pal ); |
40 | 43 | ||