diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-08 14:18:43 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-08 14:18:43 (GMT) |
commit | 47d75bf5a3f58ce582e5715a9d5ba6e89a38b033 (patch) | |
tree | 20345d9b84af4650076440e6a2f57a4661143ca4 /Swift/QtUI/Roster/QtTreeWidgetItem.h | |
parent | 40d35626023f12d8ebea3a53672968b1b80f5974 (diff) | |
download | swift-contrib-47d75bf5a3f58ce582e5715a9d5ba6e89a38b033.zip swift-contrib-47d75bf5a3f58ce582e5715a9d5ba6e89a38b033.tar.bz2 |
Plumbing in place for roster group expansion. \nDoesn't work.
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetItem.h')
-rw-r--r-- | Swift/QtUI/Roster/QtTreeWidgetItem.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.h b/Swift/QtUI/Roster/QtTreeWidgetItem.h index 0a32940..73da92f 100644 --- a/Swift/QtUI/Roster/QtTreeWidgetItem.h +++ b/Swift/QtUI/Roster/QtTreeWidgetItem.h @@ -43,14 +43,15 @@ class QtTreeWidgetItem : public QObject, public TreeWidgetItem { void show(); bool isShown(); bool isContact(); + bool isExpanded(); QWidget* getCollapsedRosterWidget(); QWidget* getExpandedRosterWidget(); signals: - void changed(); + void changed(QtTreeWidgetItem*); private slots: - void handleChanged(); + void handleChanged(QtTreeWidgetItem* item); private: QList<QtTreeWidgetItem*> children_; QList<QtTreeWidgetItem*> shownChildren_; @@ -61,6 +62,7 @@ class QtTreeWidgetItem : public QObject, public TreeWidgetItem { QColor backgroundColor_; QVariant avatar_; bool shown_; + bool expanded_; }; } |