summaryrefslogtreecommitdiff
path: root/core/pim/today/todaybase.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp53
1 files changed, 22 insertions, 31 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index b0de1bf..32b45f7 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -29,3 +29,4 @@
#include <qpixmap.h>
-//#include <qscrollview.h>
+#include <qscrollview.h>
+#include <qvbox.h>
@@ -52,13 +53,13 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
-QPalette pal2;
- QColorGroup cg;
- cg.setColor( QColorGroup::Text, white );
- cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230), logo ) );
- pal2.setActive( cg );
-
-
-QPalette pal = this->palette();
-QColor col = pal.color(QPalette::Active, QColorGroup::Background);
-pal.setColor(QPalette::Active, QColorGroup::Button, col);
-this->setPalette(pal);
+ QPalette pal2;
+ QColorGroup cg;
+ cg.setColor( QColorGroup::Text, white );
+ cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230), logo ) );
+ pal2.setActive( cg );
+
+
+ QPalette pal = this->palette();
+ QColor col = pal.color(QPalette::Active, QColorGroup::Background);
+ pal.setColor(QPalette::Active, QColorGroup::Button, col);
+ this->setPalette(pal);
@@ -66,4 +67,4 @@ this->setPalette(pal);
-
Frame4 = new QFrame( this, "Frame4" );
+ Frame4->setPalette( pal );
Frame4->setFrameShape( QScrollView::StyledPanel );
@@ -104,3 +105,3 @@ this->setPalette(pal);
TextLabel1->setBackgroundOrigin( QLabel::ParentOrigin );
- TextLabel1->setTextFormat( QLabel::AutoText );
+ TextLabel1->setTextFormat( RichText );
@@ -113,5 +114,3 @@ this->setPalette(pal);
TodoButton->setGeometry( QRect( 2, 4, 36, 32 ) );
- //TodoButton->setBackgroundMode(NoBackground);
TodoButton->setPalette( pal );
- //TodoButton->setBackgroundOrigin( QPushButton::WidgetOrigin );
TodoButton->setPixmap( todo );
@@ -127,3 +126,2 @@ this->setPalette(pal);
PushButton1->setGeometry( QRect( 216, 68, 25, 21 ) );
- //PushButton1->setBackgroundOrigin( QPushButton::WidgetOrigin );
PushButton1->setPixmap( config );
@@ -137,7 +135,5 @@ this->setPalette(pal);
MailFrame->setFrameShadow( QScrollView::Sunken );
- //MailFrame->setBackgroundOrigin( QScrollView::ParentOrigin );
-
+
MailButton = new QPushButton (MailFrame, "MailButton" );
- MailButton->setGeometry( QRect( 2, 10, 36, 19 ) );
- //MailButton->setBackgroundOrigin( QPushButton::WidgetOrigin );
+ MailButton->setGeometry( QRect( 2, 3, 36, 19 ) );
MailButton->setPalette( pal );
@@ -147,10 +143,7 @@ this->setPalette(pal);
MailField = new QLabel( MailFrame, "DatesField" );
- MailField->setGeometry( QRect( 40, 10, 203, 120 ) );
+ MailField->setGeometry( QRect( 40, 4, 203, 120 ) );
MailField->setText( tr( "Opiemail not installed" ) );
MailField->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) );
- MailField->setMaximumHeight(15);
- MailField->setMinimumHeight(10);
-
-
-
+ MailField->setMaximumHeight(40);
+ MailField->setMinimumHeight(30);
@@ -160,7 +153,6 @@ this->setPalette(pal);
layout->addWidget(Frame15);
- //layout->addWidget(split);
- layout->setStretchFactor(Frame4,4);
+ layout->setStretchFactor(Frame4,5);
layout->setStretchFactor(MailFrame,1);
- layout->setStretchFactor(Frame15,3);
+ layout->setStretchFactor(Frame15,4);
}
@@ -172,3 +164,2 @@ TodayBase::~TodayBase()
{
-
}