Project

General

Profile

Actions

Feature #1410

closed

WSuggestionPopup: make use of StyleClassRole

Added by Rob Van Dyck over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Michael Vilsker
Target version:
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));
+    }
   }
 }
Actions #1

Updated by Koen Deforche over 11 years ago

  • Status changed from New to InProgress
  • Assignee set to Michael Vilsker
  • Target version set to 3.2.3
Actions #2

Updated by Michael Vilsker over 11 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF