| 957 | } |
| 958 | |
| 959 | void WorkspaceWidgetPrivate::onZoomValueChanged() |
| 960 | { |
| 961 | auto tabWidget = qobject_cast<TabWidget *>(sender()); |
| 962 | if (!tabWidget) |
| 963 | return; |
| 964 | |
| 965 | int zoomValue = tabWidget->zoomValue(); |
| 966 | int displayZoomValue = 100 + 10 * zoomValue; |
| 967 | EditorSettings::instance()->setValue(Node::FontColor, Group::FontGroup, Key::FontZoom, displayZoomValue, false); |
| 968 | for (auto tabWidget : tabWidgetList) |
| 969 | tabWidget->updateZoomValue(zoomValue); |
| 970 | } |
| 971 | |
| 972 | void WorkspaceWidgetPrivate::onFileDeleted(const QString &fileName) |
| 973 | { |
nothing calls this directly
no test coverage detected