qt/scicon: Avoid warnings about unused MakeSingleColorImage #6328

pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:scicon_warnings changing 1 files +9 −3
  1. luke-jr commented at 9:58 PM on June 23, 2015: member

    A cleaner alternative to #6327

  2. qt/scicon: Avoid warnings about unused MakeSingleColorImage 12cbf208d7
  3. Diapolo commented at 6:04 AM on June 24, 2015: none

    +9 / -3 yours +7 / -7 mine :-P

    Well I like mine better, as I removed an #ifdef ;).

  4. jonasschnelli commented at 6:31 AM on June 24, 2015: contributor

    ACK

  5. laanwj commented at 6:27 AM on June 25, 2015: member

    We had this discussion before, shortly ago: #6143

    For the sake of making sure as much code gets compiled for every platform, logic that does not use specific platform-dependent APIs (and thus potentially compiles on other platforms) should not be in platform-specific #ifdefs.

    E.g. use MACOSX/WINDOWS to determine a UIPlatformStyle enum once, then pass that on. This could be overridden for testing. This would also apply to things such as "display images on buttons" which are currently #ifdefed.

    (Or instead of an enum: this could work like NetworkStyle, where the class itself contains a list of platform specific customization flags, e.g. showImagesOnButton, colorizeIcons, etc)

  6. laanwj added the label GUI on Jun 25, 2015
  7. laanwj referenced this in commit 3c8c497526 on Jul 28, 2015
  8. laanwj referenced this in commit 287b3bce7b on Jul 28, 2015
  9. laanwj commented at 2:48 PM on July 28, 2015: member

    Closing in favor of #6487, which implements the approach outlined in my above post.

  10. laanwj closed this on Jul 28, 2015

  11. laanwj referenced this in commit 07810e4e6c on Jul 29, 2015
  12. laanwj referenced this in commit eec7757445 on Jul 31, 2015
  13. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me