forked from blue/squawk
some sorting in roster
This commit is contained in:
parent
100b2e8943
commit
e4d1e21ea0
7 changed files with 89 additions and 5 deletions
|
@ -55,6 +55,7 @@ class Item : public QObject{
|
|||
public:
|
||||
virtual void appendChild(Item *child);
|
||||
virtual void removeChild(int index);
|
||||
virtual QString getDisplayedName() const;
|
||||
QString getName() const;
|
||||
void setName(const QString& name);
|
||||
|
||||
|
@ -76,8 +77,12 @@ class Item : public QObject{
|
|||
protected:
|
||||
virtual void changed(int col);
|
||||
virtual void _removeChild(int index);
|
||||
virtual bool columnInvolvedInDisplay(int col);
|
||||
const Item* getParentAccount() const;
|
||||
|
||||
protected slots:
|
||||
void onChildChanged(Models::Item* item, int row, int col);
|
||||
|
||||
protected:
|
||||
QString name;
|
||||
std::deque<Item*> childItems;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue