Bug 416564 - Big differences in the ui file after editing with designer
Summary: Big differences in the ui file after editing with designer
Status: RESOLVED DUPLICATE of bug 416534
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.8.4
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-22 08:03 UTC by Ralf Habacker
Modified: 2020-02-04 14:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Diff file with changes applied by designer (20.64 KB, patch)
2020-01-22 08:03 UTC, Ralf Habacker
Details
Patch for designer to update ui files (2.38 KB, patch)
2020-02-04 14:22 UTC, Ralf Habacker
Details
Patch for Qt5 designer (3.81 KB, patch)
2020-02-04 14:51 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
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