author | harlekin <harlekin> | 2002-05-02 14:11:21 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-02 14:11:21 (UTC) |
commit | b4f04de71fea42fa32a048f42d27e4f5be6804f9 (patch) (unidiff) | |
tree | 465ddbd7f33b5da06ed1ec7d2060281cbd9f3c50 | |
parent | 3e4ce540942b6342a00c272dac171e729ae2b08b (diff) | |
download | opie-b4f04de71fea42fa32a048f42d27e4f5be6804f9.zip opie-b4f04de71fea42fa32a048f42d27e4f5be6804f9.tar.gz opie-b4f04de71fea42fa32a048f42d27e4f5be6804f9.tar.bz2 |
refixed buttons
-rw-r--r-- | core/pim/today/todaybase.cpp | 17 |
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 | |||
@@ -58,4 +58,13 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
58 | QVBoxLayout * layout = new QVBoxLayout(this); | 58 | QVBoxLayout * layout = new QVBoxLayout(this); |
59 | 59 | ||
60 | |||
61 | QPalette pal = this->palette(); | ||
62 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); | ||
63 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | ||
64 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | ||
65 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); | ||
66 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); | ||
67 | this->setPalette(pal); | ||
68 | |||
60 | // --- logo Section --- | 69 | // --- logo Section --- |
61 | QPalette pal2; | 70 | QPalette pal2; |
@@ -122,5 +131,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
122 | DatesButton->setGeometry( QRect( 2, 4, 36, 32 ) ); | 131 | DatesButton->setGeometry( QRect( 2, 4, 36, 32 ) ); |
123 | DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); | 132 | DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); |
124 | // DatesButton->setPalette( pal ); | 133 | DatesButton->setPalette( pal ); |
125 | DatesButton->setPixmap( datebook ); | 134 | DatesButton->setPixmap( datebook ); |
126 | DatesButton->setFlat( TRUE ); | 135 | DatesButton->setFlat( TRUE ); |
@@ -138,5 +147,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
138 | MailButton = new QPushButton (MailFrame, "MailButton" ); | 147 | MailButton = new QPushButton (MailFrame, "MailButton" ); |
139 | MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); | 148 | MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); |
140 | // MailButton->setPalette( pal ); | 149 | MailButton->setPalette( pal ); |
141 | MailButton->setPixmap( mail ); | 150 | MailButton->setPixmap( mail ); |
142 | MailButton->setFlat( TRUE ); | 151 | MailButton->setFlat( TRUE ); |
@@ -160,5 +169,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
160 | TodoButton = new QPushButton (Frame15, "TodoButton" ); | 169 | TodoButton = new QPushButton (Frame15, "TodoButton" ); |
161 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); | 170 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); |
162 | // TodoButton->setPalette( pal ); | 171 | TodoButton->setPalette( pal ); |
163 | TodoButton->setPixmap( todo ); | 172 | TodoButton->setPixmap( todo ); |
164 | TodoButton->setFlat( TRUE ); | 173 | TodoButton->setFlat( TRUE ); |
@@ -179,5 +188,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
179 | PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); | 188 | PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); |
180 | PushButton1->setPixmap( config ); | 189 | PushButton1->setPixmap( config ); |
181 | // PushButton1->setPalette( pal ); | 190 | PushButton1->setPalette( pal ); |
182 | PushButton1->setAutoDefault( TRUE ); | 191 | PushButton1->setAutoDefault( TRUE ); |
183 | PushButton1->setFlat( TRUE ); | 192 | PushButton1->setFlat( TRUE ); |