forked from qt-creator/qt-creator
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:
@@ -116,7 +116,8 @@ public:
|
||||
pin,
|
||||
plus,
|
||||
redo,
|
||||
rotation,
|
||||
rotationFill,
|
||||
rotationOutline,
|
||||
search,
|
||||
splitColumns,
|
||||
splitRows,
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user