-#ifdef Q_WS_MAEMO_5
- setAttribute(Qt::WA_Maemo5StackedWindow, true);
-#endif
- setWindowTitle(tr("Bookmarks"));
-
- QFrame *frame = new QFrame(this);
- setCentralWidget(frame);
- QHBoxLayout *horizontalLayout = new QHBoxLayout(this);
- frame->setLayout(horizontalLayout);
-
- list = new QListWidget(this);
- list->setSelectionMode(QAbstractItemView::SingleSelection);
- foreach (QString id, book->toc) {
- QString contentTitle = book->content[id].name;
- (void)new QListWidgetItem(contentTitle, list);
+ setWindowTitle(tr("Chapters"));
+ if (book) {
+ foreach (QString id, book->chapters) {
+ QString contentTitle = book->content[id].name;
+ data.append(contentTitle);
+ }