-rw-r--r-- | core/pim/today/todaybase.cpp | 34 | ||||
-rw-r--r-- | core/pim/today/todaybase.h | 3 |
2 files changed, 23 insertions, 14 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index a44f598..b60c915 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -29,3 +29,3 @@ | |||
29 | #include <qpixmap.h> | 29 | #include <qpixmap.h> |
30 | #include <qscrollview.h> | 30 | //#include <qscrollview.h> |
31 | 31 | ||
@@ -53,4 +53,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
53 | 53 | ||
54 | QVBoxLayout * layout = new QVBoxLayout(this); | ||
55 | |||
54 | Frame4 = new QFrame( this, "Frame4" ); | 56 | Frame4 = new QFrame( this, "Frame4" ); |
55 | Frame4->setGeometry( QRect( -9, 50, 250, 150 ) ); | ||
56 | Frame4->setFrameShape( QScrollView::StyledPanel ); | 57 | Frame4->setFrameShape( QScrollView::StyledPanel ); |
@@ -61,6 +62,6 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
61 | getridoffuckingstrippeldlinesbutton = new QPushButton (Frame4, "asdfsad" ); | 62 | getridoffuckingstrippeldlinesbutton = new QPushButton (Frame4, "asdfsad" ); |
62 | getridoffuckingstrippeldlinesbutton->setGeometry( QRect( 2, 10, 0, 0 ) ); | 63 | getridoffuckingstrippeldlinesbutton->setGeometry( QRect( -5, 10, 0, 0 ) ); |
63 | 64 | ||
64 | DatesButton = new QPushButton (Frame4, "DatesButton" ); | 65 | DatesButton = new QPushButton (Frame4, "DatesButton" ); |
65 | DatesButton->setGeometry( QRect( 10, 10, 36, 32 ) ); | 66 | DatesButton->setGeometry( QRect( 2, 10, 36, 32 ) ); |
66 | DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); | 67 | DatesButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); |
@@ -70,3 +71,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
70 | DatesField = new QLabel( Frame4, "DatesField" ); | 71 | DatesField = new QLabel( Frame4, "DatesField" ); |
71 | DatesField->setGeometry( QRect( 47, 10, 203, 120 ) ); | 72 | DatesField->setGeometry( QRect( 40, 10, 203, 120 ) ); |
72 | DatesField->setText( tr( "No appointments today" ) ); | 73 | DatesField->setText( tr( "No appointments today" ) ); |
@@ -74,4 +75,4 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
74 | 75 | ||
76 | // today logo | ||
75 | Frame = new QLabel( this, "Frame" ); | 77 | Frame = new QLabel( this, "Frame" ); |
76 | Frame->setGeometry( QRect( 0, 0, 240, 50 ) ); | ||
77 | QPalette pal; | 78 | QPalette pal; |
@@ -81,3 +82,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
81 | pal.setActive( cg ); | 82 | pal.setActive( cg ); |
82 | 83 | ||
83 | Frame->setPalette( pal ); | 84 | Frame->setPalette( pal ); |
@@ -86,4 +87,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
86 | Frame->setLineWidth( 0 ); | 87 | Frame->setLineWidth( 0 ); |
87 | 88 | Frame->setMaximumHeight(50); | |
88 | // datum | 89 | Frame->setMinimumHeight(50); |
90 | // date | ||
89 | TextLabel1 = new QLabel( Frame, "TextLabel1" ); | 91 | TextLabel1 = new QLabel( Frame, "TextLabel1" ); |
@@ -99,3 +101,2 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
99 | Frame15 = new QFrame( this, "Frame15" ); | 101 | Frame15 = new QFrame( this, "Frame15" ); |
100 | Frame15->setGeometry( QRect( -9, 200, 250, 130 ) ); | ||
101 | Frame15->setFrameShape( QFrame::StyledPanel ); | 102 | Frame15->setFrameShape( QFrame::StyledPanel ); |
@@ -104,3 +105,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
104 | TodoButton = new QPushButton (Frame15, "TodoButton" ); | 105 | TodoButton = new QPushButton (Frame15, "TodoButton" ); |
105 | TodoButton->setGeometry( QRect( 10, 4, 36, 32 ) ); | 106 | TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) ); |
106 | TodoButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); | 107 | TodoButton->setBackgroundOrigin( QPushButton::WidgetOrigin ); |
@@ -110,3 +111,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
110 | TodoField = new QLabel( Frame15, "TodoField" ); | 111 | TodoField = new QLabel( Frame15, "TodoField" ); |
111 | TodoField->setGeometry( QRect( 47, 10, 196, 120 ) ); | 112 | TodoField->setGeometry( QRect( 40, 10, 196, 120 ) ); |
112 | TodoField->setFrameShadow( QLabel::Plain ); | 113 | TodoField->setFrameShadow( QLabel::Plain ); |
@@ -116,3 +117,3 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
116 | PushButton1 = new QPushButton (Frame15, "PushButton1" ); | 117 | PushButton1 = new QPushButton (Frame15, "PushButton1" ); |
117 | PushButton1->setGeometry( QRect( 225, 68, 25, 21 ) ); | 118 | PushButton1->setGeometry( QRect( 216, 68, 25, 21 ) ); |
118 | PushButton1->setBackgroundOrigin( QPushButton::WidgetOrigin ); | 119 | PushButton1->setBackgroundOrigin( QPushButton::WidgetOrigin ); |
@@ -121,2 +122,9 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
121 | PushButton1->setFlat( TRUE ); | 122 | PushButton1->setFlat( TRUE ); |
123 | |||
124 | layout->addWidget(Frame); | ||
125 | layout->addWidget(Frame4); | ||
126 | layout->addWidget(Frame15); | ||
127 | |||
128 | layout->setStretchFactor(Frame4,3); | ||
129 | layout->setStretchFactor(Frame15,2); | ||
122 | } | 130 | } |
diff --git a/core/pim/today/todaybase.h b/core/pim/today/todaybase.h index 947efc5..69c6363 100644 --- a/core/pim/today/todaybase.h +++ b/core/pim/today/todaybase.h | |||
@@ -33,3 +33,4 @@ public: | |||
33 | QLabel* DatesField; | 33 | QLabel* DatesField; |
34 | QFrame* Frame; | 34 | QLabel* Frame; |
35 | //QFrame* Frame; | ||
35 | QLabel* TextLabel1; | 36 | QLabel* TextLabel1; |