summaryrefslogtreecommitdiff
path: root/core
authorharlekin <harlekin>2003-04-10 15:38:16 (UTC)
committer harlekin <harlekin>2003-04-10 15:38:16 (UTC)
commit101e039ba53d4ccbe5b46575bb56c07f6f544db6 (patch) (side-by-side diff)
treea190650df1a47f9409b6f414f11708be33bc01c3 /core
parentb934e2eeea5fb58fa637a02985f8c805f632cb39 (diff)
downloadopie-101e039ba53d4ccbe5b46575bb56c07f6f544db6.zip
opie-101e039ba53d4ccbe5b46575bb56c07f6f544db6.tar.gz
opie-101e039ba53d4ccbe5b46575bb56c07f6f544db6.tar.bz2
fixes for bigger fonts
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/todaybase.cpp8
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 )
cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) );
pal2.setActive( cg );
// today logo
Frame = new QLabel( this, "Frame" );
Frame->setPalette( pal2 );
Frame->setFrameShape( QFrame::StyledPanel );
Frame->setFrameShadow( QFrame::Raised );
Frame->setLineWidth( 0 );
QHBoxLayout *frameLayout = new QHBoxLayout( Frame );
QVBox *box1 = new QVBox( Frame );
- box1->setMinimumWidth( 100 );
+
// Today text
TodayLabel = new QLabel( box1, "TodayText" );
QFont TodayLabel_font( TodayLabel->font() );
TodayLabel_font.setBold( TRUE );
TodayLabel_font.setPointSize( 40 );
TodayLabel->setFont( TodayLabel_font );
TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin );
TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" );
// date
DateLabel = new QLabel( box1, "TextLabel1" );
QFont DateLabel_font( DateLabel->font() );
@@ -74,35 +74,33 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
DateLabel->setBackgroundOrigin( QLabel::ParentOrigin );
DateLabel->setTextFormat( RichText );
// Opiezilla
Opiezilla = new QLabel( Frame, "OpieZilla" );
Opiezilla->setPixmap( opiezilla );
QWhatsThis::add( Opiezilla , tr( "Today by Maximilian Reiß" ) );
Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin );
// Ownerfield
OwnerField = new OClickableLabel( this , "Owner" );
- OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) );
OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) );
- OwnerField->setMaximumHeight(12);
// config
ConfigButton = new OClickableLabel ( Frame, "PushButton1" );
ConfigButton->setPixmap( config );
QWhatsThis::add( ConfigButton, tr( "Click here to get to the config dialog" ) );
ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin );
- frameLayout->addWidget( box1 );
- frameLayout->addStretch( 2 );
+ frameLayout->addWidget( box1, 1 );
+ frameLayout->addStretch( 1 );
frameLayout->addWidget( ConfigButton, 0, AlignBottom );
frameLayout->addWidget( Opiezilla );
}
/**
* D' tor
*/
TodayBase::~TodayBase() {
}