[umbrello] [Bug 425009] New: Templates as data types of parameters in operations causing problems

Robert Hairgrove bugzilla_noreply at kde.org
Tue Aug 4 20:30:01 BST 2020


https://bugs.kde.org/show_bug.cgi?id=425009

            Bug ID: 425009
           Summary: Templates as data types of parameters in operations
                    causing problems
           Product: umbrello
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-devel at kde.org
          Reporter: code at roberthairgrove.com
  Target Milestone: ---

Created attachment 130633
  --> https://bugs.kde.org/attachment.cgi?id=130633&action=edit
template_names_in_operation_parameters.png

SUMMARY
Language = C++

If a class extends another class wsith template parameters of class type, and
the derived class also has template parameters, setting parameter types in
operations to a template always displays the full package path, causing overly
long names. Also, when the parameter is newly created, it doesn't show the type
after the dialog is closed, but only after editing it a second time does it
show up on the diagram.

STEPS TO REPRODUCE
1. Create a base class with templates;
2. Create a second class with templates (which might have the same name as the
base class, and actually should);
3. Add some operations with parameters and set the types to the templates of
the same class.

OBSERVED RESULT
Although the package path of the class is not displayed in the diagram (option
"Packages" under "Display" is unchecked), the full path for each of the
template types is.

EXPECTED RESULT
Since the actual type of a template is undefined, being merely a placeholder
for almost anything, showing a package path for a template makes no sense and
should never be displayed if the template belongs to the class being edited.

SOFTWARE/OS VERSIONS
Linux Ubuntu 18.04.4 
Qt Version: 5.x

ADDITIONAL INFORMATION
See attached screenshot.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list