#include "chaptersdialog.h"
#include "book.h"
-#include "listview.h"
-ChaptersDialog::ChaptersDialog(Book *book, QWidget *parent): ListWindow(parent)
+ChaptersDialog::ChaptersDialog(Book *book, QWidget *parent):
+ ListWindow(tr("(No chapters)"), parent)
{
setWindowTitle(tr("Chapters"));
if (book) {
}
QStringListModel *model = new QStringListModel(data, this);
setModel(model);
- // FIXME
- // connect(list, SIGNAL(activated(const QModelIndex &)),
- // this, SLOT(onItemActivated(const QModelIndex &)));
+ connect(this, SIGNAL(activated(const QModelIndex &)),
+ this, SLOT(onItemActivated(const QModelIndex &)));
}
void ChaptersDialog::onItemActivated(const QModelIndex &index)