aboutsummaryrefslogtreecommitdiff
path: root/src/qt/macdockiconhandler.mm
AgeCommit message (Collapse)Author
2018-12-30Remove obj_c for macOS Dock icon menuHennadii Stepanov
Qt `setAsDockMenu()` does this work. Github-Pull: #14597 Rebased-From: 6b1d2972bf9a40f97ba3a5c95831fd179b1054cf
2018-12-30Use Qt signal for macOS Dock icon click eventHennadii Stepanov
This moves the Dock icon click reaction code to the common place and allows some cleanup in obj_c code. According to the Apple's docs `class_replaceMethod` behaves as `class_addMethod`, if the method identified by name does not yet exist; or as `method_setImplementation`, if it does exist. Github-Pull: #14597 Rebased-From: 2464925e7be832d4926b6204169bbbc1646c6368
2018-12-30Remove obj_c for macOS Dock icon settingHennadii Stepanov
Qt `setWindowIcon()` does this work. Github-Pull: #14597 Rebased-From: 53bb6be3f8a50ee9e5c4d7e9155236152e7c4b7c
2018-07-24scripted-diff: Remove trailing whitespacesJoão Barbosa
-BEGIN VERIFY SCRIPT- sed --in-place'' --regexp-extended 's/[[:space:]]+$//g' $(git grep -I --files-with-matches --extended-regexp '[[:space:]]+$' -- src test ':!*.svg' ':!src/crypto/sha256_sse4*' ':!src/leveldb' ':!src/qt/locale' ':!src/secp256k1' ':!src/univalue') -END VERIFY SCRIPT-
2018-06-18gui: Remove QT_VERSION fallbacks for Qt < 5Wladimir J. van der Laan
There were surprisingly many `#ifdef` fallbacks for Qt 4. Remiving them simplifies maintenance, as well as adding new GUI functionality.
2017-08-18Document the preference of nullptr over NULL or (void*)0practicalswift
2015-07-15qt: update forgotten emit to Q_EMIT in macdockiconhandler.mmWladimir J. van der Laan
Leftover from #6433
2015-03-13[QT] some mac specifiy cleanup (memory handling, unnecessary code)Jonas Schnelli
2015-03-12[QT] fix OSX dock icon window reopeningJonas Schnelli
fixes #5878
2014-12-16Remove references to X11 licenceMichael Ford
2014-07-30Replace the temporary file hack currently used to change Bitcoin-Qt's dock ↵Doug
icon (OS X) with a buffer-based solution.
2014-05-29osx: Fix missing dock menu with qt5Cory Fields
Qt5 Removed the qt_mac_set_dock_menu function and left no replacement. It was later re-added and deprecated for backwards-compatibility. Qt5.2 adds the non-deprecated QMenu::setAsDockMenu(). Use that when possible.
2013-12-17[Qt] style-police, add missing license headersPhilip Kaufmann
- add missing license headers in Mac files - small code formating cleanups
2013-11-26qt: restore icon dock menutheuni
This was removed by 25c0cce7f. It was apparently removed in qt5, but may return for 5.1.
2013-06-04osx: fix bitcoin-qt startup crash when clicking dock iconCory Fields
Crash probably introduced by 4d17a1b0. Inialize the window to NULL and verify it before use.
2013-06-01Qt5 compatibilityWladimir J. van der Laan
This commit squashes all the changes in the Qt5 branch relative to master. Backward compatibility with Qt4 is retained. Original authors: - Philip Kaufmann <phil.kaufmann@t-online.de> - Jonas Schnelli <jonas.schnelli@include7.ch>
2013-04-15fix: GUI Disappearing #1522 (Mac OSX)Jonas Schnelli
- this solution works stable on mac and ensures that the window get's reopened when the user clicks the dock icon . - tested on 10.8 with Qt4.8.4 and Qt5.0.1 Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
2013-03-17Bitcoin-Qt: massive header and cpp cleanupPhilip Kaufmann
- try to enforce the same style to all Qt related files - remove unneeded includes from the files - add missing Q_OBJECT, QT_BEGIN_NAMESPACE / QT_END_NAMESPACE - prepares for a pull-req to include Qt5 compatibility
2012-09-22Update Qt includefanquake
Update Qmenu include This is to be more consistent with the rest of the source Update Qt Includes
2011-10-09Improved Mac experience; QDoubleSpinBox for BitcoinAmountFieldp2k
Now it can't be told if this is was a Windows App before. All Mac design principles are fulfilled and some cosmetics have been applied to suit the native look and feel. The biggest change there is the proper use of the Dock icon which takes the role of the Tray icon on Mac. The QDoubleSpinBox improves entering of Bitcoin amounts, no two separate fields are required anymore. All functionality and validation effects have been retained; pressing the comma key will be internally translated to a period to keep it consistent throughout the application and eases entering in countries which use the comma as decimal separator. Additionally, Notificator now supports Growl, Mac's native notification system. This is provided via Apple Script in order to avoid linking to Growl on compile time. Other changes involve encapsulation of Toolbar and Menubar creation, loading of Qt's own translation and some clean up.