<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML>
<HEAD></HEAD>
<BODY style="font-family:'DejaVu Sans Mono'; font-size:12px"><P>Hi all,</P><P>I'm currently trying to improve the Pager Configuration Dialog. Actually, it's not the only one that should be improved IMHO, but well, that's a different story, now I'm fighting the Pager plasmoid. So far so good. I've decided to do this :</P><P>- Change radiobuttons to comboboxes, as any other config dialog in KDE uses that if there are three o more options available, and I remember some article about that on the Planet.</P><P>- Lay the buttons out nicely</P><P>- Use a QFormLayout (do it right TM)</P><P>- Center the button, one more layout</P><P>-  Use a top-level layout : as the dialog is resizable, if the user resize it, it's not going to look so nice, so a layout is needed.</P><P>But there is a problem. It uses KConfigDialog, and passes a widget that is created from the .ui file. It appears that setupUi() doesn't honor any top-level layouts, so to create one, you must do it by hand! In code, I mean. Finally, I get this when I try to build the configuration dialog with the new .ui file:</P><P>http://imagebin.ca/view/Fh1QOPS.html</P><P>The .ui file is attached, as well as a patch for the source files (radiobuttons -&gt; comboboxes) and the .ui file (in case you prefer a patch).</P><P>Now the question is this:</P><P>1) What's that bad clipping</P><P>2) What should I do about the top-level layout (kinda the same question)</P><P>In the meantime I'm going to fight the other ones.</P><P><BR></P><P>Looking forward to your answer</P><P>Regards,</P><P>Ignat</P></BODY></HTML>