MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / OnLoad

Method OnLoad

Src/ParameterCompone/ParameterBase.cpp:43–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43int CParameterBase::OnLoad(QSettings &set)
44{
45 SetServerName(set.value("ServerName", GetServerName()).toString());
46 SetShowServerName(set.value("ShowServerName", GetShowServerName()).toBool());
47 SetOnlyView(set.value("OnlyView", GetOnlyView()).toBool());
48 SetLocalCursor(set.value("LocalCursor", GetLocalCursor()).toBool());
49 SetCursorPosition(set.value("CursorPosition", GetCursorPosition()).toBool());
50 SetClipboard(set.value("Clipboard", GetClipboard()).toBool());
51 SetSupportsDesktopResize(set.value("SupportsDesktopResize",
52 GetSupportsDesktopResize()).toBool());
53 SetLedState(set.value("LedState", GetLedState()).toBool());
54 SetZoomFactor(set.value("Viewer/ZoomFactor", GetZoomFactor()).toDouble());
55 SetAdaptWindows(
56 (CFrmViewer::ADAPT_WINDOWS)
57 set.value("Viewer/AdaptType",
58 (int)GetPluginParameters()->GetAdaptWindows()).toInt());
59 SetEnableLocalInputMethod(set.value("LocalInputMethod", GetEnableLocalInputMethod()).toBool());
60 return CParameterOperate::OnLoad(set);
61}
62
63int CParameterBase::OnSave(QSettings &set)
64{

Callers

nothing calls this directly

Calls 1

GetAdaptWindowsMethod · 0.45

Tested by

no test coverage detected