[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepimlibs/frameworks] kontactinterface/src: KHBox--
From: Montel Laurent <montel () kde ! org>
Date: 2014-04-15 5:46:46
Message-ID: E1WZwCk-00017f-3F () scm ! kde ! org
[Download RAW message or body]
Git commit ff7ef4bea466ad34cabb7214ba8ab9655eb242d1 by Montel Laurent.
Committed on 15/04/2014 at 05:39.
Pushed by mlaurent into branch 'frameworks'.
KHBox--
M +12 -6 kontactinterface/src/summary.cpp
http://commits.kde.org/kdepimlibs/ff7ef4bea466ad34cabb7214ba8ab9655eb242d1
diff --git a/kontactinterface/src/summary.cpp b/kontactinterface/src/summary.cpp
index 7aa679c..c3c7684 100644
--- a/kontactinterface/src/summary.cpp
+++ b/kontactinterface/src/summary.cpp
@@ -32,9 +32,9 @@
#include <QDragEnterEvent>
#include <QMimeData>
#include <QDropEvent>
+#include <QHBoxLayout>
#include <KGlobalSettings>
-#include <KHBox>
#include <KIconLoader>
#include <KDialog>
@@ -93,21 +93,27 @@ QWidget *Summary::createHeader( QWidget *parent, const QString &iconname, const
"}"
"KHBox > QLabel { font: bold larger; } ") );
- KHBox *hbox = new KHBox( parent );
+ QWidget *box = new QWidget(parent);
+ QHBoxLayout *hbox = new QHBoxLayout;
+ hbox->setMargin(0);
+ hbox->setSpacing(0);
+ box->setLayout(hbox);
- QLabel *label = new QLabel( hbox );
+ QLabel *label = new QLabel( box );
+ hbox->addWidget(label);
label->setPixmap( KIconLoader::global()->loadIcon( iconname, KIconLoader::Toolbar ) );
label->setFixedSize( label->sizeHint() );
label->setAcceptDrops( true );
- label = new QLabel( heading, hbox );
+ label = new QLabel( heading, box );
+ hbox->addWidget(label);
label->setAlignment( Qt::AlignLeft | Qt::AlignVCenter );
label->setIndent( KDialog::spacingHint() );
- hbox->setMaximumHeight( hbox->minimumSizeHint().height() );
+ box->setMaximumHeight( box->minimumSizeHint().height() );
- return hbox;
+ return box;
}
QStringList Summary::configModules() const
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic