| 941 | } |
| 942 | |
| 943 | void TabWidget::updateZoomValue(int value) |
| 944 | { |
| 945 | auto editor = d->currentTextEditor(); |
| 946 | if (editor->hasFocus()) |
| 947 | editor->updateLineNumberWidth(false); |
| 948 | |
| 949 | // update other editor |
| 950 | for (auto other : d->editorMng.values()) { |
| 951 | if (editor == other && editor->hasFocus()) |
| 952 | continue; |
| 953 | |
| 954 | // Disconnect first to prevent loop triggering |
| 955 | disconnect(other, &TextEditor::zoomValueChanged, this, &TabWidget::zoomValueChanged); |
| 956 | other->zoomTo(value); |
| 957 | other->updateLineNumberWidth(false); |
| 958 | connect(other, &TextEditor::zoomValueChanged, this, &TabWidget::zoomValueChanged); |
| 959 | } |
| 960 | } |
| 961 | |
| 962 | int TabWidget::backgroundMarkerDefine(const QString &fileName, const QColor &color, int defaultMarker) |
| 963 | { |
no test coverage detected