summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetItem.h')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidgetItem.h6
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_;
};
}