diff options
author | Jan-Marek Glogowski <jan-marek.glogowski@extern.cib.de> | 2020-02-29 12:43:32 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-03-02 13:02:24 +0100 |
commit | 7c6c9951d3be0af11099f78462f7dfc8772df963 (patch) | |
tree | bc8bb24eb298626a6705718ded0a292613db288e /vcl/inc/qt5/Qt5Frame.hxx | |
parent | 5962dbf15d99b54d33f7e6589a23b8bca4359168 (diff) |
Qt5 some refactoring for HiDPI merge
This is a preparatory patch for merging the initial fix for
tdf#127687, the Qt5 HiDPI scaling support, and generally to make
the style handling code a little bit more readable.
It includes:
* Moving all lcl_ Qt5Graphics_Controls functions into the class as
private functions without lcl_ prefix.
* Add three additional helpers - pixelMetric, sizeFromContents and
subControlRect - to cut down boilerplate QApplication::style()->
prefixes for the style calls everywhere.
* Drop the superfluous Qt5Frame::TriggerPaintEvent functions.
* Drop the single, broken maGeometry.nTopDecoration filling.
* Split some very long lines of nested call code by using some
intermediate variables.
* Move a Qt5Data include from hxx into cpp
Change-Id: Iae1bfafd14c4163447f3d55e2307f0f617e68a0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89751
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/qt5/Qt5Frame.hxx')
-rw-r--r-- | vcl/inc/qt5/Qt5Frame.hxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/inc/qt5/Qt5Frame.hxx b/vcl/inc/qt5/Qt5Frame.hxx index b5eea5b15b1e..5a88221565a3 100644 --- a/vcl/inc/qt5/Qt5Frame.hxx +++ b/vcl/inc/qt5/Qt5Frame.hxx @@ -132,8 +132,6 @@ class VCLPLUG_QT5_PUBLIC Qt5Frame : public QObject, public SalFrame bool isMaximized() const; void SetWindowStateImpl(Qt::WindowStates eState); - void TriggerPaintEvent(); - void TriggerPaintEvent(QRect aRect); void fixICCCMwindowGroup(); public: |