Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Rename sabEnabled to sapEnabled
Agata Cacko3f3610c7ede6
diff --git a/libs/ui/dialogs/kis_dlg_preferences.cc b/libs/ui/dialogs/kis_dlg_preferences.ccindex ca92b6aa3e..f24c64dea8 100644--- a/libs/ui/dialogs/kis_dlg_preferences.cc+++ b/libs/ui/dialogs/kis_dlg_preferences.cc@@ -404,24 +404,24 @@ GeneralTab::GeneralTab(QWidget *_parent, const char *_name)intZoomMarginSize->setValue(cfg.zoomMarginSize());- bool sabEnabled = cfg.selectionActionBar();+ bool sapEnabled = cfg.selectionActionBar();- chkEnableSelectionActionBar->setChecked(sabEnabled);+ chkEnableSelectionActionBar->setChecked(sapEnabled);selectionActionsBarPositionComboBox->setCurrentIndex(cfg.selectionActionBarPosition());selectionActionsBarBehaviorComboBox->setCurrentIndex(cfg.selectionActionBarBehavior());selectionActionsBarOrietationComboBox->setCurrentIndex(cfg.selectionActionBarOrientation());bool positionEnabled = (KisConfig::SelectionActionsBarBehavior)selectionActionsBarBehaviorComboBox->currentIndex()== KisConfig::SelectionActionsBarBehavior::Fixed- && sabEnabled;+ && sapEnabled;selectionActionsBarPositionComboBox->setEnabled(positionEnabled);selectionActionsBarPositionLabel->setEnabled(positionEnabled);- selectionActionsBarBehaviorComboBox->setEnabled(sabEnabled);- selectionActionsBarBehaviorLabel->setEnabled(sabEnabled);+ selectionActionsBarBehaviorComboBox->setEnabled(sapEnabled);+ selectionActionsBarBehaviorLabel->setEnabled(sapEnabled);- selectionActionsBarOrietationComboBox->setEnabled(sabEnabled);- selectionActionsBarOrietationLabel->setEnabled(sabEnabled);+ selectionActionsBarOrietationComboBox->setEnabled(sapEnabled);+ selectionActionsBarOrietationLabel->setEnabled(sapEnabled);connect(selectionActionsBarBehaviorComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(selectionActionsBarBehaviorChanged(int)));#if (QT_VERSION > QT_VERSION_CHECK(6, 7, 0))