pimap iterators
This commit is contained in:
@@ -55,10 +55,8 @@ public:
|
|||||||
|
|
||||||
iterator begin() {return props.begin();}
|
iterator begin() {return props.begin();}
|
||||||
const_iterator begin() const {return props.begin();}
|
const_iterator begin() const {return props.begin();}
|
||||||
const_iterator constBegin() const {return props.constBegin();}
|
|
||||||
iterator end() {return props.end();}
|
iterator end() {return props.end();}
|
||||||
const_iterator end() const {return props.end();}
|
const_iterator end() const {return props.end();}
|
||||||
const_iterator constEnd() const {return props.constEnd();}
|
|
||||||
|
|
||||||
int count() const {return props.count();}
|
int count() const {return props.count();}
|
||||||
int length() const {return props.length();}
|
int length() const {return props.length();}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ void ObjectsView::showObjects(const PIVector<PIIntrospection::ObjectInfo> & obje
|
|||||||
|
|
||||||
vpos = treeObjectsStat->verticalScrollBar()->value();
|
vpos = treeObjectsStat->verticalScrollBar()->value();
|
||||||
treeObjectsStat->clear();
|
treeObjectsStat->clear();
|
||||||
for (QHash<QString, int>::const_iterator i = stat.constBegin(); i != stat.constEnd(); ++i) {
|
for (QHash<QString, int>::const_iterator i = stat.begin(); i != stat.end(); ++i) {
|
||||||
QTreeWidgetItem * ti = new QTreeWidgetItem();
|
QTreeWidgetItem * ti = new QTreeWidgetItem();
|
||||||
ti->setText(0, i.key());
|
ti->setText(0, i.key());
|
||||||
ti->setText(1, QString::number(i.value()));
|
ti->setText(1, QString::number(i.value()));
|
||||||
|
|||||||
Reference in New Issue
Block a user