Development

This commit is contained in:
dsc
2021-04-14 22:00:25 +02:00
parent c3723ac58a
commit c0cb90bf79
32 changed files with 537 additions and 543 deletions
+6 -1
View File
@@ -51,7 +51,12 @@ int TransactionHistoryModel::columnCount(const QModelIndex &parent) const {
return 0;
}
return TransactionInfoRole::COUNT;
// When wowlet is in QtWidgets mode, it will only use the first 5 columns,
// the rest should be hidden, because it shows in the GUI. So by default we'll
// use 5 as column count. When in QtQuick (QML) mode, we want to expose more columns
// so we can change the column count here.
return AppContext::isQML ? this->COUNT : 5;
}
QVariant TransactionHistoryModel::data(const QModelIndex &index, int role) const {