File tree Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 4
4
<dict >
5
5
<key >CFBundleIconFile</key >
6
6
<string >bitcoin.icns</string >
7
+
7
8
<key >CFBundlePackageType</key >
8
9
<string >APPL</string >
10
+
9
11
<key >CFBundleGetInfoString</key >
10
12
<string >@CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@, Copyright © 2009-@COPYRIGHT_YEAR@ The Bitcoin developers</string >
13
+
11
14
<key >CFBundleShortVersionString</key >
12
15
<string >@CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@</string >
16
+
13
17
<key >CFBundleVersion</key >
14
18
<string >@CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@</string >
19
+
15
20
<key >CFBundleSignature</key >
16
21
<string >????</string >
22
+
17
23
<key >CFBundleExecutable</key >
18
24
<string >Bitcoin-Qt</string >
25
+
19
26
<key >CFBundleIdentifier</key >
20
27
<string >org.bitcoinfoundation.Bitcoin-Qt</string >
21
28
69
76
<string >Owner</string >
70
77
</dict >
71
78
</array >
79
+
80
+ <key >NSPrincipalClass</key >
81
+ <string >NSApplication</string >
82
+
72
83
<key >NSHighResolutionCapable</key >
73
- < true / >
84
+ < string >True</ string >
74
85
</dict >
75
86
</plist >
Original file line number Diff line number Diff line change @@ -200,6 +200,13 @@ int main(int argc, char *argv[])
200
200
201
201
Q_INIT_RESOURCE (bitcoin);
202
202
QApplication app (argc, argv);
203
+ #if QT_VERSION > 0x050100
204
+ // Generate high-dpi pixmaps
205
+ QApplication::setAttribute (Qt::AA_UseHighDpiPixmaps);
206
+ #endif
207
+ #ifdef Q_OS_MAC
208
+ QApplication::setAttribute (Qt::AA_DontShowIconsInMenus);
209
+ #endif
203
210
204
211
// Register meta types used for QMetaObject::invokeMethod
205
212
qRegisterMetaType< bool * >();
Original file line number Diff line number Diff line change @@ -69,28 +69,32 @@ BitcoinGUI::BitcoinGUI(bool fIsTestnet, QWidget *parent) :
69
69
{
70
70
GUIUtil::restoreWindowGeometry (" nWindow" , QSize (850 , 550 ), this );
71
71
72
- #ifndef Q_OS_MAC
73
72
if (!fIsTestnet )
74
73
{
75
74
setWindowTitle (tr (" Bitcoin" ) + " - " + tr (" Wallet" ));
75
+ #ifndef Q_OS_MAC
76
76
QApplication::setWindowIcon (QIcon (" :icons/bitcoin" ));
77
77
setWindowIcon (QIcon (" :icons/bitcoin" ));
78
+ #else
79
+ MacDockIconHandler::instance ()->setIcon (QIcon (" :icons/bitcoin" ));
80
+ #endif
78
81
}
79
82
else
80
83
{
81
84
setWindowTitle (tr (" Bitcoin" ) + " - " + tr (" Wallet" ) + " " + tr (" [testnet]" ));
85
+ #ifndef Q_OS_MAC
82
86
QApplication::setWindowIcon (QIcon (" :icons/bitcoin_testnet" ));
83
87
setWindowIcon (QIcon (" :icons/bitcoin_testnet" ));
84
- }
85
88
#else
86
- setUnifiedTitleAndToolBarOnMac (true );
87
- QApplication::setAttribute (Qt::AA_DontShowIconsInMenus);
88
-
89
- if (!fIsTestnet )
90
- MacDockIconHandler::instance ()->setIcon (QIcon (" :icons/bitcoin" ));
91
- else
92
89
MacDockIconHandler::instance ()->setIcon (QIcon (" :icons/bitcoin_testnet" ));
93
90
#endif
91
+ }
92
+
93
+ #if defined(Q_OS_MAC) && QT_VERSION < 0x050000
94
+ // This property is not implemented in Qt 5. Setting it has no effect.
95
+ // A replacement API (QtMacUnifiedToolBar) is available in QtMacExtras.
96
+ setUnifiedTitleAndToolBarOnMac (true );
97
+ #endif
94
98
95
99
// Create wallet frame and make it the central widget
96
100
walletFrame = new WalletFrame (this );
You can’t perform that action at this time.
0 commit comments