]> git.lyx.org Git - features.git/commitdiff
* src/frontends/qt4/panelstack.C:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 6 Nov 2006 16:27:31 +0000 (16:27 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 6 Nov 2006 16:27:31 +0000 (16:27 +0000)
- fix the preferences and document dialog resizing problem (well, at least
  for me -- please verify).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15769 a592a061-630c-0410-9148-cb99ea01b6c8

Status.15x
src/frontends/qt4/panelstack.C

index 220df5071d1d7adbe6d1904e08096c73ceb76c73..735e134a386c003cbe93bd33b3a656200b54116c 100644 (file)
@@ -44,11 +44,6 @@ TABLE OF CONTENTS
 
 DIALOGS
 
-* If you open Document>Settings... or Tools>Preferences... for the first time,
-  the dialog is much too small to show its content; if you invoke it the second
-  time, everything is fine. This happens with qt 4.2.1, it does not seem to
-  happen with 4.1.4.
-
 * 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,
   texts are a bit longer than in English). Interestingly, if you invoke the
@@ -81,6 +76,10 @@ OTHER PANELS
   There is a big listbox just to select one of the four levels.
   Isn't this supposed to be a drop-down list or something like that?
 
+* The bullet selection widget shows the bullets in 5 columns (instead of 6)
+  for me, and hence does not fit into the window.
+  (JSpitzm 2006-11-06)
+
 
 MULTIPLE WINDOWS / DOCUMENTS
 
@@ -189,6 +188,8 @@ MAC OS X
   keyboard command, not from the menu -- appears initially too small and must be
   resized; not possible to select buttons with the keyboard).
 
+  The preferences dialog issue should be fixed now. See below (JSpitzm 2006-11-06).
+
 * 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.
 
@@ -278,4 +279,12 @@ CREDITS:
 
   FIXED (MGerz 2006-11-05)
 
+* If you open Document>Settings... or Tools>Preferences... for the first time,
+  the dialog is much too small to show its content; if you invoke it the second
+  time, everything is fine. This happens with qt 4.2.1, it does not seem to
+  happen with 4.1.4. (Postscriptum JSpitzm: I think it was not the qt version.
+  but the qt font settings that triggered this bug).
+
+  FIXED (JSpitzm 2006-11-06)
+
 
index fe9d8d0d20759bec5138e4b9a988a005358874a1..35cb42c37cee312d61803cccef0b8d27201ad987 100644 (file)
@@ -104,7 +104,11 @@ void PanelStack::addPanel(QWidget * panel, docstring const & name, docstring con
 
        widget_map_[item] = panel;
        stack_->addWidget(panel);
-       stack_->setMinimumSize(panel->minimumSize());
+       // adjust the stack size to the largest panel
+       if (panel->minimumWidth() > stack_->minimumWidth())
+               stack_->setMinimumWidth(panel->minimumWidth());
+       if (panel->minimumHeight() > stack_->minimumHeight())
+               stack_->setMinimumHeight(panel->minimumHeight());
 }