summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-05-02 14:11:21 (UTC)
committer harlekin <harlekin>2002-05-02 14:11:21 (UTC)
commitb4f04de71fea42fa32a048f42d27e4f5be6804f9 (patch) (side-by-side diff)
tree465ddbd7f33b5da06ed1ec7d2060281cbd9f3c50
parent3e4ce540942b6342a00c272dac171e729ae2b08b (diff)
downloadopie-b4f04de71fea42fa32a048f42d27e4f5be6804f9.zip
opie-b4f04de71fea42fa32a048f42d27e4f5be6804f9.tar.gz
opie-b4f04de71fea42fa32a048f42d27e4f5be6804f9.tar.bz2
refixed buttons
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index c6ea11f..3d0bfb3 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -59,2 +59,11 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
+
+ QPalette pal = this->palette();
+ QColor col = pal.color(QPalette::Active, QColorGroup::Background);
+ pal.setColor(QPalette::Active, QColorGroup::Button, col);
+ pal.setColor(QPalette::Inactive, QColorGroup::Button, col);
+ pal.setColor(QPalette::Normal, QColorGroup::Button, col);
+ pal.setColor(QPalette::Disabled, QColorGroup::Button, col);
+ this->setPalette(pal);
+
// --- logo Section ---
@@ -123,3 +132,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin );
-// DatesButton->setPalette( pal );
+ DatesButton->setPalette( pal );
DatesButton->setPixmap( datebook );
@@ -139,3 +148,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
MailButton->setGeometry( QRect( 2, 3, 36, 19 ) );
-// MailButton->setPalette( pal );
+ MailButton->setPalette( pal );
MailButton->setPixmap( mail );
@@ -161,3 +170,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) );
-// TodoButton->setPalette( pal );
+ TodoButton->setPalette( pal );
TodoButton->setPixmap( todo );
@@ -180,3 +189,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
PushButton1->setPixmap( config );
-// PushButton1->setPalette( pal );
+ PushButton1->setPalette( pal );
PushButton1->setAutoDefault( TRUE );