author | harlekin <harlekin> | 2002-04-27 17:06:35 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-27 17:06:35 (UTC) |
commit | 32f808191e255c82044f281f6032f336b75f2fc6 (patch) (side-by-side diff) | |
tree | 26edc161e8c646325eef15a4b50a14baad6594c4 /core/pim/today/todaybase.cpp | |
parent | 0fb2ea5d51271cfad323b69c4c191c946f45a5a0 (diff) | |
download | opie-32f808191e255c82044f281f6032f336b75f2fc6.zip opie-32f808191e255c82044f281f6032f336b75f2fc6.tar.gz opie-32f808191e255c82044f281f6032f336b75f2fc6.tar.bz2 |
fixes for the logo part, looks better now on screen > 240 pixel width. Also now all the i18n guys can finally translate the Today string .-)
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 ) QPixmap mail = Resource::loadPixmap( "today/mail" ); // mail icon - - //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); - + QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla @@ -81,2 +73,19 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) Frame->setMinimumHeight(50); + + // Today text + QLabel* TodayLabel = new QLabel( Frame, "TodayText" ); + TodayLabel->setGeometry( QRect( 10, 0, 168, 40 ) ); + QFont TodayLabel_font( TodayLabel->font() ); + TodayLabel_font.setBold( TRUE ); + TodayLabel_font.setPointSize(40); + TodayLabel->setFont( TodayLabel_font ); + TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); + TodayLabel->setText("<font color=#FFFFFF>" + tr("Today") +"</font>"); + + // Opiezilla + QLabel* Opiezilla = new QLabel( Frame, "OpieZilla"); + Opiezilla->setPixmap( opiezilla ); + Opiezilla->setGeometry( this->width()-50 ,1, 45, 47); + Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); + // date |