X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=bookmarkinfodialog.cpp;h=18c16f7b64c14cb0bd39f770adddccb3382012a0;hb=e5e113cbbbd0691ac179e311fe57082f992a63a0;hp=847cd3b5f2b410152f1d7e8bc60c551b927927e4;hpb=3ce29c18fb643d34b86baab846bce2804479db48;p=dorian diff --git a/bookmarkinfodialog.cpp b/bookmarkinfodialog.cpp index 847cd3b..18c16f7 100644 --- a/bookmarkinfodialog.cpp +++ b/bookmarkinfodialog.cpp @@ -8,16 +8,20 @@ BookmarkInfoDialog::BookmarkInfoDialog(Book *b, int i, QWidget *parent): book(b), index(i) { - setWindowTitle(tr("Bookmark Details")); + setWindowTitle(tr("Bookmark details")); Book::Bookmark bookmark = book->bookmarks()[index]; 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]; - label += ", in\n\"" + book->content[chapterId].name + "\""; + label += "In\"" + book->content[chapterId].name + "\""; } QLabel *info = new QLabel(label, this); addWidget(info);