Juergen Spitzmueller wrote:
> The only way to get the combo boxes resize properly seems to be to trigger
> show() again after the items have been inserted, see:
> http://lists.trolltech.com/qt-interest/2002-03/thread01170-0.html
>
> This is all but pretty, but I tried several more elegant solutions to no
> avail. The attached patch works. OK?

I applied that now, but I limited it to QT >= 4.2, since the bug triggers only 
there.

Someone who has Qt 4.2.2 should check if those dialog resizing hacks are still 
needed for that version:

QDocumentDialog.C: 407
        // FIXME: hack to work around resizing bug in Qt >= 4.2
        #if QT_VERSION >= 0x040200
                docPS->updateGeometry();
        #endif

QCharacter.C: 94
        // FIXME: hack to work around resizing bug in Qt >= 4.2
        #if QT_VERSION >= 0x040200
                // qt resizes the comboboxes only after show(), so ...
                dialog_->show();
        #endif

QPrefsDialog.C: 1821
        // FIXME: hack to work around resizing bug in Qt >= 4.2
        #if QT_VERSION >= 0x040200
                prefsPS->updateGeometry();
        #endif

Jürgen

Reply via email to