Minor fixes to the namespace filter
This commit is contained in:
parent
b5254ac723
commit
590a02599d
4 changed files with 15 additions and 18 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <QAbstractItemModel>
|
||||
#include "PgNamespace.h"
|
||||
#include <vector>
|
||||
#include <iterator>
|
||||
|
||||
class PgNamespaceContainer;
|
||||
|
||||
|
|
@ -23,22 +24,15 @@ public:
|
|||
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||
virtual Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
//std::set<Oid> getCheckedNamespaces() const;
|
||||
|
||||
template <typename I>
|
||||
void getCheckedNamespaces(I inserter) const
|
||||
{
|
||||
for (auto g : groups)
|
||||
for (auto l : g->leaves)
|
||||
if (l->checked)
|
||||
inserter = l->ns.oid;
|
||||
}
|
||||
private:
|
||||
// using NsVec = std::vector<PgNamespace>;
|
||||
|
||||
// class Group {
|
||||
// public:
|
||||
// QString name;
|
||||
// NsVec namespaces;
|
||||
// };
|
||||
// using GrpVec = std::vector<Group>;
|
||||
|
||||
// //std::shared_ptr<const PgNamespaceContainer> m_namespaces;
|
||||
// GrpVec groups;
|
||||
|
||||
|
||||
class Node {
|
||||
public:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue