36 for (QMap<size_t, UrlItem*>::iterator it =
children_.begin();
54 QMap<size_t, UrlItem*>::const_iterator it =
children_.find(row);
66 if (it.value() ==
this)
102 if (item->
type_ != type)
108 return QModelIndex();
116 QMap<size_t, UrlItem*>::iterator it =
children_.find(row);
119 it.value()->type_ = type;
120 it.value()->index_ = index;
void setIndex(const QModelIndex &index)
UrlItem * getParent() const
UrlScheme * getScheme() const
const QModelIndex & getIndex() const
UrlItem * addChild(size_t row, Type type, const QModelIndex &index)
QMap< size_t, UrlItem * > children_
UrlItem * getChild(size_t row) const
size_t getNumChildren() const
void setScheme(UrlScheme *scheme)
UrlItem(UrlScheme *scheme=0, Type type=Scheme, const QModelIndex &index=QModelIndex(), UrlItem *parent=0)