-rw-r--r-- | core/pim/today/todaybase.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index a36ecaa..c896463 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp @@ -3,3 +3,3 @@ * - * copyright : (c) 2002 by Maximilian Reiß + * copyright : (c) 2002, 2003 by Maximilian Reiß * email : harlekin@handhelds.org @@ -18,6 +18,4 @@ +#include <qvbox.h> #include <qlabel.h> -#include <qimage.h> -#include <qpixmap.h> -#include <qapplication.h> #include <qwhatsthis.h> @@ -50,2 +48,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) pal2.setActive( cg ); + // today logo @@ -56,8 +55,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) Frame->setLineWidth( 0 ); - Frame->setMaximumHeight( 50 ); - Frame->setMinimumHeight( 50 ); + QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); + QVBox *box1 = new QVBox( Frame ); // Today text - TodayLabel = new QLabel( Frame, "TodayText" ); - TodayLabel->setGeometry( QRect( 10, 1, 168, 40 ) ); + TodayLabel = new QLabel( box1, "TodayText" ); QFont TodayLabel_font( TodayLabel->font() ); @@ -70,4 +68,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) // date - DateLabel = new QLabel( Frame, "TextLabel1" ); - DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) ); + DateLabel = new QLabel( box1, "TextLabel1" ); QFont DateLabel_font( DateLabel->font() ); @@ -81,3 +78,2 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) Opiezilla->setPixmap( opiezilla ); - Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47 ); QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) ); @@ -85,2 +81,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) + // Ownerfield @@ -93,3 +90,2 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); - ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 29, 25, 20 ) ); ConfigButton->setPixmap( config ); @@ -97,4 +93,10 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); + + frameLayout->addWidget( box1 ); + frameLayout->addStretch( 2 ); + frameLayout->addWidget( ConfigButton, 0, AlignBottom ); + frameLayout->addWidget( Opiezilla ); } + /** |