Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:khnazile:kritastuff
gmic
gmic-qt-2.2.2-Use-HiDPI-icons.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gmic-qt-2.2.2-Use-HiDPI-icons.patch of Package gmic
From eb84a3c567fe42f3e8d409d765450f4a436020b5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider <asn@cryptomilk.org> Date: Thu, 3 May 2018 22:19:38 +0200 Subject: [PATCH] Use HiDPI icons --- src/gmic_qt.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gmic_qt.cpp b/src/gmic_qt.cpp index 53b86fa..653615f 100644 --- a/src/gmic_qt.cpp +++ b/src/gmic_qt.cpp @@ -64,6 +64,7 @@ int launchPlugin() #ifdef _IS_WINDOWS_ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); #endif + QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication app(dummy_argc, dummy_argv); app.setWindowIcon(QIcon(":resources/gmic_hat.png")); @@ -99,6 +100,8 @@ int launchPluginHeadlessUsingLastParameters() #ifdef _IS_WINDOWS_ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); #endif + QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QApplication app(dummy_argc, dummy_argv); app.setWindowIcon(QIcon(":resources/gmic_hat.png")); QCoreApplication::setOrganizationName(GMIC_QT_ORGANISATION_NAME); @@ -123,6 +126,8 @@ int launchPluginHeadless(const char * command, GmicQt::InputMode input, GmicQt:: #ifdef _IS_WINDOWS_ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); #endif + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QCoreApplication app(dummy_argc, dummy_argv); QCoreApplication::setOrganizationName(GMIC_QT_ORGANISATION_NAME); QCoreApplication::setOrganizationDomain(GMIC_QT_ORGANISATION_DOMAIN); -- 2.16.3
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