@@ -254,8 +254,9 @@ void VersionList::setupAddedVersion(const int row, const Version::Ptr& version)
|
||||
|
||||
connect(version.get(), &Version::requiresChanged, this,
|
||||
[this, row]() { emit dataChanged(index(row), index(row), QVector<int>() << RequiresRole); });
|
||||
connect(version.get(), &Version::timeChanged, this,
|
||||
[this, row]() { emit dataChanged(index(row), index(row), { TimeRole, SortRole }); });
|
||||
connect(version.get(), &Version::timeChanged, this, [this, row]() {
|
||||
emit dataChanged(index(row), index(row), { TimeRole, SortRole });
|
||||
});
|
||||
connect(version.get(), &Version::typeChanged, this, [this, row]() { emit dataChanged(index(row), index(row), { TypeRole }); });
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ class VersionList : public BaseVersionList, public BaseEntity {
|
||||
Version::Ptr getRecommendedForParent(const QString& uid, const QString& version);
|
||||
Version::Ptr getLatestForParent(const QString& uid, const QString& version);
|
||||
|
||||
|
||||
QVariant data(const QModelIndex& index, int role) const override;
|
||||
RoleList providesRoles() const override;
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
Reference in New Issue
Block a user