diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-03-27 09:32:47 +0100 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-03-27 12:33:20 +0100 |
commit | 167812fe0d77b993427e7dca112f319a92942a3c (patch) | |
tree | fed32039b4c3bb60ac39c7dfed8c06da6223e65d /vcl/qt5/Qt5Data.cxx | |
parent | b7ec6ddcf69df9617a2294298204096fc8e1557e (diff) |
tdf#124026: map window resizing-related cursors to their Qt equivalents
there is no direct Qt equivalent of X11 xc_[top|bottom|left|right]_side
cursors, but those come at least close
Change-Id: Ifd442c46c08c71b1e1b9ddac42628b38eefee47f
Reviewed-on: https://gerrit.libreoffice.org/69797
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/qt5/Qt5Data.cxx')
-rw-r--r-- | vcl/qt5/Qt5Data.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/vcl/qt5/Qt5Data.cxx b/vcl/qt5/Qt5Data.cxx index 1830dab0e523..597a0a4d0a77 100644 --- a/vcl/qt5/Qt5Data.cxx +++ b/vcl/qt5/Qt5Data.cxx @@ -204,12 +204,10 @@ QCursor& Qt5Data::getCursor(PointerStyle ePointerStyle) MAP_BUILTIN(PointerStyle::NESize, Qt::SizeBDiagCursor); MAP_BUILTIN(PointerStyle::SWSize, Qt::SizeBDiagCursor); MAP_BUILTIN(PointerStyle::SESize, Qt::SizeFDiagCursor); -#if 0 - MAP_BUILTIN( PointerStyle::WindowNSize, GDK_TOP_SIDE ); - MAP_BUILTIN( PointerStyle::WindowSSize, GDK_BOTTOM_SIDE ); - MAP_BUILTIN( PointerStyle::WindowWSize, GDK_LEFT_SIDE ); - MAP_BUILTIN( PointerStyle::WindowESize, GDK_RIGHT_SIDE ); -#endif + MAP_BUILTIN(PointerStyle::WindowNSize, Qt::SizeVerCursor); + MAP_BUILTIN(PointerStyle::WindowSSize, Qt::SizeVerCursor); + MAP_BUILTIN(PointerStyle::WindowWSize, Qt::SizeHorCursor); + MAP_BUILTIN(PointerStyle::WindowESize, Qt::SizeHorCursor); MAP_BUILTIN(PointerStyle::WindowNWSize, Qt::SizeFDiagCursor); MAP_BUILTIN(PointerStyle::WindowNESize, Qt::SizeBDiagCursor); MAP_BUILTIN(PointerStyle::WindowSWSize, Qt::SizeBDiagCursor); @@ -299,7 +297,8 @@ QCursor& Qt5Data::getCursor(PointerStyle ePointerStyle) if (!pCursor) { pCursor = new QCursor(Qt::ArrowCursor); - SAL_WARN("vcl.qt5", "pointer " << static_cast<int>(ePointerStyle) << "not implemented"); + SAL_WARN("vcl.qt5", + "pointer " << static_cast<int>(ePointerStyle) << " not implemented"); } m_aCursors[ePointerStyle].reset(pCursor); |