<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>416534</bug_id>
          
          <creation_ts>2020-01-21 14:21:26 +0000</creation_ts>
          <short_desc>Some ui files are not compilable after editing with designer</short_desc>
          <delta_ts>2020-06-05 19:39:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>5.0.8</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ralf Habacker">ralf.habacker</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://commits.kde.org/kmymoney/ce23283713d6286d2a6b4cf91a5c03f44223fbc8</cf_commitlink>
          <cf_versionfixedin>4.8.5,5.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1904300</commentid>
    <comment_count>0</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2020-01-21 14:21:26 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. download https://cgit.kde.org/kmymoney.git/plain/kmymoney/wizards/newloanwizard/knewloanwizard.ui?h=5.0
2. open file with designer-qt5

OBSERVED RESULT
designer shows the following warning 28 times

 ** WARNING Attempt to add oject that is not of class WizardPage to a QWizard

Compiling kmymoney with this saved file fails because the designer has removed several widgets from the ui file. 

EXPECTED RESULT
The file should not be corrupted on saving

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap 15.1
KDE Frameworks Version: 5.49
Qt Version: 5.9.7

ADDITIONAL INFORMATION
The ui file contains several lines similar to 

&lt;widget class=&quot;NewIntroWizardPage&quot; name=&quot;m_newIntroPage&quot;&gt;

which requires related entries below the &lt;customwidgets&gt; tag e.g. 

  &lt;customwidgets&gt;
   ...
   &lt;customwidget&gt;
    &lt;class&gt;NewIntroWizardPage&lt;/class&gt;
    &lt;extends&gt;QWizardPage&lt;/extends&gt;
    &lt;header&gt;newintrowizardpage.h&lt;/header&gt;
   &lt;/customwidget&gt;

For the removed widgets this entry is missing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904313</commentid>
    <comment_count>1</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2020-01-21 15:00:09 +0000</bug_when>
    <thetext>I read the subject as that you can&apos;t edit multiple files (at the same time.)  Should it be &quot;some files&quot;?  Also, is this a bug in Designer or in the KMM ui files?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904323</commentid>
    <comment_count>2</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2020-01-21 15:51:28 +0000</bug_when>
    <thetext>(In reply to Jack from comment #1)
&gt; I read the subject as that you can&apos;t edit multiple files (at the same time.)
&gt; Should it be &quot;some files&quot;?  
yes, used a more descriptive subject
&gt; Also, is this a bug in Designer or in the KMM ui files?
Normally, adding custom widgets to a ui file requires the specification of a base class and a header file for insertion, which are missing in the mentioned file for reasons unknown to me.

When loading, the designer removes these incomplete widgets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904324</commentid>
    <comment_count>3</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2020-01-21 15:59:43 +0000</bug_when>
    <thetext>(In reply to Jack from comment #1)
&gt; Also, is this a bug in Designer or in the KMM ui files?
As the designer could not know which include file to use, I would say the issue is in the kmm ui files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904326</commentid>
    <comment_count>4</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2020-01-21 16:06:06 +0000</bug_when>
    <thetext>(In reply to Jack from comment #1)
&gt; Also, is this a bug in Designer or in the KMM ui files?

There are other issues when updating ui files with designer that are clearly caused by the designer, such as replacing a &quot;margins&quot; tag with 4 individual tags e.g.

     &lt;number&gt;6&lt;/number&gt;
    &lt;/property&gt;
-   &lt;property name=&quot;margin&quot;&gt;
+   &lt;property name=&quot;leftMargin&quot;&gt;
+    &lt;number&gt;11&lt;/number&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;topMargin&quot;&gt;
+    &lt;number&gt;11&lt;/number&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;rightMargin&quot;&gt;
+    &lt;number&gt;11&lt;/number&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;bottomMargin&quot;&gt;
     &lt;number&gt;11&lt;/number&gt;
    &lt;/property&gt;

which blow up files without adding any additional information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904343</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2020-01-21 16:18:07 +0000</bug_when>
    <thetext>Yes, but they don&apos;t hurt.  It&apos;s a long standing issue (dating back a few years but nobody noticed until now) and I will take care of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904416</commentid>
    <comment_count>6</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2020-01-21 19:53:31 +0000</bug_when>
    <thetext>Git commit fbfba1f6652fc96864399023b83bdb4aabfa8ac6 by Thomas Baumgart.
Committed on 21/01/2020 at 19:53.
Pushed by tbaumgart into branch &apos;5.0&apos;.

Fix missing ui file customwidget definitions
FIXED-IN: 5.0.9

M  +20   -0    kmymoney/wizards/endingbalancedlg/kendingbalancedlg.ui
M  +140  -0    kmymoney/wizards/newloanwizard/knewloanwizard.ui

https://commits.kde.org/kmymoney/fbfba1f6652fc96864399023b83bdb4aabfa8ac6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904418</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2020-01-21 20:03:04 +0000</bug_when>
    <thetext>Git commit e40d7528c315a7c2116ba07a2a23018d7b4164ea by Thomas Baumgart.
Committed on 21/01/2020 at 19:54.
Pushed by tbaumgart into branch &apos;master&apos;.

Fix missing ui file customwidget definitions
FIXED-IN: 5.0.9
(cherry picked from commit fbfba1f6652fc96864399023b83bdb4aabfa8ac6)

M  +20   -0    kmymoney/wizards/endingbalancedlg/kendingbalancedlg.ui
M  +140  -0    kmymoney/wizards/newloanwizard/knewloanwizard.ui

https://commits.kde.org/kmymoney/e40d7528c315a7c2116ba07a2a23018d7b4164ea</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904512</commentid>
    <comment_count>8</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2020-01-22 09:39:34 +0000</bug_when>
    <thetext>Git commit ce23283713d6286d2a6b4cf91a5c03f44223fbc8 by Ralf Habacker.
Committed on 22/01/2020 at 09:31.
Pushed by habacker into branch &apos;4.8&apos;.

Fix missing ui file customwidget definitions
FIXED-IN: 4.8.5,5.0.9
(cherry picked from commit fbfba1f6652fc96864399023b83bdb4aabfa8ac6)

M  +24   -0    kmymoney/wizards/endingbalancedlg/kendingbalancedlgdecl.ui
M  +168  -0    kmymoney/wizards/newloanwizard/knewloanwizarddecl.ui

https://commits.kde.org/kmymoney/ce23283713d6286d2a6b4cf91a5c03f44223fbc8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905265</commentid>
    <comment_count>9</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2020-01-25 06:16:59 +0000</bug_when>
    <thetext>*** Bug 416564 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>