diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-08-15 10:35:33 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-08-23 23:15:25 +0200 |
commit | 51c663b49deea46145eef185bf4e551f2c213428 (patch) | |
tree | e12910beb02d828c65c74fb4d5618e9dbcb92798 /vcl/inc | |
parent | 04991eaf9f6767d94ad7c4e47708f47615beccf6 (diff) |
Qt5 some minor code cleanups
Change-Id: I1ee81de7ef03447991e12dcf01aef7858408dc40
Reviewed-on: https://gerrit.libreoffice.org/77975
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/qt5/Qt5Tools.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/qt5/Qt5Widget.hxx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/vcl/inc/qt5/Qt5Tools.hxx b/vcl/inc/qt5/Qt5Tools.hxx index 697b703e28f4..54257de86241 100644 --- a/vcl/inc/qt5/Qt5Tools.hxx +++ b/vcl/inc/qt5/Qt5Tools.hxx @@ -19,6 +19,7 @@ #pragma once +#include <QtCore/QPoint> #include <QtCore/QRect> #include <QtCore/QSize> #include <QtCore/QString> @@ -62,6 +63,8 @@ inline QSize toQSize(const Size& rSize) { return QSize(rSize.Width(), rSize.Heig inline Size toSize(const QSize& rSize) { return Size(rSize.width(), rSize.height()); } +inline Point toPoint(const QPoint& rPoint) { return Point(rPoint.x(), rPoint.y()); } + inline QColor toQColor(const Color& rColor) { return QColor(rColor.GetRed(), rColor.GetGreen(), rColor.GetBlue(), diff --git a/vcl/inc/qt5/Qt5Widget.hxx b/vcl/inc/qt5/Qt5Widget.hxx index a69c86876a44..457fc8b78612 100644 --- a/vcl/inc/qt5/Qt5Widget.hxx +++ b/vcl/inc/qt5/Qt5Widget.hxx @@ -74,7 +74,7 @@ class Qt5Widget : public QWidget public: Qt5Widget(Qt5Frame& rFrame, Qt::WindowFlags f = Qt::WindowFlags()); - Qt5Frame& getFrame() const { return m_rFrame; } + Qt5Frame& frame() const { return m_rFrame; } void endExtTextInput(); static bool handleEvent(Qt5Frame&, const QWidget&, QEvent*); |