Bug 416564

Summary: Big differences in the ui file after editing with designer
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Diff file with changes applied by designer
Patch for designer to update ui files
Patch for Qt5 designer

Description Ralf Habacker 2020-01-22 08:03:07 UTC
Created attachment 125294 [details]
Diff file with changes applied by designer

STEPS TO REPRODUCE
1. checkout kmymoney source from git repo 
2. enter checkout out dir
3. run 
    designer-qt5 kmymoney/wizards/newloanwizard/knewloanwizard.ui 
4. save file 
5. open file again
6. change a little detail
7. save again

OBSERVED RESULT
The entire file is changed. The changed detail is not visible, making it difficult to detect such changes in Git repo or during reviewing. It also requires additional effort from developers to manually rework differences in the XML file when changes are made to ui files.

EXPECTED RESULT
The ui files should be updated so that subsequent changes can be seen and checked directly.

PLATFORM:
Linux/KDE Plasma: openSUSE Leap 15.1
KDE Frameworks Version: 5.49
Qt Version: 5.9.7

ADDITIONAL INFORMATIONS
Comment 1 Thomas Baumgart 2020-01-25 06:16:59 UTC

*** This bug has been marked as a duplicate of bug 416534 ***
Comment 2 Ralf Habacker 2020-02-04 14:22:53 UTC
Created attachment 125660 [details]
Patch for designer to update ui files

With the appended patch applied to designer, ui files can be updated with

   find -name '*.ui' -exec designer -refresh {} \;
Comment 3 Ralf Habacker 2020-02-04 14:51:01 UTC
Created attachment 125661 [details]
Patch for Qt5 designer

With this patch applied to Qt5 designer, it is also able to update ui files by a shell script