-rw-r--r-- | core/pim/today/todaybase.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 552e2eb..c0b8d34 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp @@ -83,23 +83,26 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) QFont TextLabel1_font( TextLabel1->font() ); TextLabel1_font.setBold( TRUE ); TextLabel1->setFont( TextLabel1_font ); TextLabel1->setBackgroundOrigin( QLabel::ParentOrigin ); TextLabel1->setTextFormat( RichText ); + OwnerField = new QLabel(this , "Owner" ); + OwnerField->setGeometry(QRect(0,0, this->width(), 12 )); + OwnerField->setAlignment(int (QLabel::AlignTop | QLabel::AlignLeft ) ); + OwnerField->setMaximumHeight(12); // --- dates section --- Frame4 = new QFrame( this, "Frame4" ); Frame4->setPalette( pal ); Frame4->setFrameShape( QScrollView::StyledPanel ); Frame4->setFrameShadow( QScrollView::Sunken ); Frame4->setBackgroundOrigin( QScrollView::ParentOrigin ); Frame4->setFrameStyle( QFrame::NoFrame ); - Frame4->setGeometry (QRect( 0, 0, this->width() , this->height()) ); + Frame4->setGeometry (QRect( 0, 8, this->width() , this->height()) ); - // QScrollView* sv1 = new QScrollView( Frame4 ); sv1 = new QScrollView( Frame4 ); sv1->setResizePolicy(QScrollView::AutoOneFit); sv1->setHScrollBarMode( QScrollView::AlwaysOff ); // need to find a better way!!! sv1->setGeometry (QRect( 40, 2, Frame4->width()-40 , (Frame4->height()/3)+20 ) ); sv1->setFrameShape(QFrame::NoFrame); @@ -108,20 +111,12 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) DatesButton->setGeometry( QRect( 2, 4, 36, 32 ) ); DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); DatesButton->setPalette( pal ); DatesButton->setPixmap( datebook ); DatesButton->setFlat( TRUE ); - //DatesField = new QLabel( sv1->viewport(), "DatesField" ); - //DatesField = new QVBox(sv1->viewport()); - //QWidget *dummy = new QWidget(sv1->viewport()); - //sv1->addChild(DatesField); - //DatesField->setText( tr( "No appointments today" ) ); - // DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); - - // --- mail section ---) MailFrame = new QFrame( this ,"MailFrame" ); MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); MailFrame->setFrameStyle( QFrame::NoFrame ); @@ -139,13 +134,12 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) MailField->setGeometry( QRect( 40, 4, MailFrame->width(), 12) ); MailField->setText( tr( "Opiemail not installed" ) ); MailField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); MailField->setMaximumHeight(40); MailField->setMinimumHeight(15); - // --- todo section -- Frame15 = new QFrame( this, "Frame15" ); Frame15->setFrameStyle( QFrame::NoFrame ); Frame15->setGeometry (QRect( 40, 3, this->width() , this->height()) ); QFrame* Line2 = new QFrame( Frame15); @@ -176,12 +170,13 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) PushButton1->setPalette( pal ); PushButton1->setAutoDefault( TRUE ); PushButton1->setFlat( TRUE ); // -- layout -- layout->addWidget(Frame); + layout->addWidget(OwnerField); layout->addWidget(Frame4); layout->addWidget(MailFrame); layout->addWidget(Frame15); layout->setStretchFactor(Frame4,5); layout->setStretchFactor(MailFrame,1); |