Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
qt: Introduce PlatformStyle #6487
Introduce a PlatformStyle to handle platform-specific customization of the UI.
This replaces 'scicon', as well as #ifdefs to determine whether to place icons on buttons.
The selected PlatformStyle defaults to the platform that the application was compiled on, but can be overridden from the command line with
Also fixes the warning from #6328.
I don't think that would work. There are various other ways to 'hide' the dependency, for example a singleton pattern, but I strongly prefer passing dependencies explicitly.
The only place it is unfortunate is in the WalletModel / TransactionTableModel. Ideally only the view cares about the style, not the model. But the decoration icon has to be in the platform style. Could be fixed later with a delegate but this is the most straightforward.
referenced this pull request
Jul 28, 2015