rename db column to not conflict with qml. Make sure to call select on first load of table models to poulate.

Make model classes have some functions accessible from qml. Add custom model method that allows QML to easily add new items.
Add Card layout that contains data from db.
This commit is contained in:
2020-06-07 22:36:32 -04:00
parent 6edccb050b
commit 5b8cd46e80
6 changed files with 61 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ QHash<int, QByteArray> SqlServiceRecord::roleNames() const
}
QVariant SqlServiceRecord::data(const QModelIndex& index, int role) const
QVariant SqlServiceRecord::data ( const QModelIndex& index, int role ) const
{
QVariant value = QSqlQueryModel::data(index, role);
if(role < Qt::UserRole)