Revision be84df7...

Go back to digest for 11th December 2011

Optimization in Office

C. Boemann committed changes in [calligra] /:

Improve layout of option widgets.
Previously the option widgets would be spread out over the modebox or
tool options docker.
Before we couldn't just fix the height because then the tool option docker
tabbed with other dockers would limit the other tabs height.

Solution is adding a QWidget named SpecialSpacer that basically acts as any
other spacer but we can now detect if it is present and act accordingly.

As an option widget designer you should add such a SpecialSpacer at the bottom
of your optionwidget. Unless the widget itself can make use of expanding height
in which case you shouldn't add the SpecialSpacer.

File Changes

Modified 15 files
  •   libs/flake/KoConnectionShapeConfigWidget.ui
  •   libs/flake/SnapGuideConfigWidget.ui
  •   libs/main/KoModeBox.cpp
  •   libs/main/KoToolDocker.cpp
  •   libs/flake/tools/KoCreatePathTool.cpp
  •   libs/flake/tools/PathToolOptionWidgetBase.ui
  •   plugins/defaultTools/connectionTool/ConnectionPointWidget.ui
  •   plugins/defaultTools/defaulttool/DefaultToolArrangeWidget.ui
  •   plugins/defaultTools/defaulttool/DefaultToolWidget.ui
  •   plugins/textshape/dialogs/SimpleCharacterWidget.ui
  •   plugins/textshape/dialogs/SimpleCitationBibliographyWidget.ui
  •   plugins/textshape/dialogs/SimpleFootEndNotesWidget.ui
  •   plugins/textshape/dialogs/SimpleParagraphWidget.ui
  •   plugins/textshape/dialogs/SimpleTableOfContentsWidget.ui
  •   plugins/textshape/dialogs/SimpleTableWidget.ui
15 files changed in total