Krita Source Code Documentation
Loading...
Searching...
No Matches
IconsPair Struct Reference

Public Member Functions

const QIcon & getIcon (bool state)
 
 IconsPair ()
 
 IconsPair (const QIcon &_on, const QIcon &_off)
 

Public Attributes

QIcon off
 
QIcon on
 

Detailed Description

Definition at line 41 of file kis_layer_properties_icons.cpp.

Constructor & Destructor Documentation

◆ IconsPair() [1/2]

IconsPair::IconsPair ( )
inline

Definition at line 42 of file kis_layer_properties_icons.cpp.

42{}

◆ IconsPair() [2/2]

IconsPair::IconsPair ( const QIcon & _on,
const QIcon & _off )
inline

Definition at line 43 of file kis_layer_properties_icons.cpp.

Member Function Documentation

◆ getIcon()

const QIcon & IconsPair::getIcon ( bool state)
inline

Definition at line 48 of file kis_layer_properties_icons.cpp.

48 {
49 return state ? on : off;
50 }

References off, and on.

Member Data Documentation

◆ off

QIcon IconsPair::off

Definition at line 46 of file kis_layer_properties_icons.cpp.

◆ on

QIcon IconsPair::on

Definition at line 45 of file kis_layer_properties_icons.cpp.


The documentation for this struct was generated from the following file: