fix ci: remove unused functions

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-06-03 15:24:04 +08:00
parent 5a344f3e23
commit 907fdeae67
2 changed files with 0 additions and 22 deletions

View File

@ -85,8 +85,6 @@ FRAMELESSHELPER_CORE_API void registerThemeChangeNotification();
[[nodiscard]] FRAMELESSHELPER_CORE_API bool isValidGeometry(const QRect &rect); [[nodiscard]] FRAMELESSHELPER_CORE_API bool isValidGeometry(const QRect &rect);
[[nodiscard]] FRAMELESSHELPER_CORE_API QColor getAccentColor(); [[nodiscard]] FRAMELESSHELPER_CORE_API QColor getAccentColor();
[[nodiscard]] FRAMELESSHELPER_CORE_API quint32 defaultScreenDpi(); [[nodiscard]] FRAMELESSHELPER_CORE_API quint32 defaultScreenDpi();
[[nodiscard]] FRAMELESSHELPER_CORE_API qreal getRealDevicePixelRatio(const QWindow *window);
[[nodiscard]] FRAMELESSHELPER_CORE_API qreal getQtDevicePixelRatio(const QWindow *window);
#ifdef Q_OS_WINDOWS #ifdef Q_OS_WINDOWS
[[nodiscard]] FRAMELESSHELPER_CORE_API bool isWindowsVersionOrGreater(const Global::WindowsVersion version); [[nodiscard]] FRAMELESSHELPER_CORE_API bool isWindowsVersionOrGreater(const Global::WindowsVersion version);

View File

@ -564,26 +564,6 @@ quint32 Utils::defaultScreenDpi()
#endif // Q_OS_MACOS #endif // Q_OS_MACOS
} }
qreal Utils::getRealDevicePixelRatio(const QWindow *window)
{
Q_ASSERT(window);
if (!window) {
return qreal(1);
}
// Qt doesn't support device pixel ratio smaller than 1.
return std::max(qreal(getDpiForWindow(window)) / qreal(defaultScreenDpi()), qreal(1));
}
qreal Utils::getQtDevicePixelRatio(const QWindow *window)
{
Q_ASSERT(window);
if (!window) {
return qreal(1);
}
// Apply the rounding policy from Qt, most probably set by the user.
return roundScaleFactor(getRealDevicePixelRatio(window));
}
QColor Utils::getAccentColor() QColor Utils::getAccentColor()
{ {
#if (QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(6, 6, 0))