![]() |
Qt 6.x
The Qt SDK
|
Disables App Nap by registering a background activity. More...
#include <qtestutil_macos_p.h>
Collaboration diagram for QTestPrivate::AppNapDisabler:Public Member Functions | |
| AppNapDisabler () | |
| ~AppNapDisabler () | |
| AppNapDisabler (const AppNapDisabler &)=delete | |
| AppNapDisabler & | operator= (const AppNapDisabler &)=delete |
Disables App Nap by registering a background activity.
App Nap remains disabled as long as the AppNapDisabler instance exists.
Definition at line 27 of file qtestutil_macos_p.h.
| QTestPrivate::AppNapDisabler::AppNapDisabler | ( | ) |
Creates an AppNapDisabler instance and starts a NSActivityBackground activity.
Definition at line 64 of file qtestutil_macos.mm.
| QTestPrivate::AppNapDisabler::~AppNapDisabler | ( | ) |
Destroys the AppNapDisabler instance and ends the NSActivityBackground activity.
Definition at line 74 of file qtestutil_macos.mm.
References release().
Here is the call graph for this function:
|
delete |
|
delete |