Show button for full screen mode on Symbian, too.
[dorian] / infodialog.cpp
index 621eaaa..904eb79 100644 (file)
@@ -46,13 +46,29 @@ InfoDialog::InfoDialog(Book *b, QWidget *parent, bool showButtons):
             rights->setWordWrap(true);
             addWidget(rights);
         }
+        if (book->dateAdded.isValid()) {
+            QLabel *added = new QLabel("Added to library: " +
+             book->dateAdded.toLocalTime().toString(Qt::SystemLocaleShortDate),
+             this);
+            added->setWordWrap(true);
+            addWidget(added);
+        }
+        if (book->dateOpened.isValid()) {
+            QLabel *opened = new QLabel("Last read: " +
+             book->dateOpened.toLocalTime().toString(Qt::SystemLocaleShortDate),
+             this);
+            opened->setWordWrap(true);
+            addWidget(opened);
+        }
         addStretch();
     }
 
     addButton(tr("Read"), this, SLOT(onReadBook()),
               QDialogButtonBox::ActionRole);
+#ifndef Q_OS_SYMBIAN
     addButton(tr("Delete"), this, SLOT(onRemoveBook()),
               QDialogButtonBox::DestructiveRole);
+#endif
 }
 
 void InfoDialog::onReadBook()