Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todaybase.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index ff6001a..5c1dc24 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp @@ -51,23 +51,19 @@ 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(); - resize( w , h ); // not good, what happens on rotation + resize( w , h ); // hehe, qt is ... getridoffuckingstrippeldlinesbutton = new QPushButton (this, "asdfsad" ); getridoffuckingstrippeldlinesbutton->setGeometry( QRect( -5, 10, 0, 0 ) ); - - QVBoxLayout * layout = new QVBoxLayout(this); - - // --- logo Section --- QPalette pal2; QColorGroup cg; cg.setColor( QColorGroup::Text, white ); cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230), logo ) ); @@ -118,21 +114,18 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) DatesField->setText( tr( "No appointments today" ) ); DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); // --- mail section --- MailFrame = new QFrame( this ,"MailFrame" ); - //MailFrame->setPalette( pal ); MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); - //MailFrame->setFrameShape( QScrollView::StyledPanel ); - //MailFrame->setFrameShadow( QScrollView::Sunken ); MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); MailFrame->setFrameStyle( QFrame::NoFrame ); QFrame* Line1 = new QFrame( MailFrame); - Line1->setGeometry( QRect( 0, 0, MailFrame->width(), 5 ) ); + Line1->setGeometry( QRect( -5, 0, MailFrame->width()+5, 5 ) ); Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken ); MailButton = new QPushButton (MailFrame, "MailButton" ); MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); MailButton->setPalette( pal ); MailButton->setPixmap( mail ); @@ -145,19 +138,17 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) MailField->setMaximumHeight(40); MailField->setMinimumHeight(15); // --- todo section -- Frame15 = new QFrame( this, "Frame15" ); - //Frame15->setFrameShape( QFrame::StyledPanel ); - //Frame15->setFrameShadow( QFrame::Sunken ); Frame15->setFrameStyle( QFrame::NoFrame ); Frame15->setGeometry (QRect( 40, 3, this->width() , this->height()) ); QFrame* Line2 = new QFrame( Frame15); - Line2->setGeometry( QRect( 0, 0, MailFrame->width(), 5 ) ); + Line2->setGeometry( QRect( -5, 0, MailFrame->width()+5, 5 ) ); Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken ); TodoButton = new QPushButton (Frame15, "TodoButton" ); TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); TodoButton->setPalette( pal ); TodoButton->setPixmap( todo ); @@ -168,13 +159,12 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) sv2->setHScrollBarMode( QScrollView::AlwaysOff ); sv2->setGeometry (QRect( 40, 3, Frame15->width()-40 , (Frame15->height()/3) ) ); sv2->setFrameShape(QFrame::NoFrame); TodoField = new QLabel( sv2->viewport(), "TodoField" ); sv2->addChild(TodoField); - //TodoField->setGeometry( QRect( 40, 4, 196, 120 ) ); TodoField->setFrameShadow( QLabel::Plain ); //TodoField->setText( tr( "No current todos" ) ); TodoField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); PushButton1 = new QPushButton (Frame15, "PushButton1" ); PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); |