QmlDesigner: Fix for rotation cursor

- Added new icons to icon font
 - Uses new drawing method for rotation cursor

Task: QDS-3131

Change-Id: Ifa8dda2630794694dd262396ca314a9b4e6675ad
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2020-11-18 16:28:16 +01:00
parent f38d7910fe
commit 181fd57cc4
6 changed files with 89 additions and 33 deletions

View File

@@ -116,7 +116,8 @@ public:
pin,
plus,
redo,
rotation,
rotationFill,
rotationOutline,
search,
splitColumns,
splitRows,

View File

@@ -203,11 +203,11 @@ QCursor RotationController::getRotationCursor() const
const QString fontName = "qtds_propertyIconFont.ttf";
const int cursorSize = 32; //32 is cursor recommended size
QIcon rotationIcon = Utils::StyleHelper::getIconFromIconFont(
QIcon rotationIcon = Utils::StyleHelper::getCursorFromIconFont(
fontName,
Theme::getIconUnicode(Theme::rotation),
cursorSize, cursorSize,
Qt::white);
Theme::getIconUnicode(Theme::rotationFill),
Theme::getIconUnicode(Theme::rotationOutline),
cursorSize, cursorSize);
return QCursor(rotationIcon.pixmap(cursorSize, cursorSize));
}