Ticket #46607: qt4-correct-systraymenu-iconhandling.patch
File qt4-correct-systraymenu-iconhandling.patch, 927 bytes (added by RJVB (René Bertin), 10 years ago) |
---|
-
qsystemtrayicon_mac.mm
old new 341 341 -(void)mousePressed:(NSEvent *)mouseEvent button:(Qt::MouseButton)mouseButton 342 342 { 343 343 down = YES; 344 int clickCount = [mouseEvent clickCount]; 344 int clickCount = [mouseEvent clickCount]; 345 345 [self setNeedsDisplay:YES]; 346 346 347 347 #ifndef QT_MAC_USE_COCOA … … 532 532 [item setState:action->isChecked() ? NSOnState : NSOffState]; 533 533 [item setToolTip:(NSString*)QCFString::toCFStringRef(action->toolTip())]; 534 534 const QIcon icon = action->icon(); 535 if(!icon.isNull()) { 535 // RJVB 20140915: don't forget to check against isIconVisibleInMenu()! 536 if(!icon.isNull() && action->isIconVisibleInMenu()) { 536 537 #ifndef QT_MAC_USE_COCOA 537 538 const short scale = GetMBarHeight(); 538 539 #else