Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todaybase.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index ae8763b..c6ea11f 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -46,11 +46,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
46 | QPixmap mail = Resource::loadPixmap( "today/mail" ); // mail icon | 46 | QPixmap mail = Resource::loadPixmap( "today/mail" ); // mail icon |
47 | 47 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | |
48 | //QPalette pal = this->palette(); | ||
49 | // QColor col = pal.color(QPalette::Active, QColorGroup::Background); | ||
50 | //pal.setColor(QPalette::Active, QColorGroup::Button, col); | ||
51 | //pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | ||
52 | //pal.setColor(QPalette::Normal, QColorGroup::Button, col); | ||
53 | //pal.setColor(QPalette::Disabled, QColorGroup::Button, col); | ||
54 | //this->setPalette(pal); | ||
55 | |||
56 | 48 | ||
@@ -81,2 +73,19 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
81 | Frame->setMinimumHeight(50); | 73 | Frame->setMinimumHeight(50); |
74 | |||
75 | // Today text | ||
76 | QLabel* TodayLabel = new QLabel( Frame, "TodayText" ); | ||
77 | TodayLabel->setGeometry( QRect( 10, 0, 168, 40 ) ); | ||
78 | QFont TodayLabel_font( TodayLabel->font() ); | ||
79 | TodayLabel_font.setBold( TRUE ); | ||
80 | TodayLabel_font.setPointSize(40); | ||
81 | TodayLabel->setFont( TodayLabel_font ); | ||
82 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | ||
83 | TodayLabel->setText("<font color=#FFFFFF>" + tr("Today") +"</font>"); | ||
84 | |||
85 | // Opiezilla | ||
86 | QLabel* Opiezilla = new QLabel( Frame, "OpieZilla"); | ||
87 | Opiezilla->setPixmap( opiezilla ); | ||
88 | Opiezilla->setGeometry( this->width()-50 ,1, 45, 47); | ||
89 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); | ||
90 | |||
82 | // date | 91 | // date |