Fix forward navigation control on Linux.
[dorian] / chaptersdialog.h
1 #ifndef CHAPTERSDIALOG_H
2 #define CHAPTERSDIALOG_H
3
4 #include <QStringList>
5
6 #include "listwindow.h"
7
8 class QWidget;
9 class QModelIndex;
10 class Book;
11
12 /** Display book chapters. */
13 class ChaptersDialog: public ListWindow
14 {
15     Q_OBJECT
16
17 public:
18     explicit ChaptersDialog(Book *book, QWidget *parent = 0);
19
20 signals:
21     void goToChapter(int index);
22
23 public slots:
24     void onItemActivated(const QModelIndex &index);
25
26 protected:
27     QStringList data;
28 };
29
30 #endif // CHAPTERSDIALOG_H