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