MCPcopy Create free account
hub / github.com/IgKh/katvan / editorFontZoomFactorChanged

Method editorFontZoomFactorChanged

shell/katvan_mainwindow.cpp:1020–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018}
1019
1020void MainWindow::editorFontZoomFactorChanged(qreal factor)
1021{
1022 int factorPercentage = qRound(factor * 100);
1023 if (factorPercentage == 100) {
1024 d_fontZoomFactorButton->hide();
1025 }
1026 else {
1027 d_fontZoomFactorButton->setText(QStringLiteral("%1%").arg(factorPercentage));
1028 d_fontZoomFactorButton->show();
1029 }
1030}
1031
1032void MainWindow::toggleCursorMovementStyle()
1033{

Callers

nothing calls this directly

Calls 3

hideMethod · 0.80
setTextMethod · 0.80
showMethod · 0.80

Tested by

no test coverage detected