From b9d42cf8d7d2b5627eb50efa9ff001f79f7d63c7 Mon Sep 17 00:00:00 2001 From: Luz Paz Date: Wed, 5 Mar 2025 12:42:09 -0500 Subject: [PATCH] Fix various typos Found via codespell --- src/core/Expressions/presets/orbitX.fexpr | 2 +- src/core/Expressions/presets/orbitY.fexpr | 2 +- src/core/appsupport.cpp | 4 ++-- src/ui/widgets/performancesettingswidget.cpp | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/Expressions/presets/orbitX.fexpr b/src/core/Expressions/presets/orbitX.fexpr index 969613d00..ab89b1732 100644 --- a/src/core/Expressions/presets/orbitX.fexpr +++ b/src/core/Expressions/presets/orbitX.fexpr @@ -3,7 +3,7 @@ author=pgilfernandez bindings="frame = $frame;\nvalue =$value " categories= definitions= -description=To be applied to X parameter. It simulates the orbit around an origin with 'translate' X and Y parameters. It could be connected to custom properties to allow easier controll of both expressions +description=To be applied to X parameter. It simulates the orbit around an origin with 'translate' X and Y parameters. It could be connected to custom properties to allow easier control of both expressions highlighters= id=graphics.friction.orbitX license= diff --git a/src/core/Expressions/presets/orbitY.fexpr b/src/core/Expressions/presets/orbitY.fexpr index 8d844cfdd..2141c75dc 100644 --- a/src/core/Expressions/presets/orbitY.fexpr +++ b/src/core/Expressions/presets/orbitY.fexpr @@ -3,7 +3,7 @@ author=pgilfernandez bindings="frame = $frame;\nvalue =$value \n" categories= definitions= -description=To be applied to Y parameter. It simulates the orbit around an origin with 'translate' X and Y parameters. It could be connected to custom properties to allow easier controll of both expressions +description=To be applied to Y parameter. It simulates the orbit around an origin with 'translate' X and Y parameters. It could be connected to custom properties to allow easier control of both expressions highlighters= id=graphics.friction.orbitY license= diff --git a/src/core/appsupport.cpp b/src/core/appsupport.cpp index 9990dc3c4..d7c40815b 100644 --- a/src/core/appsupport.cpp +++ b/src/core/appsupport.cpp @@ -501,13 +501,13 @@ const QString AppSupport::getRasterEffectHardwareSupportString(const QString &ef result = tr("CPU-only"); break; case HardwareSupport::cpuPreffered: - result = tr("CPU preffered"); + result = tr("CPU preferred"); break; case HardwareSupport::gpuOnly: result = tr("GPU-only"); break; case HardwareSupport::gpuPreffered: - result = tr("GPU preffered"); + result = tr("GPU preferred"); break; default:; } diff --git a/src/ui/widgets/performancesettingswidget.cpp b/src/ui/widgets/performancesettingswidget.cpp index 29219aa42..e199d600d 100644 --- a/src/ui/widgets/performancesettingswidget.cpp +++ b/src/ui/widgets/performancesettingswidget.cpp @@ -265,9 +265,9 @@ void PerformanceSettingsWidget::setupRasterEffectWidgets() for (const auto &effect : effects) { const auto box = new QComboBox(this); box->addItem(tr("CPU-only"), static_cast(HardwareSupport::cpuOnly)); - box->addItem(tr("CPU preffered"), static_cast(HardwareSupport::cpuPreffered)); + box->addItem(tr("CPU preferred"), static_cast(HardwareSupport::cpuPreffered)); box->addItem(tr("GPU-only"), static_cast(HardwareSupport::gpuOnly)); - box->addItem(tr("GPU preffered"), static_cast(HardwareSupport::gpuPreffered)); + box->addItem(tr("GPU preferred"), static_cast(HardwareSupport::gpuPreffered)); box->setItemData(0, effect, RASTER_HW_SUPPORT_ID); box->setCurrentText(AppSupport::getRasterEffectHardwareSupportString(effect, defaultSupport)); mRasterEffectsHardwareSupport << box; @@ -302,7 +302,7 @@ void PerformanceSettingsWidget::saveRasterEffectsSupport() void PerformanceSettingsWidget::restoreDefaultRasterEffectsSupport() { for (const auto &box : mRasterEffectsHardwareSupport) { - box->setCurrentText(tr("GPU preffered")); + box->setCurrentText(tr("GPU preferred")); } }