Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Gwenview
Commits
86e597fd
Commit
86e597fd
authored
Apr 18, 2009
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
app/infocontextmanageritem.cpp
View file @
86e597fd
...
...
@@ -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
);
KSqueezedText
Label
*
valueLabel
=
new
KSqueezedText
Label
;
valueLabel
->
set
TextElideMode
(
Qt
::
ElideRight
);
Q
Label
*
valueLabel
=
new
Q
Label
;
valueLabel
->
set
WordWrap
(
true
);
valueLabel
->
setText
(
value
);
valueLabel
->
setFocusPolicy
(
Qt
::
NoFocus
);
mLayout
->
addRow
(
keyLabel
,
valueLabel
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment