projects
/
dorian
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb18722
)
Enable word wrap in book info dialog.
author
Akos Polster
<akos@pipacs.com>
Sun, 5 Dec 2010 18:23:33 +0000
(19:23 +0100)
committer
Akos Polster
<akos@pipacs.com>
Sun, 5 Dec 2010 18:23:33 +0000
(19:23 +0100)
infodialog.cpp
patch
|
blob
|
history
diff --git
a/infodialog.cpp
b/infodialog.cpp
index
378c77c
..
a9861c7
100644
(file)
--- a/
infodialog.cpp
+++ b/
infodialog.cpp
@@
-14,13
+14,16
@@
InfoDialog::InfoDialog(Book *b, QWidget *parent, bool showButtons):
if (book) {
QLabel *title = new QLabel(book->title, this);
if (book) {
QLabel *title = new QLabel(book->title, this);
+ title->setWordWrap(true);
addWidget(title);
if (book->subject != "") {
QLabel *subject = new QLabel(book->subject, this);
addWidget(title);
if (book->subject != "") {
QLabel *subject = new QLabel(book->subject, this);
+ subject->setWordWrap(true);
addWidget(subject);
}
if (book->creators.size()) {
QLabel *creators = new QLabel(this);
addWidget(subject);
}
if (book->creators.size()) {
QLabel *creators = new QLabel(this);
+ creators->setWordWrap(true);
QString c = "By " + book->creators[0];
for (int i = 1; i < book->creators.size(); i++) {
c += ", " + book->creators[i];
QString c = "By " + book->creators[0];
for (int i = 1; i < book->creators.size(); i++) {
c += ", " + book->creators[i];
@@
-29,18
+32,22
@@
InfoDialog::InfoDialog(Book *b, QWidget *parent, bool showButtons):
addWidget(creators);
}
QLabel *path = new QLabel("File: " + book->path(), this);
addWidget(creators);
}
QLabel *path = new QLabel("File: " + book->path(), this);
+ path->setWordWrap(true);
addWidget(path);
if (book->publisher != "") {
QLabel *publisher =
new QLabel("Published by " + book->publisher, this);
addWidget(path);
if (book->publisher != "") {
QLabel *publisher =
new QLabel("Published by " + book->publisher, this);
+ publisher->setWordWrap(true);
addWidget(publisher);
}
if (book->source != "") {
QLabel *source = new QLabel("Source: " + book->source, this);
addWidget(publisher);
}
if (book->source != "") {
QLabel *source = new QLabel("Source: " + book->source, this);
+ source->setWordWrap(true);
addWidget(source);
}
if (book->rights != "") {
QLabel *rights = new QLabel(book->rights, this);
addWidget(source);
}
if (book->rights != "") {
QLabel *rights = new QLabel(book->rights, this);
+ rights->setWordWrap(true);
addWidget(rights);
}
addStretch();
addWidget(rights);
}
addStretch();