Definition at line 117 of file qsystemtrayicon_mac.mm.
◆ icon()
◆ initWithParent:()
◆ menuTrackingDone:()
- (void) menuTrackingDone: |
|
(NSNotification*) |
notification |
|
Definition at line 318 of file qsystemtrayicon_mac.mm.
318 :(NSNotification*)notification
324 #ifndef QT_MAC_USE_COCOA 325 const short scale = GetMBarHeight()-4;
327 CGFloat hgt = [[[NSApplication sharedApplication] mainMenu] menuBarHeight];
328 const short scale = hgt - 4;
331 [
self setImage: nsimage];
335 if([
self icon]->contextMenu())
336 [
self icon]->contextMenu()->hide();
338 [
self setNeedsDisplay:YES];
void * qt_mac_create_nsimage(const QPixmap &pm)
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static bool isNull(const QVariant::Private *d)
◆ mousePressed:button:()
- (void) mousePressed: |
|
(NSEvent *) |
mouseEvent |
button: |
|
(Qt::MouseButton) |
mouseButton |
|
|
| |
Definition at line 341 of file qsystemtrayicon_mac.mm.
344 int clickCount = [mouseEvent clickCount];
345 [
self setNeedsDisplay:YES];
347 #ifndef QT_MAC_USE_COCOA 348 const short scale = GetMBarHeight()-4;
350 CGFloat hgt = [[[NSApplication sharedApplication] mainMenu] menuBarHeight];
351 const short scale = hgt - 4;
356 [
self setImage: nsaltimage];
357 [nsaltimage release];
360 if ((clickCount == 2)) {
361 [
self menuTrackingDone:nil];
362 [parent doubleClickSelector:self];
364 [parent triggerSelector:self button:mouseButton];
void * qt_mac_create_nsimage(const QPixmap &pm)
static void mouseEvent(MouseAction action, QWidget *widget, Qt::MouseButton button, Qt::KeyboardModifiers stateKey, QPoint pos, int delay=-1)
The QSize class defines the size of a two-dimensional object using integer point precision.
static bool isNull(const QVariant::Private *d)
◆ down
◆ parent
The documentation for this class was generated from the following file: