a8d97cf8aa
* Fix dpi scaling issues in UI Editor Signed-off-by: abrmich <abrmich@amazon.com> * Remove older method for getting dpi scaling factor Signed-off-by: abrmich <abrmich@amazon.com> * Remove direct call to devicePixelRatioF() Signed-off-by: abrmich <abrmich@amazon.com> * Use existing convenience function Signed-off-by: abrmich <abrmich@amazon.com> * Fix one more text size Signed-off-by: abrmich <abrmich@amazon.com> * Fix compile warning Signed-off-by: abrmich <abrmich@amazon.com> * Remove unnecessary typecast Signed-off-by: abrmich <abrmich@amazon.com>
20 lines
555 B
C++
20 lines
555 B
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
|
|
|
|
namespace QtHelpers
|
|
{
|
|
AZ::Vector2 QPointFToVector2(const QPointF& point);
|
|
|
|
AZ::Vector2 MapGlobalPosToLocalVector2(const QWidget* widget, const QPoint& pos);
|
|
|
|
bool IsGlobalPosInWidget(const QWidget* widget, const QPoint& pos);
|
|
} // namespace QtHelpers
|