https://bugs.kde.org/show_bug.cgi?id=446020

--- Comment #7 from Oliver Kellogg <okell...@users.sourceforge.net> ---
Git commit 6da5003e65521bf28aab738c54c2b6d876d78dc5 by Oliver Kellogg.
Committed on 11/02/2022 at 18:05.
Pushed by okellogg into branch 'master'.

https://bugs.kde.org/show_bug.cgi?id=446020#c5

> [...] we could try starting out with a default size of 800 x 1100
> pixels [...] Perhaps this could be user-configurable?

In Diagram Properties page add input fields for changing canvas width
and height:

umbrello/dialogs/pages/diagrampropertiespage.ui
- In QHBoxLayout containing ui_labelZoom and ui_zoom, at right edge,
  - add QLabel ui_labelWidth with text "Width:";
  - add QDoubleSpinBox ui_width;
  - add spacer;
  - add QLabel ui_labelHeight with text "Height:";
  - add QDoubleSpinBox ui_height.

umbrello/dialogs/pages/diagrampropertiespage.cpp
- In constructor set ui_width from scene->width() and set ui_height
  from scene->height().
- In function apply() call m_scene->setSceneRect() with arguments
  w = ui_width->value() and h = ui_height->value().

M  +3    -0    umbrello/dialogs/pages/diagrampropertiespage.cpp
M  +65   -0    umbrello/dialogs/pages/diagrampropertiespage.ui

https://invent.kde.org/sdk/umbrello/commit/6da5003e65521bf28aab738c54c2b6d876d78dc5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to