MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / onZoomValueChanged

Method onZoomValueChanged

src/plugins/codeeditor/gui/workspacewidget.cpp:959–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959void 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
972void WorkspaceWidgetPrivate::onFileDeleted(const QString &fileName)
973{

Callers

nothing calls this directly

Calls 3

zoomValueMethod · 0.80
updateZoomValueMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected