summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-03-30 22:44:10 (UTC)
committer harlekin <harlekin>2003-03-30 22:44:10 (UTC)
commita014a9f0d0fe82dc5daf2b37ad4458cc5722db0d (patch) (unidiff)
treeb3826416037c7650c3cc0fd9f0038ed705f3cc1c
parent0b6d158a2a2b52d83ad4b1046ce9dbffff2190e6 (diff)
downloadopie-a014a9f0d0fe82dc5daf2b37ad4458cc5722db0d.zip
opie-a014a9f0d0fe82dc5daf2b37ad4458cc5722db0d.tar.gz
opie-a014a9f0d0fe82dc5daf2b37ad4458cc5722db0d.tar.bz2
layout fix, closes bug #761
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp10
-rw-r--r--core/pim/today/todaybase.cpp1
2 files changed, 6 insertions, 5 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 4ec690c..83d8601 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -365,21 +365,23 @@ void Today::startConfig() {
365 * 365 *
366 */ 366 */
367void Today::refresh() { 367void Today::refresh() {
368 368
369 init(); 369 init();
370 370
371 QValueList<TodayPlugin>::Iterator it; 371 QValueList<TodayPlugin>::Iterator it;
372 for ( it = pluginList.begin(); it != pluginList.end(); ++it ) { 372 for ( it = pluginList.begin(); it != pluginList.end(); ++it ) {
373 if ( !(*it).excludeRefresh ) { 373 if ( !(*it).excludeRefresh ) {
374 (*it).guiPart->refresh(); 374 (*it).guiPart->refresh();
375 qDebug( "refresh" ); 375 layout->addWidget( (*it).guiBox );
376 } 376 qDebug( "refresh" );
377 }
377 } 378 }
379 layout->addStretch(0);
378} 380}
379 381
380void Today::startApplication() { 382void Today::startApplication() {
381 QCopEnvelope e( "QPE/System", "execute(QString)" ); 383 QCopEnvelope e( "QPE/System", "execute(QString)" );
382 e << QString( sender()->name() ); 384 e << QString( sender()->name() );
383} 385}
384 386
385/** 387/**
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index 7beed34..41daa7d 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -48,17 +48,16 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags )
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 Frame->setMaximumHeight( 50 );
57 56
58 QHBoxLayout *frameLayout = new QHBoxLayout( Frame ); 57 QHBoxLayout *frameLayout = new QHBoxLayout( Frame );
59 QVBox *box1 = new QVBox( Frame ); 58 QVBox *box1 = new QVBox( Frame );
60 box1->setMinimumWidth( 100 ); 59 box1->setMinimumWidth( 100 );
61 // Today text 60 // Today text
62 TodayLabel = new QLabel( box1, "TodayText" ); 61 TodayLabel = new QLabel( box1, "TodayText" );
63 QFont TodayLabel_font( TodayLabel->font() ); 62 QFont TodayLabel_font( TodayLabel->font() );
64 TodayLabel_font.setBold( TRUE ); 63 TodayLabel_font.setBold( TRUE );