- setSelected(library->index(library->rowCount() - 1));
-}
-
-#ifndef Q_WS_MAEMO_5
-
-void LibraryDialog::onRemove()
-{
- QModelIndex current = sortedLibrary->mapToSource(list->currentIndex());
- if (current.isValid()) {
- Book *currentBook = Library::instance()->book(current);
- QString title = currentBook->name();
- if (QMessageBox::Yes ==
- QMessageBox::question(this, tr("Delete book"),
- tr("Delete book \"%1\" from library?").
- arg(currentBook->shortName()),
- QMessageBox::Yes | QMessageBox::No)) {
- Library::instance()->remove(current);
- }
- }
-}
-
-void LibraryDialog::onRead()
-{
- QModelIndex current = sortedLibrary->mapToSource(list->currentIndex());
- if (current.isValid()) {
- Library::instance()->setNowReading(current);
- }