Skip to content

Class ScreenDimmer

ClassList > ScreenDimmer

The ScreenDimmer class handles dimming of screen brightness.

  • #include <screendimmer.h>

Inherits the following classes: QObject

Public Functions

Type Name
ScreenDimmer (QgsApplication * app)
void setSuspend (bool suspend)
void setTimeout (int timeoutSeconds)

Protected Functions

Type Name
bool eventFilter (QObject * obj, QEvent * event) override

Public Functions Documentation

function ScreenDimmer

explicit ScreenDimmer::ScreenDimmer (
    QgsApplication * app
) 

function setSuspend

void ScreenDimmer::setSuspend (
    bool suspend
) 

Temporarily suspends the screen dimmer when suspend is set to TRUE.


function setTimeout

void ScreenDimmer::setTimeout (
    int timeoutSeconds
) 

Sets dim timeout as timeoutSeconds in seconds. Disables dim screen if 0.


Protected Functions Documentation

function eventFilter

bool ScreenDimmer::eventFilter (
    QObject * obj,
    QEvent * event
) override


The documentation for this class was generated from the following file src/core/screendimmer.h