X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=chaptersdialog.h;h=a29d887364598af64fe0e7a488d60d509daeae98;hb=9d6624b77d5ce16de6f3f722fd500f1a8ff6418f;hp=03d18ff363dedbe1b32df08153ca0b977b4da250;hpb=e6bc749e6467e4f7f2a36db5e8ef077e6fba983e;p=dorian diff --git a/chaptersdialog.h b/chaptersdialog.h index 03d18ff..a29d887 100644 --- a/chaptersdialog.h +++ b/chaptersdialog.h @@ -1,11 +1,12 @@ #ifndef CHAPTERSDIALOG_H #define CHAPTERSDIALOG_H +#include + #include "listwindow.h" class QWidget; -class QListWidget; -class QListWidgetItem; +class QModelIndex; class Book; /** Display book chapters. */ @@ -20,10 +21,10 @@ signals: void goToChapter(int index); public slots: - void onItemActivated(QListWidgetItem *); + void onItemActivated(const QModelIndex &index); protected: - QListWidget *list; + QStringList data; }; #endif // CHAPTERSDIALOG_H