-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,24 +51,20 @@ 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 | QWidget *d = QApplication::desktop(); | 54 | QWidget *d = QApplication::desktop(); |
55 | int w=d->width(); | 55 | int w=d->width(); |
56 | int h=d->height(); | 56 | int h=d->height(); |
57 | resize( w , h ); // not good, what happens on rotation | 57 | resize( w , h ); |
58 | 58 | ||
59 | // hehe, qt is ... | 59 | // hehe, qt is ... |
60 | getridoffuckingstrippeldlinesbutton = new QPushButton (this, "asdfsad" ); | 60 | getridoffuckingstrippeldlinesbutton = new QPushButton (this, "asdfsad" ); |
61 | getridoffuckingstrippeldlinesbutton->setGeometry( QRect( -5, 10, 0, 0 ) ); | 61 | getridoffuckingstrippeldlinesbutton->setGeometry( QRect( -5, 10, 0, 0 ) ); |
62 | 62 | ||
63 | |||
64 | |||
65 | QVBoxLayout * layout = new QVBoxLayout(this); | 63 | QVBoxLayout * layout = new QVBoxLayout(this); |
66 | 64 | ||
67 | |||
68 | |||
69 | // --- logo Section --- | 65 | // --- logo Section --- |
70 | QPalette pal2; | 66 | QPalette pal2; |
71 | QColorGroup cg; | 67 | QColorGroup cg; |
72 | cg.setColor( QColorGroup::Text, white ); | 68 | cg.setColor( QColorGroup::Text, white ); |
73 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230), logo ) ); | 69 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230), logo ) ); |
74 | pal2.setActive( cg ); | 70 | pal2.setActive( cg ); |
@@ -118,21 +114,18 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
118 | DatesField->setText( tr( "No appointments today" ) ); | 114 | DatesField->setText( tr( "No appointments today" ) ); |
119 | DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); | 115 | DatesField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); |
120 | 116 | ||
121 | 117 | ||
122 | // --- mail section --- | 118 | // --- mail section --- |
123 | MailFrame = new QFrame( this ,"MailFrame" ); | 119 | MailFrame = new QFrame( this ,"MailFrame" ); |
124 | //MailFrame->setPalette( pal ); | ||
125 | MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); | 120 | MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin ); |
126 | //MailFrame->setFrameShape( QScrollView::StyledPanel ); | ||
127 | //MailFrame->setFrameShadow( QScrollView::Sunken ); | ||
128 | MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); | 121 | MailFrame->setGeometry (QRect( 0, 0, this->width() , 15) ); |
129 | MailFrame->setFrameStyle( QFrame::NoFrame ); | 122 | MailFrame->setFrameStyle( QFrame::NoFrame ); |
130 | 123 | ||
131 | QFrame* Line1 = new QFrame( MailFrame); | 124 | QFrame* Line1 = new QFrame( MailFrame); |
132 | Line1->setGeometry( QRect( 0, 0, MailFrame->width(), 5 ) ); | 125 | Line1->setGeometry( QRect( -5, 0, MailFrame->width()+5, 5 ) ); |
133 | Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken ); | 126 | Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken ); |
134 | 127 | ||
135 | MailButton = new QPushButton (MailFrame, "MailButton" ); | 128 | MailButton = new QPushButton (MailFrame, "MailButton" ); |
136 | MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); | 129 | MailButton->setGeometry( QRect( 2, 3, 36, 19 ) ); |
137 | MailButton->setPalette( pal ); | 130 | MailButton->setPalette( pal ); |
138 | MailButton->setPixmap( mail ); | 131 | MailButton->setPixmap( mail ); |
@@ -145,19 +138,17 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
145 | MailField->setMaximumHeight(40); | 138 | MailField->setMaximumHeight(40); |
146 | MailField->setMinimumHeight(15); | 139 | MailField->setMinimumHeight(15); |
147 | 140 | ||
148 | 141 | ||
149 | // --- todo section -- | 142 | // --- todo section -- |
150 | Frame15 = new QFrame( this, "Frame15" ); | 143 | Frame15 = new QFrame( this, "Frame15" ); |
151 | //Frame15->setFrameShape( QFrame::StyledPanel ); | ||
152 | //Frame15->setFrameShadow( QFrame::Sunken ); | ||
153 | Frame15->setFrameStyle( QFrame::NoFrame ); | 144 | Frame15->setFrameStyle( QFrame::NoFrame ); |
154 | Frame15->setGeometry (QRect( 40, 3, this->width() , this->height()) ); | 145 | Frame15->setGeometry (QRect( 40, 3, this->width() , this->height()) ); |
155 | 146 | ||
156 | QFrame* Line2 = new QFrame( Frame15); | 147 | QFrame* Line2 = new QFrame( Frame15); |
157 | Line2->setGeometry( QRect( 0, 0, MailFrame->width(), 5 ) ); | 148 | Line2->setGeometry( QRect( -5, 0, MailFrame->width()+5, 5 ) ); |
158 | Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken ); | 149 | Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken ); |
159 | 150 | ||
160 | TodoButton = new QPushButton (Frame15, "TodoButton" ); | 151 | TodoButton = new QPushButton (Frame15, "TodoButton" ); |
161 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); | 152 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); |
162 | TodoButton->setPalette( pal ); | 153 | TodoButton->setPalette( pal ); |
163 | TodoButton->setPixmap( todo ); | 154 | TodoButton->setPixmap( todo ); |
@@ -168,13 +159,12 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
168 | sv2->setHScrollBarMode( QScrollView::AlwaysOff ); | 159 | sv2->setHScrollBarMode( QScrollView::AlwaysOff ); |
169 | sv2->setGeometry (QRect( 40, 3, Frame15->width()-40 , (Frame15->height()/3) ) ); | 160 | sv2->setGeometry (QRect( 40, 3, Frame15->width()-40 , (Frame15->height()/3) ) ); |
170 | sv2->setFrameShape(QFrame::NoFrame); | 161 | sv2->setFrameShape(QFrame::NoFrame); |
171 | 162 | ||
172 | TodoField = new QLabel( sv2->viewport(), "TodoField" ); | 163 | TodoField = new QLabel( sv2->viewport(), "TodoField" ); |
173 | sv2->addChild(TodoField); | 164 | sv2->addChild(TodoField); |
174 | //TodoField->setGeometry( QRect( 40, 4, 196, 120 ) ); | ||
175 | TodoField->setFrameShadow( QLabel::Plain ); | 165 | TodoField->setFrameShadow( QLabel::Plain ); |
176 | //TodoField->setText( tr( "No current todos" ) ); | 166 | //TodoField->setText( tr( "No current todos" ) ); |
177 | TodoField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); | 167 | TodoField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); |
178 | 168 | ||
179 | PushButton1 = new QPushButton (Frame15, "PushButton1" ); | 169 | PushButton1 = new QPushButton (Frame15, "PushButton1" ); |
180 | PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); | 170 | PushButton1->setGeometry( QRect( 2, 68, 25, 21 ) ); |