[Qt] misc small Mac related changes/cleanups #3297

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:Mac_HighDPI_misc changing 3 files +31 −9
  1. Diapolo commented at 5:04 PM on November 21, 2013: none
  2. in share/qt/Info.plist.in:None in aa0f23f387 outdated
      75 | @@ -69,7 +76,8 @@
      76 |        <string>Owner</string>
      77 |      </dict>
      78 |    </array>
      79 | +
    


    fanquake commented at 9:22 PM on November 21, 2013:

    Shouldn't we also be adding <key>NSPrincipalClass</key> <string>NSApplication</string>

    here as well?


    Diapolo commented at 7:37 AM on November 22, 2013:

    I added this aswell :), see rebased version.

  3. laanwj commented at 7:17 AM on November 22, 2013: member

    Can someone with a mac test this?

  4. in src/qt/bitcoin.cpp:None in 332ebbe0f1 outdated
     200 | @@ -201,6 +201,13 @@ int main(int argc, char *argv[])
     201 |  
     202 |      Q_INIT_RESOURCE(bitcoin);
     203 |      QApplication app(argc, argv);
     204 | +#if QT_VERSION > 0x050100
     205 | +    // Generate high-dpi pixmaps
     206 | +    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
     207 | +#endif
     208 | +#if Q_OS_MAC
    


    fanquake commented at 6:43 AM on November 23, 2013:

    This should be an #ifdef


    Diapolo commented at 2:21 PM on November 24, 2013:

    Fixed, thanks!

  5. Diapolo commented at 4:47 PM on November 26, 2013: none

    Did any Mac user test this?

  6. laanwj commented at 5:39 PM on November 26, 2013: member

    Is that even possible as long as we don't have Qt5 support?

  7. fanquake commented at 1:49 AM on November 27, 2013: member

    @Diapolo Somewhat. The missing menu title is now set correctly. I'll see if I can get some screens of the before/after for the retina changes

  8. BitcoinPullTester commented at 10:09 AM on December 9, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/e37f82b8aa1d0f149855a35e2cd3d98fd6181586 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  9. [Qt] misc small Mac related changes/cleanups
    - cleanup Info.plist.in and specify high DPI mode enable command as per
      http://blog.qt.digia.com/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/
    - move setting of QApplication::setAttribute() to bitcoin.cpp and add
      attribute for enabling use of high DPI pixmaps for Qt >= 5.1
    - add missing setWindowTitle() on Mac
    - cleanup Mac / non-Mac setup in bitcoingui.cpp
    84f8551f3a
  10. in src/qt/bitcoingui.cpp:None in e37f82b8aa outdated
      96 | -    else
      97 |          MacDockIconHandler::instance()->setIcon(QIcon(":icons/bitcoin_testnet"));
      98 |  #endif
      99 | +    }
     100 | +
     101 | +#ifdef Q_OS_MAC
    


    laanwj commented at 1:59 PM on December 9, 2013:

    You can combine these into

    #if defined(Q_OS_MAC) && QT_VERSION < 0x050000
    

    Diapolo commented at 2:31 PM on December 9, 2013:

    Updated...

  11. laanwj referenced this in commit 6694f4a7a2 on Dec 9, 2013
  12. laanwj merged this on Dec 9, 2013
  13. laanwj closed this on Dec 9, 2013

  14. Diapolo deleted the branch on Dec 9, 2013
  15. Bushstar referenced this in commit 6b5d3edae3 on Apr 8, 2020
  16. Bushstar referenced this in commit b7a89d3492 on Apr 8, 2020
  17. DrahtBot 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-21 18:16 UTC

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