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()