[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kontact
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2004-01-06 16:47:35
Message-ID: 20040106164735.0C41A9398 () office ! kde ! org
[Download RAW message or body]

CVS commit by tokoe: 

Makes it look a bit nicer with minimum height of the headers and margin


  M +3 -0      interfaces/summary.cpp   1.4
  M +0 -15     plugins/summary/summaryview_part.cpp   1.32
  M +1 -0      plugins/weather/summarywidget.cpp   1.15


--- kdepim/kontact/interfaces/summary.cpp  #1.3:1.4
@@ -44,4 +44,5 @@ QWidget* Summary::createHeader(QWidget *
 {
   QHBox* hbox = new QHBox( parent );
+  hbox->setMargin( 2 );
 
   QFont boldFont;
@@ -63,4 +64,6 @@ QWidget* Summary::createHeader(QWidget *
   hbox->setPaletteBackgroundColor( colorGroup().mid() );
 
+  hbox->setMaximumHeight( hbox->minimumSizeHint().height() );
+
   return hbox;
 }

--- kdepim/kontact/plugins/summary/summaryview_part.cpp  #1.31:1.32
@@ -183,14 +183,4 @@ void SummaryViewPart::getWidgets()
       currentRow = 2;
       column += 2;
-    } else {
-      if ( i < mSummaries.count() - 1 ) {
-        // Add horizontal line, when widget is not the last in the column.
-        hline = new QFrame( mFrame );
-        hline->setFrameStyle(/* QFrame::HLine |*/ QFrame::Plain );
-        hline->setMaximumHeight( KDialog::spacingHint() );
-        hline->setMinimumHeight( KDialog::spacingHint() );
-        hline->hide();
-        mLayout->addWidget( hline, currentRow++, column );
-      }
     }
   }
@@ -201,9 +191,4 @@ void SummaryViewPart::getWidgets()
   mLayout->addMultiCellWidget( vline, 2, maxRow, 1, 1 );
 
-  // Add line below all summaries
-  hline = new QFrame( mFrame );
-  hline->setFrameStyle( QFrame::HLine | QFrame::Plain );
-  mLayout->addMultiCellWidget( hline, maxRow+1, maxRow+1, 0, 2 );
-
   // space out remaining space to avoid ugly stretching
   mLayout->addItem(new QSpacerItem( 1, 1, QSizePolicy::MinimumExpanding,

--- kdepim/kontact/plugins/weather/summarywidget.cpp  #1.14:1.15
@@ -43,4 +43,5 @@ SummaryWidget::SummaryWidget( QWidget *p
 {
   mLayout = new QVBoxLayout( this );
+  mLayout->setAlignment( Qt::AlignTop );
 
   QPixmap icon = KGlobal::iconLoader()->loadIcon( "kweather", KIcon::Desktop, KIcon::SizeMedium );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic