Abdelrazak Younes wrote:
OK, then give me a crash course in how to change a Qt4 dialog.

Are you ready?

Double click on the "frontends/qt4/ui/QTocUI.ui" :-)

I have to select which program to use to edit that file. I guess it's designer.exe. And lo and behold, that worked.

Now, how do I change the order of those buttons? Hm, let me try to break the layout. OK, that worked. Make the changes, and make a new layout for our friends. Then let's try preview. Ups, the layout is foobar: the bottom line is at the top. I guess breaking the layout was not such a brilliant idea. Revert to trunk, and try again...

Hm, struggle, struggle. How can I reorder the elements in the layout? I have tried a million things, but I am simply unable to do this. Is designer really such a broken tool?

OK, I'll just change the texts, and then edit the file in a text editor to swap these two fuckers. OK, the columns attributes seem to do the trick. Open in designer and preview. Yep, it looks right.

Now, try to compile LyX, and see what happens.

Ah, I get the stupid mac-ending bug. OK, fix that, and then wait for linking... Hm, those linking times are ridiculuous. Let me disable debugging info for now...

OK, it linked, and it works.

Great, patch attached. Committing in a few seconds. If the patch applies to 1.4, be happy. I don't have 1.4 checked out, so someone else have to pick that up.

Regards,
Asger

Index: src/frontends/qt4/ui/QTocUi.ui
===================================================================
--- src/frontends/qt4/ui/QTocUi.ui      (revision 15373)
+++ src/frontends/qt4/ui/QTocUi.ui      (working copy)
@@ -1,7 +1,4 @@
 <ui version="4.0" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
  <class>QTocUi</class>
  <widget class="QDialog" name="QTocUi" >
   <property name="geometry" >
@@ -47,17 +44,17 @@
        </property>
       </widget>
      </item>
-     <item row="0" column="3" >
+     <item row="0" column="2" >
       <widget class="QPushButton" name="moveOutPB" >
        <property name="text" >
-        <string>&amp;Out</string>
+        <string>&lt;- &amp;Promote</string>
        </property>
       </widget>
      </item>
-     <item row="0" column="2" >
+     <item row="0" column="3" >
       <widget class="QPushButton" name="moveInPB" >
        <property name="text" >
-        <string>&amp;In</string>
+        <string>&amp;Demote -></string>
        </property>
       </widget>
      </item>
@@ -172,7 +169,6 @@
    </item>
   </layout>
  </widget>
- <pixmapfunction></pixmapfunction>
  <tabstops>
   <tabstop>typeCO</tabstop>
   <tabstop>tocTV</tabstop>

Reply via email to