Project

General

Profile

Actions

Feature #3464

closed

WMenuItem: Allow assignment of Widgets after instanciation

Added by Petric Frank over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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).

Actions #1

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
Actions #2

Updated by Koen Deforche about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF