author | harlekin <harlekin> | 2003-04-10 15:38:16 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-10 15:38:16 (UTC) |
commit | 101e039ba53d4ccbe5b46575bb56c07f6f544db6 (patch) (unidiff) | |
tree | a190650df1a47f9409b6f414f11708be33bc01c3 | |
parent | b934e2eeea5fb58fa637a02985f8c805f632cb39 (diff) | |
download | opie-101e039ba53d4ccbe5b46575bb56c07f6f544db6.zip opie-101e039ba53d4ccbe5b46575bb56c07f6f544db6.tar.gz opie-101e039ba53d4ccbe5b46575bb56c07f6f544db6.tar.bz2 |
fixes for bigger fonts
-rw-r--r-- | core/pim/today/todaybase.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 41daa7d..feb9a84 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -47,25 +47,25 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | |||
47 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); | 47 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); |
48 | pal2.setActive( cg ); | 48 | pal2.setActive( cg ); |
49 | 49 | ||
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 | 56 | ||
57 | QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); | 57 | QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); |
58 | QVBox *box1 = new QVBox( Frame ); | 58 | QVBox *box1 = new QVBox( Frame ); |
59 | box1->setMinimumWidth( 100 ); | 59 | |
60 | // Today text | 60 | // Today text |
61 | TodayLabel = new QLabel( box1, "TodayText" ); | 61 | TodayLabel = new QLabel( box1, "TodayText" ); |
62 | QFont TodayLabel_font( TodayLabel->font() ); | 62 | QFont TodayLabel_font( TodayLabel->font() ); |
63 | TodayLabel_font.setBold( TRUE ); | 63 | TodayLabel_font.setBold( TRUE ); |
64 | TodayLabel_font.setPointSize( 40 ); | 64 | TodayLabel_font.setPointSize( 40 ); |
65 | TodayLabel->setFont( TodayLabel_font ); | 65 | TodayLabel->setFont( TodayLabel_font ); |
66 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | 66 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); |
67 | TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); | 67 | TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); |
68 | 68 | ||
69 | // date | 69 | // date |
70 | DateLabel = new QLabel( box1, "TextLabel1" ); | 70 | DateLabel = new QLabel( box1, "TextLabel1" ); |
71 | QFont DateLabel_font( DateLabel->font() ); | 71 | QFont DateLabel_font( DateLabel->font() ); |
@@ -74,35 +74,33 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | |||
74 | DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | 74 | DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); |
75 | DateLabel->setTextFormat( RichText ); | 75 | DateLabel->setTextFormat( RichText ); |
76 | 76 | ||
77 | // Opiezilla | 77 | // Opiezilla |
78 | Opiezilla = new QLabel( Frame, "OpieZilla" ); | 78 | Opiezilla = new QLabel( Frame, "OpieZilla" ); |
79 | Opiezilla->setPixmap( opiezilla ); | 79 | Opiezilla->setPixmap( opiezilla ); |
80 | QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) ); | 80 | QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) ); |
81 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); | 81 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); |
82 | 82 | ||
83 | 83 | ||
84 | // Ownerfield | 84 | // Ownerfield |
85 | OwnerField = new OClickableLabel( this , "Owner" ); | 85 | OwnerField = new OClickableLabel( this , "Owner" ); |
86 | OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) ); | ||
87 | OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); | 86 | OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); |
88 | OwnerField->setMaximumHeight(12); | ||
89 | 87 | ||
90 | // config | 88 | // config |
91 | ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); | 89 | ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); |
92 | ConfigButton->setPixmap( config ); | 90 | ConfigButton->setPixmap( config ); |
93 | QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) ); | 91 | QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) ); |
94 | ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); | 92 | ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); |
95 | 93 | ||
96 | frameLayout->addWidget( box1 ); | 94 | frameLayout->addWidget( box1, 1 ); |
97 | frameLayout->addStretch( 2 ); | 95 | frameLayout->addStretch( 1 ); |
98 | frameLayout->addWidget( ConfigButton, 0, AlignBottom ); | 96 | frameLayout->addWidget( ConfigButton, 0, AlignBottom ); |
99 | frameLayout->addWidget( Opiezilla ); | 97 | frameLayout->addWidget( Opiezilla ); |
100 | } | 98 | } |
101 | 99 | ||
102 | 100 | ||
103 | /** | 101 | /** |
104 | * D' tor | 102 | * D' tor |
105 | */ | 103 | */ |
106 | TodayBase::~TodayBase() { | 104 | TodayBase::~TodayBase() { |
107 | } | 105 | } |
108 | 106 | ||