QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Functions
QetSettings Namespace Reference

Functions

void setHdpiScaleFactorRoundingPolicy (const QString &policy_str)
 setHdpiScaleFactorRoundingPolicy Write the value of HdpiScaleFactorRoundingPolicy in QElectroTech settings the value is in form of a string. policy can be : Round, Ceil, Floor, RoundPreferFloor, PassThrough In case of wrong policy, PassThrough is use as default value. The value is stored with key : hdpi_scale_factor_rounding_policy
 
void setHdpiScaleFactorRoundingPolicy (Qt::HighDpiScaleFactorRoundingPolicy policy)
 setHdpiScaleFactorRoundingPolicy Overload function
 
Qt::HighDpiScaleFactorRoundingPolicy hdpiScaleFactorRoundingPolicy (Qt::HighDpiScaleFactorRoundingPolicy default_policy)
 hdpiScaleFactorRoundingPolicy
 

Detailed Description

Interface to use QSettings in QElectroTech Prefer use this namespace instead of directly QSettings It's notably useful when some QSettings value are used in different part of QElectroTech source code

Function Documentation

◆ hdpiScaleFactorRoundingPolicy()

Qt::HighDpiScaleFactorRoundingPolicy QetSettings::hdpiScaleFactorRoundingPolicy ( Qt::HighDpiScaleFactorRoundingPolicy  default_policy)

hdpiScaleFactorRoundingPolicy

Parameters
default_policy
Returns
the hdpiScaleFactorRoundingPolicy value stored in current settings.
See also
setHdpiScaleFactorRoundingPolicy
Here is the caller graph for this function:

◆ setHdpiScaleFactorRoundingPolicy() [1/2]

void QetSettings::setHdpiScaleFactorRoundingPolicy ( const QString &  policy_str)

setHdpiScaleFactorRoundingPolicy Write the value of HdpiScaleFactorRoundingPolicy in QElectroTech settings the value is in form of a string. policy can be : Round, Ceil, Floor, RoundPreferFloor, PassThrough In case of wrong policy, PassThrough is use as default value. The value is stored with key : hdpi_scale_factor_rounding_policy

See also
Qt::HighDpiScaleFactorRoundingPolicy
Parameters
policy
Here is the caller graph for this function:

◆ setHdpiScaleFactorRoundingPolicy() [2/2]

void QetSettings::setHdpiScaleFactorRoundingPolicy ( Qt::HighDpiScaleFactorRoundingPolicy  policy)

setHdpiScaleFactorRoundingPolicy Overload function

See also
void setHdpiScaleFactorRoundingPolicy(const QString &policy_str)
Parameters
policy