setFlags(flags);
}
-uint BufferTreeItem::id() const {
+quint64 BufferTreeItem::id() const {
return buf->bufferInfo().uid();
}
}
}
-uint NetworkTreeItem::id() const {
+quint64 NetworkTreeItem::id() const {
return _networkId;
}
public:
BufferTreeItem(Buffer *, TreeItem *parent = 0);
- virtual uint id() const;
+ virtual quint64 id() const;
QVariant data(int column, int role) const;
Buffer *buffer() const { return buf; }
NetworkTreeItem(const uint &netid, const QString &, TreeItem *parent = 0);
virtual QVariant data(int column, int row) const;
- virtual uint id() const;
+ virtual quint64 id() const;
private:
uint _networkId;
qDeleteAll(_childItems);
}
-uint TreeItem::id() const {
- return (uint)this;
+quint64 TreeItem::id() const {
+ return (quint64)this;
}
void TreeItem::appendChild(TreeItem *item) {
void appendChild(TreeItem *child);
void removeChild(int row);
- virtual uint id() const;
+ virtual quint64 id() const;
TreeItem *child(int row) const;
TreeItem *childById(const uint &) const;
private:
QList<TreeItem *> _childItems;
- QHash<uint, TreeItem *> _childHash; // uint to be compatible to qHash functions
+ QHash<quint64, TreeItem *> _childHash; // uint to be compatible to qHash functions
TreeItem *_parentItem;
Qt::ItemFlags _flags;
};