mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
26 lines
447 B
C++
26 lines
447 B
C++
|
#include "Configuration.h"
|
||
|
|
||
|
Configuration* Configuration::mPtr = nullptr;
|
||
|
|
||
|
Configuration::Configuration() : QObject()
|
||
|
{
|
||
|
mPtr = this;
|
||
|
}
|
||
|
|
||
|
Configuration* Configuration::instance()
|
||
|
{
|
||
|
return mPtr;
|
||
|
}
|
||
|
|
||
|
const QFont Configuration::getFont() const
|
||
|
{
|
||
|
QFont font = s.value("font", QFont("Monospace", 12)).value<QFont>();
|
||
|
return font;
|
||
|
}
|
||
|
|
||
|
void Configuration::setFont(const QFont &font)
|
||
|
{
|
||
|
s.setValue("font", font);
|
||
|
emit fontsUpdated();
|
||
|
}
|