mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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.
This commit is contained in:
parent
6799032e77
commit
6bd70011e9
@ -10,7 +10,6 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "LyXToolBox.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
Loading…
Reference in New Issue
Block a user