diff options
author | Sarabjot Singh <saini.sarabjotsingh@gmail.com> | 2020-02-28 22:47:40 +0300 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2021-05-18 08:33:31 +0200 |
commit | 40e85aadbff8eaeba20ee6a39ca669d282d91005 (patch) | |
tree | 581f051765db01ac25b6d3426762d1c7b97155ca /vcl/qt5 | |
parent | 2b3879c748adb8d48606339cecaf81a12c19f697 (diff) |
tdf#104169 - Change mouse cursor to FatCross in calc spreadsheet
Added new cursor FatCross to calc. Change mouse cursor to
FatCross while hovering over the spreadsheet in calc instead
of earlier Arrow.
Co-authored-by: Mesut Çifci <mesutcifci97@gmail.com>
Change-Id: I672a058cc702eab0cba6ac953534def915766859
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114679
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Data.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Data.cxx b/vcl/qt5/Qt5Data.cxx index c50f8c57ddc6..45e71765bac1 100644 --- a/vcl/qt5/Qt5Data.cxx +++ b/vcl/qt5/Qt5Data.cxx @@ -150,6 +150,8 @@ #include <unx/x11_cursors/wshide_mask.h> #include <unx/x11_cursors/wsshow_curs.h> #include <unx/x11_cursors/wsshow_mask.h> +#include <unx/x11_cursors/fatcross_curs.h> +#include <unx/x11_cursors/fatcross_mask.h> #include <unx/glyphcache.hxx> @@ -181,7 +183,6 @@ static QCursor* getQCursorFromXBM(const unsigned char* pBitmap, const unsigned c QBitmap aMask = QBitmap::fromData(QSize(nWidth, nHeight), pMask); return new QCursor(aPixmap, aMask, nXHot, nYHot); } - #define MAKE_CURSOR(vcl_name, name) \ case vcl_name: \ pCursor = getQCursorFromXBM(name##curs##_bits, name##mask##_bits, name##curs_width, \ @@ -302,6 +303,8 @@ QCursor& Qt5Data::getCursor(PointerStyle ePointerStyle) MAKE_CURSOR(PointerStyle::HideWhitespace, hidewhitespace_); MAKE_CURSOR(PointerStyle::ShowWhitespace, showwhitespace_); + + MAKE_CURSOR(PointerStyle::FatCross, fatcross_); default: break; } |