Commit 86e597fd authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Wrap key and values in info sidebar.

BUG:183302

svn path=/trunk/KDE/kdegraphics/gwenview/; revision=955574
parent fe1cccfc
......@@ -29,7 +29,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// KDE
#include <kfileitem.h>
#include <klocale.h>
#include <ksqueezedtextlabel.h>
#include <kwordwrap.h>
// Local
......@@ -72,12 +71,13 @@ public:
"%1:", key);
QLabel* keyLabel = new QLabel;
keyLabel->setWordWrap(true);
keyLabel->setText(keyString);
keyLabel->setAlignment(Qt::AlignRight);
KSqueezedTextLabel* valueLabel = new KSqueezedTextLabel;
valueLabel->setTextElideMode(Qt::ElideRight);
QLabel* valueLabel = new QLabel;
valueLabel->setWordWrap(true);
valueLabel->setText(value);
valueLabel->setFocusPolicy(Qt::NoFocus);
mLayout->addRow(keyLabel, valueLabel);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment