23 lines
776 B
Diff
23 lines
776 B
Diff
From: Aurélien Gâteau <agateau@kde.org>
|
|
Date: Mon, 30 Apr 2012 10:26:55 +0000
|
|
Subject: Fix icon position
|
|
X-Git-Url: http://quickgit.kde.org/?p=kdelibs.git&a=commitdiff&h=6e7ce4b0462d52aa72184813a399c6751aa8d391
|
|
---
|
|
Fix icon position
|
|
---
|
|
|
|
|
|
--- a/kdeui/widgets/kmessagewidget.cpp
|
|
+++ b/kdeui/widgets/kmessagewidget.cpp
|
|
@@ -116,7 +116,8 @@ void KMessageWidgetPrivate::createLayout
|
|
|
|
if (wordWrap) {
|
|
QGridLayout* layout = new QGridLayout(content);
|
|
- layout->addWidget(iconLabel, 0, 0);
|
|
+ // Set alignment to make sure icon does not move down if text wraps
|
|
+ layout->addWidget(iconLabel, 0, 0, 1, 1, Qt::AlignHCenter | Qt::AlignTop);
|
|
layout->addWidget(textLabel, 0, 1);
|
|
|
|
QHBoxLayout* buttonLayout = new QHBoxLayout;
|
|
|