Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nikoneko:minutor
minutor
better-hidpi-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File better-hidpi-support.patch of Package minutor
diff --git a/main.cpp b/main.cpp index 22db60e..1686b66 100644 --- a/main.cpp +++ b/main.cpp @@ -6,6 +6,14 @@ #include "minutor.h" int main(int argc, char *argv[]) { + QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); +#endif // Qt 5.14 +#endif // Qt 5.6 + QApplication app(argc, argv); QString locale = QLocale::system().name();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor