Asger Ottar Alstrup wrote:
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" :-)


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?

I guess you could have simply changed the text _and_ the ids...


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 @@
[...]
       <widget class="QPushButton" name="moveOutPB" >
        <property name="text" >
-        <string>&amp;Out</string>
+        <string>&lt;- &amp;Promote</string>

&lt;- : What's that?

Abdel.

Reply via email to