diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-09-15 10:24:08 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-09-15 10:24:08 (GMT) |
commit | ed5963e48eeb141c3eed51d6c4729be7e61bfa19 (patch) | |
tree | bbe87c8042150e129c02acdb5314ce9d1340b9df /Swift/QtUI/Roster | |
parent | e2045ebccf86d16eeb9dbf710c64dd2b4a4d6f94 (diff) | |
download | swift-contrib-ed5963e48eeb141c3eed51d6c4729be7e61bfa19.zip swift-contrib-ed5963e48eeb141c3eed51d6c4729be7e61bfa19.tar.bz2 |
Immediately update the Qt roster when items change.
Diffstat (limited to 'Swift/QtUI/Roster')
-rw-r--r-- | Swift/QtUI/Roster/QtTreeWidgetItem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp index c9693eb..00a84f3 100644 --- a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp +++ b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp @@ -13,14 +13,17 @@ QtTreeWidgetItem::QtTreeWidgetItem(QtTreeWidgetItem* parentItem) : QObject(), te void QtTreeWidgetItem::setText(const String& text) { displayName_ = P2QSTRING(text); + emit changed(this); } void QtTreeWidgetItem::setStatusText(const String& text) { statusText_ = P2QSTRING(text); + emit changed(this); } void QtTreeWidgetItem::setAvatarPath(const String& path) { avatar_ = QIcon(P2QSTRING(path)); + emit changed(this); } void QtTreeWidgetItem::setStatusShow(StatusShow::Type show) { @@ -35,6 +38,7 @@ void QtTreeWidgetItem::setStatusShow(StatusShow::Type show) { case StatusShow::None: color = 0x7F7F7F;break; } setTextColor(color); + emit changed(this); } void QtTreeWidgetItem::setTextColor(unsigned long color) { |