diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-10-17 11:04:01 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-10-18 08:58:42 +0000 |
commit | 510029c1d1974d3e0d417e87da30261357fec510 (patch) | |
tree | 9c89094f221c33d46a9a3ff13242a3995459bbed /src/Authoring/Studio/Render/StudioRotationWidget.cpp | |
parent | 4430b2eb13f2b37068b4af65d0ec038d30ff0233 (diff) |
Clean up StudioUtils
Made StudioUtils a class of static functions instead of global
functions. Also cleaned up the code a bit where changes happened
because of this change.
Change-Id: Ic583dd25bf228c7e344be6664b6651958d84906e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Janne Kangas <janne.kangas@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioRotationWidget.cpp')
-rw-r--r-- | src/Authoring/Studio/Render/StudioRotationWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Render/StudioRotationWidget.cpp b/src/Authoring/Studio/Render/StudioRotationWidget.cpp index 547039a0..f3e06cd6 100644 --- a/src/Authoring/Studio/Render/StudioRotationWidget.cpp +++ b/src/Authoring/Studio/Render/StudioRotationWidget.cpp @@ -250,7 +250,7 @@ struct SRotationWidget : public SStudioWidgetImpl<StudioWidgetTypes::Rotation> qt3ds::render::NVRenderBlendEquationArgument( NVRenderBlendEquation::Add, NVRenderBlendEquation::Add)); - float pixelRatio = float(devicePixelRatio()); + float pixelRatio = float(StudioUtils::devicePixelRatio()); QT3DSF32 theRingRadius = 2 * CStudioPreferences::getSelectorLineLength() * pixelRatio; QT3DSF32 theRingWidth = CStudioPreferences::getSelectorLineWidth() * pixelRatio; QT3DSF32 theRingInner = theRingRadius; |