[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - vcl/source vcl/uiconfig
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 18 17:02:50 UTC 2019
vcl/source/window/printdlg.cxx | 3 +++
vcl/uiconfig/ui/printdialog.ui | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 4cf00f070fa5771bf5e6382cffe933beb65ca4b8
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Nov 15 13:25:02 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 18 18:01:56 2019 +0100
tdf#128495 measure preferred size of print preview relative to UI font
Change-Id: If04f50818fc94dd62263daaebc1c386b2d85c987
Reviewed-on: https://gerrit.libreoffice.org/82791
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
Signed-off-by: Xisco Fauli <xiscofauli at libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/83068
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index c1365e887526..d0448f797927 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -124,6 +124,9 @@ PrintDialog::PrintPreviewWindow::PrintPreviewWindow( vcl::Window* i_pParent )
, maHorzDim(VclPtr<FixedLine>::Create(this, WB_HORZ | WB_CENTER))
, maVertDim(VclPtr<FixedLine>::Create(this, WB_VERT | WB_VCENTER))
{
+ set_width_request(approximate_digit_width() * 55);
+ set_height_request(GetTextHeight() * 40);
+
SetPaintTransparent( true );
SetBackground();
maHorzDim->Show();
diff --git a/vcl/uiconfig/ui/printdialog.ui b/vcl/uiconfig/ui/printdialog.ui
index bdcf861f83bd..e20005bfc353 100644
--- a/vcl/uiconfig/ui/printdialog.ui
+++ b/vcl/uiconfig/ui/printdialog.ui
@@ -225,8 +225,6 @@
<property name="orientation">vertical</property>
<child>
<object class="vcllo-PrintPreviewWindow" id="preview">
- <property name="width_request">500</property>
- <property name="height_request">700</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
More information about the Libreoffice-commits
mailing list