diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-19 09:52:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 09:55:43 +0200 |
commit | 3f73733f7df6393be773e66e445eb0a86e9a9377 (patch) | |
tree | 5e053b87acd9db800c38a9c3a212efc86cff04f6 /vcl/source | |
parent | 495412c74f52957dd3941970bf34928d069e0dc3 (diff) |
weld BreakPointDialog
Change-Id: Icecef8b0b939c5d87bdf1bb781731df8fc4419b5
Reviewed-on: https://gerrit.libreoffice.org/60756
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 85d6740790d2..f68ac1b3b996 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -289,6 +289,12 @@ public: m_xWidget->set_height_request(nHeight); } + virtual Size get_size_request() const override + { + return Size(m_xWidget->get_width_request(), + m_xWidget->get_height_request()); + } + virtual Size get_preferred_size() const override { return m_xWidget->get_preferred_size(); diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 3bfff31b910e..395596b7f5d5 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -378,7 +378,7 @@ namespace weld void EntryTreeView::set_height_request_by_rows(int nRows) { int nHeight = nRows == -1 ? -1 : m_xTreeView->get_height_rows(nRows); - m_xTreeView->set_size_request(-1, nHeight); + m_xTreeView->set_size_request(m_xTreeView->get_size_request().Width(), nHeight); } } |