Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTestPrivate::AppNapDisabler Class Reference

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
 
AppNapDisableroperator= (const AppNapDisabler &)=delete
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AppNapDisabler() [1/2]

QTestPrivate::AppNapDisabler::AppNapDisabler ( )

Creates an AppNapDisabler instance and starts a NSActivityBackground activity.

Definition at line 64 of file qtestutil_macos.mm.

◆ ~AppNapDisabler()

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:

◆ AppNapDisabler() [2/2]

QTestPrivate::AppNapDisabler::AppNapDisabler ( const AppNapDisabler & )
delete

Member Function Documentation

◆ operator=()

AppNapDisabler & QTestPrivate::AppNapDisabler::operator= ( const AppNapDisabler & )
delete

The documentation for this class was generated from the following files: