-rw-r--r-- | core/pim/today/todaybase.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 5c1dc24..552e2eb 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -51,6 +51,7 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
51 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | 51 | pal.setColor(QPalette::Active, QColorGroup::Button, col); |
52 | this->setPalette(pal); | 52 | this->setPalette(pal); |
53 | 53 | ||
54 | |||
54 | QWidget *d = QApplication::desktop(); | 55 | QWidget *d = QApplication::desktop(); |
55 | int w=d->width(); | 56 | int w=d->width(); |
56 | int h=d->height(); | 57 | int h=d->height(); |
@@ -95,7 +96,8 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
95 | Frame4->setFrameStyle( QFrame::NoFrame ); | 96 | Frame4->setFrameStyle( QFrame::NoFrame ); |
96 | Frame4->setGeometry (QRect( 0, 0, this->width() , this->height()) ); | 97 | Frame4->setGeometry (QRect( 0, 0, this->width() , this->height()) ); |
97 | 98 | ||
98 | QScrollView* sv1 = new QScrollView( Frame4 ); | 99 | // QScrollView* sv1 = new QScrollView( Frame4 ); |
100 | sv1 = new QScrollView( Frame4 ); | ||
99 | sv1->setResizePolicy(QScrollView::AutoOneFit); | 101 | sv1->setResizePolicy(QScrollView::AutoOneFit); |
100 | sv1->setHScrollBarMode( QScrollView::AlwaysOff ); | 102 | sv1->setHScrollBarMode( QScrollView::AlwaysOff ); |
101 | // need to find a better way!!! | 103 | // need to find a better way!!! |
@@ -109,13 +111,15 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
109 | DatesButton->setPixmap( datebook ); | 111 | DatesButton->setPixmap( datebook ); |
110 | DatesButton->setFlat( TRUE ); | 112 | DatesButton->setFlat( TRUE ); |
111 | 113 | ||
112 | DatesField = new QLabel( sv1->viewport(), "DatesField" ); | 114 | //DatesField = new QLabel( sv1->viewport(), "DatesField" ); |
113 | sv1->addChild(DatesField); | 115 | //DatesField = new QVBox(sv1->viewport()); |
114 | DatesField->setText( tr( "No appointments today" ) ); | 116 | //QWidget *dummy = new QWidget(sv1->viewport()); |
115 | DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); | 117 | //sv1->addChild(DatesField); |
118 | //DatesField->setText( tr( "No appointments today" ) ); | ||
119 | // DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); | ||
116 | 120 | ||
117 | 121 | ||
118 | // --- mail section --- | 122 | // --- mail section ---) |
119 | MailFrame = new QFrame( this ,"MailFrame" ); | 123 | MailFrame = new QFrame( this ,"MailFrame" ); |
120 | MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); | 124 | MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); |
121 | MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); | 125 | MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); |