author | harlekin <harlekin> | 2002-03-11 15:05:28 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-03-11 15:05:28 (UTC) |
commit | 07177b1aa8b5c6979fe06874da903a9d17debb65 (patch) (side-by-side diff) | |
tree | 3cd6fef4b53355e861ae1d3db923c9ee92436a47 /core/pim/today/todaybase.cpp | |
parent | cb57d1df6804ab3739f96ba1881ffc8110e3caa9 (diff) | |
download | opie-07177b1aa8b5c6979fe06874da903a9d17debb65.zip opie-07177b1aa8b5c6979fe06874da903a9d17debb65.tar.gz opie-07177b1aa8b5c6979fe06874da903a9d17debb65.tar.bz2 |
some new features like clickable appointments, but not connected to datebook yet
-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 ) pal.setColor(QPalette::Active, QColorGroup::Button, col); this->setPalette(pal); + QWidget *d = QApplication::desktop(); int w=d->width(); int h=d->height(); @@ -95,7 +96,8 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) Frame4->setFrameStyle( QFrame::NoFrame ); Frame4->setGeometry (QRect( 0, 0, this->width() , this->height()) ); - QScrollView* sv1 = new QScrollView( Frame4 ); + // QScrollView* sv1 = new QScrollView( Frame4 ); + sv1 = new QScrollView( Frame4 ); sv1->setResizePolicy(QScrollView::AutoOneFit); sv1->setHScrollBarMode( QScrollView::AlwaysOff ); // need to find a better way!!! @@ -109,13 +111,15 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) DatesButton->setPixmap( datebook ); DatesButton->setFlat( TRUE ); - DatesField = new QLabel( sv1->viewport(), "DatesField" ); - sv1->addChild(DatesField); - DatesField->setText( tr( "No appointments today" ) ); - DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); + //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 --- + // --- mail section ---) MailFrame = new QFrame( this ,"MailFrame" ); MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); |