mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Hit Qt 4.2 with the sledgehammer until the dialog resizing bug is fixed.
* src/frontends/qt4/QDocumentDialog.C: * src/frontends/qt4/QPrefsDialog.C: - force updateGeometry() for Qt >= 4.2 after the panel stack has been built. This is a workaround for a Qt bug. See FIXMEs. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15781 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
23b99d315b
commit
7d4268a5e5
10
Status.15x
10
Status.15x
@ -188,6 +188,8 @@ MAC OS X
|
|||||||
keyboard command, not from the menu -- appears initially too small and must be
|
keyboard command, not from the menu -- appears initially too small and must be
|
||||||
resized; not possible to select buttons with the keyboard).
|
resized; not possible to select buttons with the keyboard).
|
||||||
|
|
||||||
|
The prefs dialog size should be better now. See below (JSpitzm-2006-11-07).
|
||||||
|
|
||||||
* Some oddities with View menu on MAC (Bennett 3/11/06): DVI does not appear
|
* Some oddities with View menu on MAC (Bennett 3/11/06): DVI does not appear
|
||||||
in the menu, even though a converter and viewer are defined in Preferences.
|
in the menu, even though a converter and viewer are defined in Preferences.
|
||||||
|
|
||||||
@ -281,11 +283,15 @@ CREDITS:
|
|||||||
the dialog is much too small to show its content; if you invoke it the second
|
the dialog is much too small to show its content; if you invoke it the second
|
||||||
time, everything is fine.
|
time, everything is fine.
|
||||||
|
|
||||||
WONTFIX: This happens with qt 4.2.1 only, it does not happen with 4.1.4/4.1.5!
|
This happens with qt 4.2.1 only, it does not happen with 4.1.4/4.1.5!
|
||||||
|
|
||||||
|
FIXED (JSpitzm-2006-11-06): force updateGeometry() after the panelstack has
|
||||||
|
been created (with Qt >= 4.2 only). A brute method, but it works.
|
||||||
|
|
||||||
* If you open Edit>Test Style... for the first time, the choice text for
|
* If you open Edit>Test Style... for the first time, the choice text for
|
||||||
"Never Toggled>Size" doesn't fit in the selection box (note that in German,
|
"Never Toggled>Size" doesn't fit in the selection box (note that in German,
|
||||||
texts are a bit longer than in English). Interestingly, if you invoke the
|
texts are a bit longer than in English). Interestingly, if you invoke the
|
||||||
dialog a second time, its button sizes are adjusted to their content.
|
dialog a second time, its button sizes are adjusted to their content.
|
||||||
|
|
||||||
WONTFIX: This happens with qt 4.2.1 only, it does not happen with 4.1.4/4.1.5!
|
WONTFIX: This happens with qt >= 4.2 only, it does not happen with 4.1.4/4.1.5!
|
||||||
|
(or maybe try to add an updateGeonetry() call somewhere as well; JSpitzm).
|
||||||
|
@ -402,6 +402,10 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
|
|||||||
docPS->addPanel(branchesModule, _("Branches"));
|
docPS->addPanel(branchesModule, _("Branches"));
|
||||||
docPS->addPanel(preambleModule, _("LaTeX Preamble"));
|
docPS->addPanel(preambleModule, _("LaTeX Preamble"));
|
||||||
docPS->setCurrentPanel(_("Document Class"));
|
docPS->setCurrentPanel(_("Document Class"));
|
||||||
|
// FIXME: hack to work around resizing bug in Qt >= 4.2
|
||||||
|
#if QT_VERSION >= 0x040200
|
||||||
|
docPS->updateGeometry();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1887,6 +1887,10 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|
|||||||
add(new PrefIdentity);
|
add(new PrefIdentity);
|
||||||
|
|
||||||
prefsPS->setCurrentPanel(_("User interface"));
|
prefsPS->setCurrentPanel(_("User interface"));
|
||||||
|
// FIXME: hack to work around resizing bug in Qt >= 4.2
|
||||||
|
#if QT_VERSION >= 0x040200
|
||||||
|
prefsPS->updateGeometry();
|
||||||
|
#endif
|
||||||
|
|
||||||
form_->bcview().setOK(savePB);
|
form_->bcview().setOK(savePB);
|
||||||
form_->bcview().setApply(applyPB);
|
form_->bcview().setApply(applyPB);
|
||||||
|
Loading…
Reference in New Issue
Block a user