Added some comments.

This commit is contained in:
Martin Rotter 2017-09-23 21:07:59 +02:00
parent b31881df77
commit 3b4a4d5ed1

View File

@ -47,7 +47,11 @@ Category::Category(const QSqlRecord& record) : Category(nullptr) {
setCreationDate(TextFactory::parseDateTime(record.value(CAT_DB_DCREATED_INDEX).value<qint64>()).toLocalTime());
setIcon(qApp->icons()->fromByteArray(record.value(CAT_DB_ICON_INDEX).toByteArray()));
QIcon loaded_icon = qApp->icons()->fromByteArray(record.value(CAT_DB_ICON_INDEX).toByteArray());
if (!loaded_icon.isNull()) {
setIcon(loaded_icon);
}
}
Category::~Category() {}