| 41 | } |
| 42 | |
| 43 | int 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 | |
| 63 | int CParameterBase::OnSave(QSettings &set) |
| 64 | { |
nothing calls this directly
no test coverage detected