summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Utils/StudioUtils.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-10-17 11:04:01 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-10-18 08:58:42 +0000
commit510029c1d1974d3e0d417e87da30261357fec510 (patch)
tree9c89094f221c33d46a9a3ff13242a3995459bbed /src/Authoring/Studio/Utils/StudioUtils.h
parent4430b2eb13f2b37068b4af65d0ec038d30ff0233 (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/Utils/StudioUtils.h')
-rw-r--r--src/Authoring/Studio/Utils/StudioUtils.h36
1 files changed, 10 insertions, 26 deletions
diff --git a/src/Authoring/Studio/Utils/StudioUtils.h b/src/Authoring/Studio/Utils/StudioUtils.h
index b174e240..9874ecf9 100644
--- a/src/Authoring/Studio/Utils/StudioUtils.h
+++ b/src/Authoring/Studio/Utils/StudioUtils.h
@@ -27,37 +27,21 @@
**
****************************************************************************/
-//==============================================================================
-// Prefix
-//==============================================================================
#ifndef INCLUDED_STUDIO_UTILS_H
-#define INCLUDED_STUDIO_UTILS_H 1
+#define INCLUDED_STUDIO_UTILS_H
-#pragma once
+#include <QtCore/qstring.h>
-#include "Qt3DSString.h"
-#include <QPoint>
-#include <QSize>
+class StudioUtils {
+public:
+ static QString resourceImagePath();
+ static QString resourceImageUrl();
-//==============================================================================
-// Functions
-//==============================================================================
-Q3DStudio::CString FormatTimeString(long inTimeMS);
-bool IsNumericString(Q3DStudio::CString inString);
+ static QString resourcePath();
-long TimeToPos(long inTime, double inTimeRatio);
-long TimeToPos(double inTime, double inTimeRatio);
-long PosToTime(long inPos, double inTimeRatio);
+ static QString qmlImportPath();
-void ShowURLInBrowser(Q3DStudio::CString inURL);
-
-QString resourceImagePath();
-QString resourceImageUrl();
-
-QString resourcePath();
-
-QString qmlImportPath();
-
-qreal devicePixelRatio();
+ static qreal devicePixelRatio();
+};
#endif // INCLUDED_STUDIO_UTILS_H