config moved to c++ plugin, removed old qml + fileview implementation
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#include "Utilities.hpp"
|
||||
|
||||
UtilitiesSizes::UtilitiesSizes(QObject *parent) : ConfigSection(parent) {
|
||||
m_toastWidth = 430;
|
||||
m_width = 430;
|
||||
wireSignals();
|
||||
}
|
||||
|
||||
Toasts::Toasts(QObject *parent) : ConfigSection(parent) {
|
||||
m_audioInputChanged = true;
|
||||
m_audioOutputChanged = true;
|
||||
m_capsLockChanged = true;
|
||||
m_chargingChanged = true;
|
||||
m_configLoaded = true;
|
||||
m_dndChanged = true;
|
||||
m_gameModeChanged = true;
|
||||
m_kbLayoutChanged = true;
|
||||
m_kbLimit = true;
|
||||
m_nowPlaying = false;
|
||||
m_numLockChanged = true;
|
||||
m_vpnChanged = true;
|
||||
wireSignals();
|
||||
}
|
||||
|
||||
Vpn::Vpn(QObject *parent) : ConfigSection(parent) {
|
||||
m_enabled = false;
|
||||
m_provider = { QStringLiteral("netbird") };
|
||||
wireSignals();
|
||||
}
|
||||
|
||||
Utilities::Utilities(QObject *parent) : ConfigSection(parent) {
|
||||
m_enabled = true;
|
||||
m_maxToasts = 4;
|
||||
m_sizes = new UtilitiesSizes(this);
|
||||
m_toasts = new Toasts(this);
|
||||
m_vpn = new Vpn(this);
|
||||
wireSignals();
|
||||
}
|
||||
Reference in New Issue
Block a user