Skip to content

Class QfScreenDimmer

ClassList > QfScreenDimmer

The QfScreenDimmer class handles dimming of screen brightness.

  • #include <qfscreendimmer.h>

Inherits the following classes: QObject

Public Functions

Type Name
QfScreenDimmer (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 QfScreenDimmer

explicit QfScreenDimmer::QfScreenDimmer (
    QgsApplication * app
) 

function setSuspend

void QfScreenDimmer::setSuspend (
    bool suspend
) 

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


function setTimeout

void QfScreenDimmer::setTimeout (
    int timeoutSeconds
) 

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


Protected Functions Documentation

function eventFilter

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


The documentation for this class was generated from the following file src/app/qfscreendimmer.h