Diffstat (limited to 'core/pim/today/todaybase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todaybase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index c896463..7beed34 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -27,13 +27,13 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | |||
27 | : QWidget( parent, name, WStyle_ContextHelp ) { | 27 | : QWidget( parent, name, WStyle_ContextHelp ) { |
28 | 28 | ||
29 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 29 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
30 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 30 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla |
31 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon | 31 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon |
32 | 32 | ||
33 | layout = new QVBoxLayout( this ); | 33 | layout = 0L; |
34 | 34 | ||
35 | QPalette pal = this->palette(); | 35 | QPalette pal = this->palette(); |
36 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 36 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
37 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 37 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
38 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 38 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
39 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 39 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
@@ -50,15 +50,17 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | |||
50 | // today logo | 50 | // today logo |
51 | Frame = new QLabel( this, "Frame" ); | 51 | Frame = new QLabel( this, "Frame" ); |
52 | Frame->setPalette( pal2 ); | 52 | Frame->setPalette( pal2 ); |
53 | Frame->setFrameShape( QFrame::StyledPanel ); | 53 | Frame->setFrameShape( QFrame::StyledPanel ); |
54 | Frame->setFrameShadow( QFrame::Raised ); | 54 | Frame->setFrameShadow( QFrame::Raised ); |
55 | Frame->setLineWidth( 0 ); | 55 | Frame->setLineWidth( 0 ); |
56 | Frame->setMaximumHeight( 50 ); | ||
56 | 57 | ||
57 | QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); | 58 | QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); |
58 | QVBox *box1 = new QVBox( Frame ); | 59 | QVBox *box1 = new QVBox( Frame ); |
60 | box1->setMinimumWidth( 100 ); | ||
59 | // Today text | 61 | // Today text |
60 | TodayLabel = new QLabel( box1, "TodayText" ); | 62 | TodayLabel = new QLabel( box1, "TodayText" ); |
61 | QFont TodayLabel_font( TodayLabel->font() ); | 63 | QFont TodayLabel_font( TodayLabel->font() ); |
62 | TodayLabel_font.setBold( TRUE ); | 64 | TodayLabel_font.setBold( TRUE ); |
63 | TodayLabel_font.setPointSize( 40 ); | 65 | TodayLabel_font.setPointSize( 40 ); |
64 | TodayLabel->setFont( TodayLabel_font ); | 66 | TodayLabel->setFont( TodayLabel_font ); |