treeitem.h
changeset 749 9ff332964015
parent 746 ee6b0f3a4c2f
child 750 ff3b01ce0960
     1.1 --- a/treeitem.h	Tue Mar 31 15:36:10 2009 +0000
     1.2 +++ b/treeitem.h	Wed Apr 01 15:06:57 2009 +0000
     1.3 @@ -31,12 +31,18 @@
     1.4      int childNumber() const;
     1.5      int columnCount() const;
     1.6  	int branchCount() const;
     1.7 +	int imageCount() const;
     1.8 +	int xlinkCount() const;
     1.9  
    1.10      int row() const;
    1.11  	int column() const;
    1.12  	int depth() ;
    1.13      TreeItem *parent();
    1.14 -	int num();		// object index, e.g. branch number
    1.15 +
    1.16 +	/*! Return number of item in parent by type, 
    1.17 +	    e.g. first branch has number 0           */
    1.18 +	int num();		
    1.19 +	int num (TreeItem *item);	//! Return number of item by type
    1.20  
    1.21  	// Accessing data
    1.22      QVariant data(int column) const;