Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Qt6: Fix a few broken connections

Freya Lupencb629ea14ae7
diff --git a/libs/ui/input/config/kis_input_configuration_page.cpp b/libs/ui/input/config/kis_input_configuration_page.cpp
index 4a54970753..bc8046515a 100644
--- a/libs/ui/input/config/kis_input_configuration_page.cpp
+++ b/libs/ui/input/config/kis_input_configuration_page.cpp
@@ -39,7 +39,7 @@ KisInputConfigurationPage::KisInputConfigurationPage(QWidget *parent, Qt::Window
ui->profileComboBox->setModel(new KisInputProfileModel(ui->profileComboBox));
updateSelectedProfile();
- connect(ui->profileComboBox, SIGNAL(currentIndexChanged(QString)), SLOT(changeCurrentProfile(QString)));
+ connect(ui->profileComboBox, SIGNAL(currentTextChanged(QString)), SLOT(changeCurrentProfile(QString)));
ui->editProfilesButton->setIcon(KisIconUtils::loadIcon("document-edit"));
diff --git a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp
index 3085b4749c..b89dd763b6 100644
--- a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp
+++ b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyOptionWidget.cpp
@@ -278,7 +278,7 @@ void KarbonCalligraphyOptionWidget::decreaseAngle()
void KarbonCalligraphyOptionWidget::createConnections()
{
- connect(m_comboBox, SIGNAL(currentIndexChanged(QString)),
+ connect(m_comboBox, SIGNAL(currentTextChanged(QString)),
SLOT(loadProfile(QString)));
// propagate changes
diff --git a/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp b/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp
index 747099dc73..64eb9912cc 100644
--- a/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp
+++ b/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp
@@ -64,9 +64,9 @@ KisToolTransformConfigWidget::KisToolTransformConfigWidget(TransformTransactionP
granularityPreview->addItems(granularityValues);
granularityPreview->setCurrentIndex(2);
- connect(changeGranularity,SIGNAL(currentIndexChanged(QString)),
+ connect(changeGranularity,SIGNAL(currentTextChanged(QString)),
this,SLOT(slotGranularityChanged(QString)));
- connect(granularityPreview, SIGNAL(currentIndexChanged(QString)),
+ connect(granularityPreview, SIGNAL(currentTextChanged(QString)),
this,SLOT(slotPreviewGranularityChanged(QString)));
// Init Filter combo
@@ -156,7 +156,7 @@ KisToolTransformConfigWidget::KisToolTransformConfigWidget(TransformTransactionP
cameraHeightBox->setRange(1, 20000, 2);
- connect(m_rotationCenterButtons, SIGNAL(buttonPressed(int)), this, SLOT(slotRotationCenterChanged(int)));
+ connect(m_rotationCenterButtons, SIGNAL(idPressed(int)), this, SLOT(slotRotationCenterChanged(int)));
connect(btnTransformAroundPivotPoint, SIGNAL(clicked(bool)), this, SLOT(slotTransformAroundRotationCenter(bool)));
// Init Free Transform Values
@@ -288,7 +288,7 @@ KisToolTransformConfigWidget::KisToolTransformConfigWidget(TransformTransactionP
// delivery is definite.
connect(cmbFilter, SIGNAL(activated(KoID)), this, SLOT(notifyEditingFinished()));
connect(cmbWarpType, SIGNAL(currentIndexChanged(int)), this, SLOT(notifyEditingFinished()));
- connect(m_rotationCenterButtons, SIGNAL(buttonPressed(int)), this, SLOT(notifyEditingFinished()));
+ connect(m_rotationCenterButtons, SIGNAL(idPressed(int)), this, SLOT(notifyEditingFinished()));
connect(aspectButton, SIGNAL(keepAspectRatioChanged(bool)), this, SLOT(notifyEditingFinished()));
connect(lockUnlockPointsButton, SIGNAL(clicked()), this, SLOT(notifyEditingFinished()));