qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GenericForm Class Referenceabstract

#include <genericsettings.h>

Inheritance diagram for GenericForm:
Inheritance graph
Collaboration diagram for GenericForm:
Collaboration graph

Public Slots

virtual void reloadTheme ()
 

Public Member Functions

 GenericForm (const QPixmap &icon)
 
virtual ~GenericForm ()
 
virtual QString getFormName ()=0
 
QPixmap getFormIcon ()
 

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e) final
 Ignore scroll on different controls. More...
 
void eventsInit ()
 Prevent stealing mouse wheel scroll. More...
 

Protected Attributes

QPixmap formIcon
 

Detailed Description

This is abstract class used as superclass for all settings forms. It provides correct behaviour of controls for settings forms.

Definition at line 24 of file genericsettings.h.

Constructor & Destructor Documentation

◆ GenericForm()

GenericForm::GenericForm ( const QPixmap &  icon)
explicit

Definition at line 35 of file genericsettings.cpp.

Here is the call graph for this function:

◆ ~GenericForm()

virtual GenericForm::~GenericForm ( )
inlinevirtual

Definition at line 29 of file genericsettings.h.

Member Function Documentation

◆ eventFilter()

bool GenericForm::eventFilter ( QObject *  o,
QEvent *  e 
)
finalprotected

Ignore scroll on different controls.

Parameters
oObject which has been installed for the watched object.
eEvent object.
Returns
True to stop it being handled further, false otherwise.

Definition at line 76 of file genericsettings.cpp.

◆ eventsInit()

void GenericForm::eventsInit ( )
protected

Prevent stealing mouse wheel scroll.

Scrolling event won't be transmitted to comboboxes or spinboxes. You can scroll through general settings without accidentially changing theme / skin / icons etc.

See also
GenericForm::eventFilter(QObject *o, QEvent *e) at the bottom of this file for more

Definition at line 54 of file genericsettings.cpp.

Here is the caller graph for this function:

◆ getFormIcon()

QPixmap GenericForm::getFormIcon ( )

Definition at line 41 of file genericsettings.cpp.

◆ getFormName()

virtual QString GenericForm::getFormName ( )
pure virtual

◆ reloadTheme

virtual void GenericForm::reloadTheme ( )
inlinevirtualslot

Definition at line 37 of file genericsettings.h.

Here is the caller graph for this function:

Member Data Documentation

◆ formIcon

QPixmap GenericForm::formIcon
protected

Definition at line 44 of file genericsettings.h.


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