lyx_mirror/src/frontends
Guillaume Munch b5a2f1c7e5 Fix broken layout of the citation dialog (#10019)
7b1107d7 introduced the following inconveniences which are regressions to 2.1:

* The citation dialog can open with vertical scroll bars in the options

* The citation dialog can open with horizontal scroll bars, especially if the
  translated text is longer than the original text (e.g. in FR)

* Resizing the dialog is inconvenient because it increases the gap between the
  options. This is unlike before when the dialog could let us see more of the
  reference list when enlarging.

This is because the QToolbox that the above commit introduced is not natively
aware of the sizes of its page sub-widgets. The widget is not conceived for this
use, where the space is scarce.

Geometry values provided in the ui file (automatically computed by qtcreator I
suppose) somehow gave the illusion that it worked, but relying on such values is
not portable : it does not take into account the specific theme, font sizes and
localization. This explains why it failed on my side and will probably fail in
other settings too.

Luckily, there is a simple way to make QToolbox suitable for the current use,
which is to add the "missing link" which computes its size based on the minimal
sizes of its pages. The result looks very nice and intuitive. It solves all the
aforementioned issues.
2016-04-04 17:58:16 +02:00
..
qt4 Fix broken layout of the citation dialog (#10019) 2016-04-04 17:58:16 +02:00
tests Fix C++11 std::regex incompatibility 2015-11-24 20:31:14 +01:00
.gitignore
alert.h
Application.h Auto feature for minibuffer toolbar 2015-07-15 17:41:09 +02:00
Clipboard.h
CMakeLists.txt
Delegates.h
FontLoader.h
FontMetrics.h Use QFontMetrics information for underlines (and friends) width and position 2015-09-08 10:44:03 +02:00
KeyModifier.h
KeySymbol.h
Makefile.am
mouse_state.h
Painter.h Change the shape of the parbreak separator 2016-01-24 12:49:02 +01:00
Selection.h
WorkArea.h
WorkAreaManager.cpp
WorkAreaManager.h