SVN commit 868104 by danimo: better looks. If someone feel like making the lines nice gradients, go for it. M +13 -9 summary.cpp --- trunk/KDE/kdepim/kontactinterfaces/summary.cpp #868103:868104 @@ -82,16 +82,21 @@ QWidget *Summary::createHeader( QWidget *parent, const QString &iconname, const QString &heading ) { + setStyleSheet( "KHBox {" + "border: 1px solid palette(window);" + "border-top: 0px solid white;" + "border-left: 0px solid white;" + "border-right: 0px solid white;" + "font: bold large;" + "padding: 2px;" + "}" + "KHBox > QLabel { font: bold larger; } " + ); + KHBox *hbox = new KHBox( parent ); - hbox->setMargin( 2 ); - hbox->setBackgroundRole( QPalette::Window ); - hbox->setForegroundRole( QPalette::WindowText ); - hbox->setAutoFillBackground( true ); + //hbox->setMargin( 2 ); + //hbox->setAutoFillBackground( true ); - QFont boldFont = KGlobalSettings::generalFont(); - boldFont.setBold( true ); - boldFont.setPointSize( boldFont.pointSize() + 2 ); - QLabel *label = new QLabel( hbox ); label->setPixmap( KIconLoader::global()->loadIcon( iconname, KIconLoader::Toolbar ) ); @@ -101,7 +106,6 @@ label = new QLabel( heading, hbox ); label->setAlignment( Qt::AlignLeft | Qt::AlignVCenter ); label->setIndent( KDialog::spacingHint() ); - label->setFont( boldFont ); hbox->setMaximumHeight( hbox->minimumSizeHint().height() );