summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetItem.cpp')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidgetItem.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
index 6ebeb7f..2c05053 100644
--- a/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
+++ b/Swift/QtUI/Roster/QtTreeWidgetItem.cpp
@@ -14,17 +14,17 @@ void QtTreeWidgetItem::setText(const String& text) {
}
void QtTreeWidgetItem::setTextColor(unsigned long color) {
- // QTreeWidgetItem::setTextColor(0, QColor(
- // ((color & 0xFF0000)>>16),
- // ((color & 0xFF00)>>8),
- // (color & 0xFF)));
+ textColor_ = QColor(
+ ((color & 0xFF0000)>>16),
+ ((color & 0xFF00)>>8),
+ (color & 0xFF));
}
void QtTreeWidgetItem::setBackgroundColor(unsigned long color) {
- // QTreeWidgetItem::setBackgroundColor(0, QColor(
- // ((color & 0xFF0000)>>16),
- // ((color & 0xFF00)>>8),
- // (color & 0xFF)));
+ backgroundColor_ = QColor(
+ ((color & 0xFF0000)>>16),
+ ((color & 0xFF00)>>8),
+ (color & 0xFF));
}
void QtTreeWidgetItem::setExpanded(bool b) {