Actions
Feature #1410
closedWSuggestionPopup: make use of StyleClassRole
Start date:
08/23/2012
Due date:
% Done:
0%
Estimated time:
Description
Hi,
Added a small patch for the requested functionality: I want to style the suggestions.
I'm on Wt 3.2.1.
Kind regards,
Rob.
--- WSuggestionPopup.C 2012-08-23 16:00:30.000000000 +0200
+++ /home/rvandyck/new_WSuggestionPopup.C 2012-08-23 16:12:35.000000000 +0200
@@ -236,6 +236,11 @@
line->addWidget(value);
value->setAttributeValue("sug", asString(d2));
+
+ boost::any styleclass = index.data(StyleClassRole);
+ if (not styleclass.empty()) {
+ value->setAttributeValue("class", asString(styleclass));
+ }
}
}
Updated by Koen Deforche about 12 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
- Target version set to 3.2.3
Updated by Michael Vilsker about 12 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 12 years ago
- Status changed from Resolved to Closed
Actions