Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todaybase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 3d0bfb3..bc1651d 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -48,25 +48,24 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
48 | 48 | ||
49 | QWidget *d = QApplication::desktop(); | 49 | QWidget *d = QApplication::desktop(); |
50 | int w=d->width(); | 50 | int w=d->width(); |
51 | int h=d->height(); | 51 | int h=d->height(); |
52 | resize( w , h ); | 52 | resize( w , h ); |
53 | 53 | ||
54 | // hehe, qt is ... | 54 | // hehe, qt is ... |
55 | getridoffuckingstrippeldlinesbutton = new QPushButton (this, "asdfsad" ); | 55 | getridoffuckingstrippeldlinesbutton = new QPushButton (this, "asdfsad" ); |
56 | getridoffuckingstrippeldlinesbutton->setGeometry( QRect( -5, 10, 0, 0 ) ); | 56 | getridoffuckingstrippeldlinesbutton->setGeometry( QRect( -5, 10, 0, 0 ) ); |
57 | 57 | ||
58 | QVBoxLayout * layout = new QVBoxLayout(this); | 58 | QVBoxLayout * layout = new QVBoxLayout(this); |
59 | 59 | ||
60 | |||
61 | QPalette pal = this->palette(); | 60 | QPalette pal = this->palette(); |
62 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); | 61 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); |
63 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | 62 | pal.setColor(QPalette::Active, QColorGroup::Button, col); |
64 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | 63 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); |
65 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); | 64 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); |
66 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); | 65 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); |
67 | this->setPalette(pal); | 66 | this->setPalette(pal); |
68 | 67 | ||
69 | // --- logo Section --- | 68 | // --- logo Section --- |
70 | QPalette pal2; | 69 | QPalette pal2; |
71 | QColorGroup cg; | 70 | QColorGroup cg; |
72 | cg.setColor( QColorGroup::Text, white ); | 71 | cg.setColor( QColorGroup::Text, white ); |
@@ -97,25 +96,25 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
97 | Opiezilla->setGeometry( this->width()-50 ,1, 45, 47); | 96 | Opiezilla->setGeometry( this->width()-50 ,1, 45, 47); |
98 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); | 97 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); |
99 | 98 | ||
100 | // date | 99 | // date |
101 | TextLabel1 = new QLabel( Frame, "TextLabel1" ); | 100 | TextLabel1 = new QLabel( Frame, "TextLabel1" ); |
102 | TextLabel1->setGeometry( QRect( 10, 35, 168, 12 ) ); | 101 | TextLabel1->setGeometry( QRect( 10, 35, 168, 12 ) ); |
103 | QFont TextLabel1_font( TextLabel1->font() ); | 102 | QFont TextLabel1_font( TextLabel1->font() ); |
104 | TextLabel1_font.setBold( TRUE ); | 103 | TextLabel1_font.setBold( TRUE ); |
105 | TextLabel1->setFont( TextLabel1_font ); | 104 | TextLabel1->setFont( TextLabel1_font ); |
106 | TextLabel1->setBackgroundOrigin( QLabel::ParentOrigin ); | 105 | TextLabel1->setBackgroundOrigin( QLabel::ParentOrigin ); |
107 | TextLabel1->setTextFormat( RichText ); | 106 | TextLabel1->setTextFormat( RichText ); |
108 | 107 | ||
109 | OwnerField = new QLabel(this , "Owner" ); | 108 | OwnerField = new OClickableLabel(this , "Owner" ); |
110 | OwnerField->setGeometry(QRect(0,0, this->width(), 12 )); | 109 | OwnerField->setGeometry(QRect(0,0, this->width(), 12 )); |
111 | OwnerField->setAlignment(int (QLabel::AlignTop | QLabel::AlignLeft ) ); | 110 | OwnerField->setAlignment(int (QLabel::AlignTop | QLabel::AlignLeft ) ); |
112 | OwnerField->setMaximumHeight(12); | 111 | OwnerField->setMaximumHeight(12); |
113 | 112 | ||
114 | // --- dates section --- | 113 | // --- dates section --- |
115 | Frame4 = new QFrame( this, "Frame4" ); | 114 | Frame4 = new QFrame( this, "Frame4" ); |
116 | // Frame4->setPalette( pal ); | 115 | // Frame4->setPalette( pal ); |
117 | Frame4->setFrameShape( QScrollView::StyledPanel ); | 116 | Frame4->setFrameShape( QScrollView::StyledPanel ); |
118 | Frame4->setFrameShadow( QScrollView::Sunken ); | 117 | Frame4->setFrameShadow( QScrollView::Sunken ); |
119 | Frame4->setBackgroundOrigin( QScrollView::ParentOrigin ); | 118 | Frame4->setBackgroundOrigin( QScrollView::ParentOrigin ); |
120 | Frame4->setFrameStyle( QFrame::NoFrame ); | 119 | Frame4->setFrameStyle( QFrame::NoFrame ); |
121 | Frame4->setGeometry (QRect( 0, 8, this->width() , this->height()) ); | 120 | Frame4->setGeometry (QRect( 0, 8, this->width() , this->height()) ); |