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. ...@@ -29,7 +29,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// KDE // KDE
#include <kfileitem.h> #include <kfileitem.h>
#include <klocale.h> #include <klocale.h>
#include <ksqueezedtextlabel.h>
#include <kwordwrap.h> #include <kwordwrap.h>
// Local // Local
...@@ -72,12 +71,13 @@ public: ...@@ -72,12 +71,13 @@ public:
"%1:", key); "%1:", key);
QLabel* keyLabel = new QLabel; QLabel* keyLabel = new QLabel;
keyLabel->setWordWrap(true);
keyLabel->setText(keyString); keyLabel->setText(keyString);
keyLabel->setAlignment(Qt::AlignRight);
KSqueezedTextLabel* valueLabel = new KSqueezedTextLabel; QLabel* valueLabel = new QLabel;
valueLabel->setTextElideMode(Qt::ElideRight); valueLabel->setWordWrap(true);
valueLabel->setText(value); valueLabel->setText(value);
valueLabel->setFocusPolicy(Qt::NoFocus);
mLayout->addRow(keyLabel, valueLabel); 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