summaryrefslogtreecommitdiff
path: root/core/pim/today/todaybase.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index 74f4fa0..800ca5d 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -31,12 +31,14 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo
QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla
QPixmap config = Resource::loadPixmap( "today/config" ); // config icon
layout = new QVBoxLayout( this );
+ QVBoxLayout *mainLayout = new QVBoxLayout( this );
+
QPalette pal = this->palette();
QColor col = pal.color( QPalette::Active, QColorGroup::Background );
pal.setColor( QPalette::Active, QColorGroup::Button, col );
pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
pal.setColor( QPalette::Normal, QColorGroup::Button, col );
pal.setColor( QPalette::Disabled, QColorGroup::Button, col );
@@ -90,16 +92,12 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
// config
ConfigButton = new OClickableLabel ( Frame, "PushButton1" );
ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 30, 25, 21 ) );
ConfigButton->setPixmap( config );
ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin );
-
- // -- layout --
- layout->addWidget( Frame );
- layout->addWidget( OwnerField );
}
/**
* D' tor
*/
TodayBase::~TodayBase() {