]> git.lyx.org Git - features.git/commit
LyXToolBox: a QToolBox with minimum size management
authorGuillaume Munch <gm@lyx.org>
Tue, 22 Mar 2016 21:57:17 +0000 (21:57 +0000)
committerRichard Heck <rgheck@lyx.org>
Sat, 28 May 2016 21:42:32 +0000 (17:42 -0400)
commit576cb5df77604b50175b2410ac006c5c5c110e2b
tree502687eca601c986bfd746a1ebd47dea8992316e
parent70fe2c618edc606b799a1799ca3b4c4a1d98a08b
LyXToolBox: a QToolBox with minimum size management

The purpose of this custom widget is to allow the use of a QToolBox in a limited
area. The stock QToolBox does not provide a minimum size hint that depends on
the size of the pages; it assumes that there is enough room.  This subclass sets
the minimal size of the QToolbox. Without this, the size of the QToolbox is only
determined by values in the ui file and therefore causes portability and
localisation issues. Note that the computation of the minimum size hint depends
on the minimum size hints of the page widgets. Therefore page widgets must have
a layout with layoutSizeContraint = SetMinimumSize or similar.
src/frontends/qt4/GuiCitation.cpp
src/frontends/qt4/LyXToolBox.cpp [new file with mode: 0644]
src/frontends/qt4/LyXToolBox.h [new file with mode: 0644]
src/frontends/qt4/Makefile.am
src/frontends/qt4/ui/CitationUi.ui