Review Request 128732: A cleaner method to determine whether changing application styles should be supported

René J.V. Bertin rjvbertin at gmail.com
Fri Aug 26 10:47:06 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128732/
-----------------------------------------------------------

(Updated Aug. 26, 2016, 10:47 a.m.)


Status
------

This change has been marked as submitted.


Review request for Digikam and KDE Software on Mac OS X.


Changes
-------

Submitted with commit 40680334eeb1f71ffc653fc01fc62f4259a7c41f by Gilles Caulier to branch master.


Repository: digikam


Description
-------

Since 5.1.0 digikam has been hardwiring Qt's `Fusion` application style on certain platforms. From what I understand, the platforms where this is a good idea (in most cases) are Mac OS X and MS Windows.

Yet, the code currently activates application style support only on Linux (by checking Qt's `Q_OS_LINUX` token). That means other Unix versions using X11 run into a regression, and it also makes it impossible to reactivate the style support on the target platforms in cases where application styles work as expected there (e.g. MacPorts with the `qt5-kde` port on OS X).

This patch introduces a proper CMake option with the appropriate default value (OFF on OS X and MS Windows, ON everywhere else), and uses existing mechanisms to export that option setting to the code.
It also disables writing the forced application style setting to the configuration file.

This method can be adapted in time, if and when KDE libraries and functionality are dropped on those platforms, again so that special builds can enjoy the full range of functionality that is possible with them.


Diffs
-----

  CMakeLists.txt 823ef93 
  app/utils/digikam_config.h.cmake.in f409cb0 
  libs/settings/applicationsettings.cpp 71efa00 
  showfoto/main/showfotosettings.cpp 0a46d61 
  showfoto/setup/showfotosetupmisc.cpp fb190c2 
  utilities/setup/setupmisc.cpp a183688 

Diff: https://git.reviewboard.kde.org/r/128732/diff/


Testing
-------

Works as it should on OS X.


Thanks,

René J.V. Bertin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20160826/54b0bcf4/attachment.html>


More information about the kde-mac mailing list