X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=chaptersdialog.h;h=a29d887364598af64fe0e7a488d60d509daeae98;hb=4f302c4427507fec544f32b9003035e93f32b2e2;hp=018470f966fb0cd414cca3fadcd97546578c27dc;hpb=d9df29af0dd817928532966e8728e6f41469671a;p=dorian diff --git a/chaptersdialog.h b/chaptersdialog.h index 018470f..a29d887 100644 --- a/chaptersdialog.h +++ b/chaptersdialog.h @@ -1,15 +1,16 @@ #ifndef CHAPTERSDIALOG_H #define CHAPTERSDIALOG_H -#include +#include + +#include "listwindow.h" class QWidget; -class QListWidget; -class QListWidgetItem; +class QModelIndex; class Book; /** Display book chapters. */ -class ChaptersDialog: public QMainWindow +class ChaptersDialog: public ListWindow { Q_OBJECT @@ -20,12 +21,10 @@ signals: void goToChapter(int index); public slots: - void onItemActivated(QListWidgetItem *); - void onClose(); + void onItemActivated(const QModelIndex &index); protected: - Book *book; - QListWidget *list; + QStringList data; }; #endif // CHAPTERSDIALOG_H