Actions
Feature #3464
closedWMenuItem: Allow assignment of Widgets after instanciation
Start date:
07/11/2014
Due date:
% Done:
0%
Estimated time:
Description
WMenuItem allows to assign a widget at construction time.
But if created without a widget assigned it is not possible to do that later. Also there is no possibility to replace a previously assigned widget. Only removal (method takeContents) is provided.
I suggest to implement a method named setContents to accomplish this task.
Implementatrion could be:
if (widget already assiged)
{
disconnect old widget
discard it
}
set the new one
connect it
Maybe returns a bool to indcate success/no success (if it make sense).
Updated by Koen Deforche about 10 years ago
- Tracker changed from Bug to Feature
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.3.4
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed
Actions