mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-22 02:34:30 +00:00
depends: qt: cocoa no application badge
This commit is contained in:
parent
ea246e17e0
commit
0f814403d2
2 changed files with 32 additions and 0 deletions
|
@ -10,6 +10,7 @@ $(package)_linux_dependencies=openssl native_qt freetype fontconfig libxcb libxk
|
|||
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
||||
$(package)_linguist_tools = lrelease lupdate lconvert
|
||||
$(package)_patches = aarch64Toolchain.cmake
|
||||
$(package)_patches += cocoa-no-badge.patch
|
||||
$(package)_patches += dont_hardcode_pwd.patch
|
||||
$(package)_patches += fast_fixed_dtoa_no_optimize.patch
|
||||
$(package)_patches += gnueabihfToolchain.cmake
|
||||
|
@ -263,6 +264,9 @@ define $(package)_preprocess_cmds
|
|||
mv $($(package)_patch_dir)/MacToolchain.cmake . && \
|
||||
mv $($(package)_patch_dir)/aarch64Toolchain.cmake . && \
|
||||
mv $($(package)_patch_dir)/gnueabihfToolchain.cmake . && \
|
||||
cd qtbase && \
|
||||
patch -p1 -i $($(package)_patch_dir)/cocoa-no-badge.patch && \
|
||||
cd .. && \
|
||||
cd qtmultimedia && \
|
||||
patch -p1 -i $($(package)_patch_dir)/qtmultimedia-fixes.patch && \
|
||||
patch -p1 -i $($(package)_patch_dir)/v4l2.patch && \
|
||||
|
|
28
contrib/depends/patches/qt/cocoa-no-badge.patch
Normal file
28
contrib/depends/patches/qt/cocoa-no-badge.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.h b/src/plugins/platforms/cocoa/qcocoaintegration.h
|
||||
index 256b7b36ad..c6d73e3c06 100644
|
||||
--- a/src/plugins/platforms/cocoa/qcocoaintegration.h
|
||||
+++ b/src/plugins/platforms/cocoa/qcocoaintegration.h
|
||||
@@ -90,7 +90,6 @@ public:
|
||||
void clearToolbars();
|
||||
|
||||
void setApplicationIcon(const QIcon &icon) const override;
|
||||
- void setApplicationBadge(qint64 number) override;
|
||||
|
||||
void beep() const override;
|
||||
void quit() const override;
|
||||
diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.mm b/src/plugins/platforms/cocoa/qcocoaintegration.mm
|
||||
index 2ec225cbea..b17ab38b10 100644
|
||||
--- a/src/plugins/platforms/cocoa/qcocoaintegration.mm
|
||||
+++ b/src/plugins/platforms/cocoa/qcocoaintegration.mm
|
||||
@@ -438,11 +438,6 @@ void QCocoaIntegration::setApplicationIcon(const QIcon &icon) const
|
||||
NSApp.applicationIconImage = [NSImage imageFromQIcon:icon withSize:fallbackSize];
|
||||
}
|
||||
|
||||
-void QCocoaIntegration::setApplicationBadge(qint64 number)
|
||||
-{
|
||||
- NSApp.dockTile.badgeLabel = number ? [NSString stringWithFormat:@"%" PRId64, number] : nil;
|
||||
-}
|
||||
-
|
||||
void QCocoaIntegration::beep() const
|
||||
{
|
||||
NSBeep();
|
Loading…
Reference in a new issue