diff options
Diffstat (limited to 'Swift')
-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) { |