projects
/
dorian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make orientation switch explicit on Symbian, too.
[dorian]
/
chaptersdialog.h
diff --git
a/chaptersdialog.h
b/chaptersdialog.h
index
018470f
..
a29d887
100644
(file)
--- a/
chaptersdialog.h
+++ b/
chaptersdialog.h
@@
-1,15
+1,16
@@
#ifndef CHAPTERSDIALOG_H
#define CHAPTERSDIALOG_H
#ifndef CHAPTERSDIALOG_H
#define CHAPTERSDIALOG_H
-#include <QMainWindow>
+#include <QStringList>
+
+#include "listwindow.h"
class QWidget;
class QWidget;
-class QListWidget;
-class QListWidgetItem;
+class QModelIndex;
class Book;
/** Display book chapters. */
class Book;
/** Display book chapters. */
-class ChaptersDialog: public QMainWindow
+class ChaptersDialog: public ListWindow
{
Q_OBJECT
{
Q_OBJECT
@@
-20,12
+21,10
@@
signals:
void goToChapter(int index);
public slots:
void goToChapter(int index);
public slots:
- void onItemActivated(QListWidgetItem *);
- void onClose();
+ void onItemActivated(const QModelIndex &index);
protected:
protected:
- Book *book;
- QListWidget *list;
+ QStringList data;
};
#endif // CHAPTERSDIALOG_H
};
#endif // CHAPTERSDIALOG_H