summaryrefslogtreecommitdiff
path: root/core/pim/today/todaybase.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index 74f4fa0..800ca5d 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -25,24 +25,26 @@
#include <qpe/resource.h>
TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl ) {
QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla
QPixmap config = Resource::loadPixmap( "today/config" ); // config icon
layout = new QVBoxLayout( this );
+ QVBoxLayout *mainLayout = new QVBoxLayout( this );
+
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 ---
QPalette pal2;
QColorGroup cg;
cg.setColor( QColorGroup::Text, white );
@@ -68,40 +70,36 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today²") +"</font>" );
// date
DateLabel = new QLabel( Frame, "TextLabel1" );
DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) );
QFont DateLabel_font( DateLabel->font() );
DateLabel_font.setBold( TRUE );
DateLabel->setFont( DateLabel_font );
DateLabel->setBackgroundOrigin( QLabel::ParentOrigin );
DateLabel->setTextFormat( RichText );
// Opiezilla
- QLabel* Opiezilla = new QLabel( Frame, "OpieZilla");
+ QLabel* Opiezilla = new QLabel( Frame, "OpieZilla" );
Opiezilla->setPixmap( opiezilla );
- Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47);
+ Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47 );
Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin );
// Ownerfield
OwnerField = new OClickableLabel( this , "Owner" );
- OwnerField->setGeometry( QRect( 0,0, this->width(), 12 ));
+ OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) );
OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) );
OwnerField->setMaximumHeight(12);
// config
ConfigButton = new OClickableLabel ( Frame, "PushButton1" );
- ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 30, 25, 21 ) );
- ConfigButton->setPixmap( config );
+ ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 30, 25, 21 ) );
+ ConfigButton->setPixmap( config );
ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin );
-
- // -- layout --
- layout->addWidget( Frame );
- layout->addWidget( OwnerField );
}
/**
* D' tor
*/
TodayBase::~TodayBase() {
}