Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

macdockiconhandler.mm File Reference
#include "macdockiconhandler.h"
#include <AppKit/AppKit.h>
#include <objc/runtime.h>
+ Include dependency graph for macdockiconhandler.mm:

Go to the source code of this file.

Functions

void qt_mac_set_dock_menu (QMenu *)
 
bool dockClickHandler (id self, SEL _cmd,...)
 
void setupDockClickHandler ()
 
void ForceActivation ()
 Force application activation on macOS. More...
 

Variables

static MacDockIconHandlers_instance = nullptr
 

Function Documentation

◆ dockClickHandler()

bool dockClickHandler ( id  self,
SEL  _cmd,
  ... 
)

Definition at line 16 of file macdockiconhandler.mm.

References MacDockIconHandler::dockIconClicked(), and s_instance.

Referenced by setupDockClickHandler().

◆ ForceActivation()

void ForceActivation ( )

Force application activation on macOS.

With Qt 5.5.1 this is required when an action in the Dock menu is triggered. TODO: Define a Qt version where it's no-longer necessary.

Definition at line 54 of file macdockiconhandler.mm.

Referenced by GUIUtil::bringToFront().

◆ qt_mac_set_dock_menu()

void qt_mac_set_dock_menu ( QMenu *  )

◆ setupDockClickHandler()

void setupDockClickHandler ( )

Definition at line 26 of file macdockiconhandler.mm.

References dockClickHandler().

Referenced by MacDockIconHandler::MacDockIconHandler().

Variable Documentation

◆ s_instance

Released under the MIT license