Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosCloseEventContext Class Reference

#include <qohoscloseeventcontext_p.h>

Collaboration diagram for QOhosCloseEventContext:

Public Types

enum class  CloseRootCause { NotSpecified , OnPrepareToTerminate , WindowStageClose , SubWindowClose }
enum class  CloseResolution { Reject , Close }

Static Public Member Functions

static CloseRootCause getCloseRootCauseForEventOrDefault (QEvent *event)
static void runWithCloseRootCauseSet (CloseRootCause rootCause, const std::function< void()> &task)
static void runWithCloseRootCauseAndCloseResolutionConsumerSet (CloseRootCause rootCause, QOhosConsumer< CloseResolution > closeResolutionConsumer, const std::function< void()> &task)
static void notifyCloseResolutionFromEventIfValid (QEvent *event)

Detailed Description

Definition at line 26 of file qohoscloseeventcontext_p.h.

Member Enumeration Documentation

◆ CloseResolution

Enumerator
Reject 
Close 

Definition at line 37 of file qohoscloseeventcontext_p.h.

◆ CloseRootCause

Enumerator
NotSpecified 
OnPrepareToTerminate 
WindowStageClose 
SubWindowClose 

Definition at line 29 of file qohoscloseeventcontext_p.h.

Member Function Documentation

◆ getCloseRootCauseForEventOrDefault()

QOhosCloseEventContext::CloseRootCause QOhosCloseEventContext::getCloseRootCauseForEventOrDefault ( QEvent * event)
static

Definition at line 43 of file qohoscloseeventcontext.cpp.

◆ notifyCloseResolutionFromEventIfValid()

void QOhosCloseEventContext::notifyCloseResolutionFromEventIfValid ( QEvent * event)
static

Definition at line 49 of file qohoscloseeventcontext.cpp.

◆ runWithCloseRootCauseAndCloseResolutionConsumerSet()

void QOhosCloseEventContext::runWithCloseRootCauseAndCloseResolutionConsumerSet ( CloseRootCause rootCause,
QOhosConsumer< CloseResolution > closeResolutionConsumer,
const std::function< void()> & task )
static

◆ runWithCloseRootCauseSet()

void QOhosCloseEventContext::runWithCloseRootCauseSet ( CloseRootCause rootCause,
const std::function< void()> & task )
static

Definition at line 23 of file qohoscloseeventcontext.cpp.


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