-#include <QtGui>
+#include <QStringListModel>
#include "chaptersdialog.h"
#include "book.h"
list = new ListView;
list->setSelectionMode(QAbstractItemView::SingleSelection);
list->setModel(model);
- list->setUniformItemSizes(true);
addList(list);
connect(list, SIGNAL(activated(const QModelIndex &)),
this, SLOT(onItemActivated(const QModelIndex &)));
-
-#if !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN)
- addAction(tr("Close"), this, SLOT(close()), QString(),
- QDialogButtonBox::RejectRole);
-#endif // Q_WS_MAEMO_5
}
void ChaptersDialog::onItemActivated(const QModelIndex &index)