Krita Source Code Documentation
Loading...
Searching...
No Matches
WGConfig::GenericSetting< T > Struct Template Reference

#include <WGConfig.h>

Public Types

typedef T ValueType
 

Public Member Functions

readValue (const KConfigGroup &group) const
 
void writeValue (KConfigGroup &group, const T &value) const
 

Public Attributes

defaultValue
 
QString name
 

Detailed Description

template<class T>
struct WGConfig::GenericSetting< T >

Definition at line 23 of file WGConfig.h.

Member Typedef Documentation

◆ ValueType

template<class T >
typedef T WGConfig::GenericSetting< T >::ValueType

Definition at line 25 of file WGConfig.h.

Member Function Documentation

◆ readValue()

template<class T >
T WGConfig::GenericSetting< T >::readValue ( const KConfigGroup & group) const
inline

Definition at line 27 of file WGConfig.h.

28 {
29 return group.readEntry(name, defaultValue);
30 }

References WGConfig::GenericSetting< T >::defaultValue, and WGConfig::GenericSetting< T >::name.

◆ writeValue()

template<class T >
void WGConfig::GenericSetting< T >::writeValue ( KConfigGroup & group,
const T & value ) const
inline

Definition at line 32 of file WGConfig.h.

33 {
34 group.writeEntry(name, value);
35 }
float value(const T *src, size_t ch)

References WGConfig::GenericSetting< T >::name, and value().

Member Data Documentation

◆ defaultValue

template<class T >
T WGConfig::GenericSetting< T >::defaultValue

Definition at line 38 of file WGConfig.h.

◆ name

template<class T >
QString WGConfig::GenericSetting< T >::name

Definition at line 37 of file WGConfig.h.


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