}
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);
}
addButton(tr("Read"), this, SLOT(onReadBook()),
QDialogButtonBox::ActionRole);
+#ifndef Q_OS_SYMBIAN
addButton(tr("Delete"), this, SLOT(onRemoveBook()),
QDialogButtonBox::DestructiveRole);
+#endif
}
void InfoDialog::onReadBook()