NOISSUE Add a skeleton of the wonko system
This commit is contained in:
parent
5ae3b2c114
commit
00e5968bd2
53 changed files with 2632 additions and 32 deletions
|
@ -11,6 +11,8 @@ public:
|
|||
VersionFilterModel(VersionProxyModel *parent) : QSortFilterProxyModel(parent)
|
||||
{
|
||||
m_parent = parent;
|
||||
setSortRole(BaseVersionList::SortRole);
|
||||
sort(0, Qt::DescendingOrder);
|
||||
}
|
||||
|
||||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
|
||||
|
@ -30,14 +32,11 @@ public:
|
|||
auto versionString = data.toString();
|
||||
if(it.value().exact)
|
||||
{
|
||||
if (versionString != it.value().string)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return versionString == it.value().string;
|
||||
}
|
||||
else if (!versionIsInInterval(versionString, it.value().string))
|
||||
else
|
||||
{
|
||||
return false;
|
||||
return versionIsInInterval(versionString, it.value().string);
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue