projects
/
dorian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Notes in bookmarks.
[dorian]
/
bookmarksdialog.cpp
diff --git
a/bookmarksdialog.cpp
b/bookmarksdialog.cpp
index
6e22e93
..
9902643
100644
(file)
--- a/
bookmarksdialog.cpp
+++ b/
bookmarksdialog.cpp
@@
-25,13
+25,14
@@
BookmarksDialog::BookmarksDialog(Book *book_, QWidget *parent):
QString label("At ");
label += QString::number((int)(100 * book_->
getProgress(bookmark.part, bookmark.pos))) + "%";
QString label("At ");
label += QString::number((int)(100 * book_->
getProgress(bookmark.part, bookmark.pos))) + "%";
+ if (!bookmark.note.isEmpty()) {
+ label += ": " + bookmark.note;
+ }
+ label += "\n";
int chapterIndex = book_->chapterFromPart(bookmark.part);
if (chapterIndex != -1) {
QString chapterId = book_->chapters[chapterIndex];
int chapterIndex = book_->chapterFromPart(bookmark.part);
if (chapterIndex != -1) {
QString chapterId = book_->chapters[chapterIndex];
- label += ", in \"" + book_->content[chapterId].name + "\"";
- }
- if (!bookmark.note.isEmpty()) {
- label += "\n" + bookmark.note;
+ label += "In \"" + book_->content[chapterId].name + "\"";
}
data.append(label);
}
}
data.append(label);
}