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.cpp28
1 files changed, 15 insertions, 13 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,3 +48,4 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
pal2.setActive( cg );
- // today logo
+
+// today logo
Frame = new QLabel( this, "Frame" );
@@ -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 );
}
+
/**