author | harlekin <harlekin> | 2002-04-10 16:51:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-10 16:51:46 (UTC) |
commit | 34e0e7af48992314d461be1a5a573dc0967fe260 (patch) (unidiff) | |
tree | e3e8bbf44ebf767f28de3fe89eced38e785a7b55 /core/pim/today/todaybase.cpp | |
parent | 1d32fda5b67e89321ecbd0c8700edb8292b9ca90 (diff) | |
download | opie-34e0e7af48992314d461be1a5a573dc0967fe260.zip opie-34e0e7af48992314d461be1a5a573dc0967fe260.tar.gz opie-34e0e7af48992314d461be1a5a573dc0967fe260.tar.bz2 |
am/pm support, ugly
Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todaybase.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 755c860..ae8763b 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -45,13 +45,13 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
45 | QPixmap config = Resource::loadPixmap( "today/config" ); // config icon | 45 | QPixmap config = Resource::loadPixmap( "today/config" ); // config icon |
46 | QPixmap mail = Resource::loadPixmap( "today/mail" ); // mail icon | 46 | QPixmap mail = Resource::loadPixmap( "today/mail" ); // mail icon |
47 | 47 | ||
48 | QPalette pal = this->palette(); | 48 | //QPalette pal = this->palette(); |
49 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); | 49 | // QColor col = pal.color(QPalette::Active, QColorGroup::Background); |
50 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | 50 | //pal.setColor(QPalette::Active, QColorGroup::Button, col); |
51 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | 51 | //pal.setColor(QPalette::Inactive, QColorGroup::Button, col); |
52 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); | 52 | //pal.setColor(QPalette::Normal, QColorGroup::Button, col); |
53 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); | 53 | //pal.setColor(QPalette::Disabled, QColorGroup::Button, col); |
54 | this->setPalette(pal); | 54 | //this->setPalette(pal); |
55 | 55 | ||
56 | 56 | ||
57 | QWidget *d = QApplication::desktop(); | 57 | QWidget *d = QApplication::desktop(); |
@@ -95,7 +95,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
95 | 95 | ||
96 | // --- dates section --- | 96 | // --- dates section --- |
97 | Frame4 = new QFrame( this, "Frame4" ); | 97 | Frame4 = new QFrame( this, "Frame4" ); |
98 | Frame4->setPalette( pal ); | 98 | // Frame4->setPalette( pal ); |
99 | Frame4->setFrameShape( QScrollView::StyledPanel ); | 99 | Frame4->setFrameShape( QScrollView::StyledPanel ); |
100 | Frame4->setFrameShadow( QScrollView::Sunken ); | 100 | Frame4->setFrameShadow( QScrollView::Sunken ); |
101 | Frame4->setBackgroundOrigin( QScrollView::ParentOrigin ); | 101 | Frame4->setBackgroundOrigin( QScrollView::ParentOrigin ); |
@@ -112,7 +112,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
112 | DatesButton = new QPushButton (Frame4, "DatesButton" ); | 112 | DatesButton = new QPushButton (Frame4, "DatesButton" ); |
113 | DatesButton->setGeometry( QRect( 2, 4, 36, 32 ) ); | 113 | DatesButton->setGeometry( QRect( 2, 4, 36, 32 ) ); |
114 | DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); | 114 | DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); |
115 | DatesButton->setPalette( pal ); | 115 | // DatesButton->setPalette( pal ); |
116 | DatesButton->setPixmap( datebook ); | 116 | DatesButton->setPixmap( datebook ); |
117 | DatesButton->setFlat( TRUE ); | 117 | DatesButton->setFlat( TRUE ); |
118 | 118 | ||
@@ -128,7 +128,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
128 | 128 | ||
129 | MailButton = new QPushButton (MailFrame, "MailButton" ); | 129 | MailButton = new QPushButton (MailFrame, "MailButton" ); |
130 | MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); | 130 | MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); |
131 | MailButton->setPalette( pal ); | 131 | // MailButton->setPalette( pal ); |
132 | MailButton->setPixmap( mail ); | 132 | MailButton->setPixmap( mail ); |
133 | MailButton->setFlat( TRUE ); | 133 | MailButton->setFlat( TRUE ); |
134 | 134 | ||
@@ -150,7 +150,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
150 | 150 | ||
151 | TodoButton = new QPushButton (Frame15, "TodoButton" ); | 151 | TodoButton = new QPushButton (Frame15, "TodoButton" ); |
152 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); | 152 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); |
153 | TodoButton->setPalette( pal ); | 153 | // TodoButton->setPalette( pal ); |
154 | TodoButton->setPixmap( todo ); | 154 | TodoButton->setPixmap( todo ); |
155 | TodoButton->setFlat( TRUE ); | 155 | TodoButton->setFlat( TRUE ); |
156 | 156 | ||
@@ -169,7 +169,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
169 | PushButton1 = new QPushButton (Frame15, "PushButton1" ); | 169 | PushButton1 = new QPushButton (Frame15, "PushButton1" ); |
170 | PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); | 170 | PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); |
171 | PushButton1->setPixmap( config ); | 171 | PushButton1->setPixmap( config ); |
172 | PushButton1->setPalette( pal ); | 172 | // PushButton1->setPalette( pal ); |
173 | PushButton1->setAutoDefault( TRUE ); | 173 | PushButton1->setAutoDefault( TRUE ); |
174 | PushButton1->setFlat( TRUE ); | 174 | PushButton1->setFlat( TRUE ); |
175 | 175 | ||