Schim
Functions
global.h File Reference
#include "symbols.h"
#include <QVariant>
#include <QColor>
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Schim::changeSetting (const QString &key, const QVariant &value, bool sync=true)
 
QVariant Schim::getSetting (const QString &key, const QVariant &defaultValue)
 
QString Schim::resolvePath (const QString &path)
 
float Schim::dpiInvariant (float pxInput)
 Take an input in pixels and return a value that is independent of screen DPI.
 

Function Documentation

◆ changeSetting()

void Schim::changeSetting ( const QString &  key,
const QVariant &  value,
bool  sync = true 
)

Change the value of the setting with the specified key.

Parameters
syncWrite the change to the settings file

◆ getSetting()

QVariant Schim::getSetting ( const QString &  key,
const QVariant &  defaultValue 
)

Read the setting with the specified key.

Parameters
defaultValueFallback value if the setting is not found

◆ resolvePath()

QString Schim::resolvePath ( const QString &  path)

Take a loose path and return a file path.

Parameters
pathA loose path, e.g. a component name, path relative to installation directory, real path, etc.