Added some comments.
This commit is contained in:
parent
b31881df77
commit
3b4a4d5ed1
1 changed files with 5 additions and 1 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Reference in a new issue