From fee8801a6d6e2dd620ac49e46428e3d1cc842ca6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 7 Jan 2007 10:24:25 +0000 Subject: [PATCH] * src/frontends/qt4/QCharacter.C: * src/frontends/qt4/QDocumentDialog.C: * src/frontends/qt4/QPrefsDialog.C: - include some information on the resizing bug, git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16565 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QCharacter.C | 3 ++- src/frontends/qt4/QDocumentDialog.C | 1 + src/frontends/qt4/QPrefsDialog.C | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/QCharacter.C b/src/frontends/qt4/QCharacter.C index f96e4a10ea..81e3d6e891 100644 --- a/src/frontends/qt4/QCharacter.C +++ b/src/frontends/qt4/QCharacter.C @@ -92,7 +92,8 @@ void QCharacter::build_dialog() bcview().addReadOnly(dialog_->autoapplyCB); // FIXME: hack to work around resizing bug in Qt >= 4.2 -#if QT_VERSION >= 0x040200 +// bug verified with Qt 4.2.{0-2} (JSpitzm) +#if (QT_VERSION >= 0x040200) // qt resizes the comboboxes only after show(), so ... dialog_->show(); #endif diff --git a/src/frontends/qt4/QDocumentDialog.C b/src/frontends/qt4/QDocumentDialog.C index 5c7b913b39..dcd66369e5 100644 --- a/src/frontends/qt4/QDocumentDialog.C +++ b/src/frontends/qt4/QDocumentDialog.C @@ -397,6 +397,7 @@ QDocumentDialog::QDocumentDialog(QDocument * form) docPS->addPanel(preambleModule, _("LaTeX Preamble")); docPS->setCurrentPanel(_("Document Class")); // FIXME: hack to work around resizing bug in Qt >= 4.2 +// bug verified with Qt 4.2.{0-2} (JSpitzm) #if QT_VERSION >= 0x040200 docPS->updateGeometry(); #endif diff --git a/src/frontends/qt4/QPrefsDialog.C b/src/frontends/qt4/QPrefsDialog.C index fe00adca40..7b64aee28b 100644 --- a/src/frontends/qt4/QPrefsDialog.C +++ b/src/frontends/qt4/QPrefsDialog.C @@ -1819,6 +1819,7 @@ QPrefsDialog::QPrefsDialog(QPrefs * form) prefsPS->setCurrentPanel(_("User interface")); // FIXME: hack to work around resizing bug in Qt >= 4.2 +// bug verified with Qt 4.2.{0-2} (JSpitzm) #if QT_VERSION >= 0x040200 prefsPS->updateGeometry(); #endif -- 2.39.5