Commit e83b4202 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor EBN issues and typos

parent af83608f
......@@ -86,7 +86,7 @@ KisDlgAdjLayerProps::KisDlgAdjLayerProps(KisNodeSP node,
m_layerName->setText(layerName);
m_layerName->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
hl->addWidget(m_layerName, 10);
connect(m_layerName, SIGNAL(textChanged(const QString &)), this, SLOT(slotNameChanged(const QString &)));
connect(m_layerName, SIGNAL(textChanged(QString)), this, SLOT(slotNameChanged(QString)));
if (m_currentFilter) {
m_currentConfigWidget = m_currentFilter->createConfigurationWidget(page, paintDevice);
......
......@@ -103,7 +103,7 @@ KisDlgLayerProperties::KisDlgLayerProperties(KisNodeList nodes, KisViewManager *
d->nameProperty->connectIgnoreCheckBox(d->page->chkName);
d->nameProperty->connectAutoEnableWidget(d->page->editName);
d->nameProperty->connectValueChangedSignal(this, SLOT(slotNameValueChangedInternally()));
connect(d->page->editName, SIGNAL(textChanged(const QString &)), SLOT(slotNameValueChangedExternally()));
connect(d->page->editName, SIGNAL(textChanged(QString)), SLOT(slotNameValueChangedExternally()));
d->page->intOpacity->setRange(0, 100);
d->page->intOpacity->setSuffix("%");
......
......@@ -290,7 +290,7 @@ void KisShapeLayer::initShapeLayer(KoShapeControllerBase* controller, KisPaintDe
connect(m_d->canvas->selectedShapesProxy(), SIGNAL(currentLayerChanged(const KoShapeLayer*)),
this, SIGNAL(currentLayerChanged(const KoShapeLayer*)));
connect(this, SIGNAL(sigMoveShapes(const QPointF&)), SLOT(slotMoveShapes(const QPointF&)));
connect(this, SIGNAL(sigMoveShapes(QPointF)), SLOT(slotMoveShapes(QPointF)));
}
bool KisShapeLayer::allowAsChild(KisNodeSP node) const
......
......@@ -51,8 +51,8 @@ KisAutogradient::KisAutogradient(KoSegmentGradient* gradient, QWidget *parent, c
connect(gradientSlider, SIGNAL(sigChangedSegment(KoGradientSegment*)), SLOT(slotChangedSegment(KoGradientSegment*)));
connect(comboBoxColorInterpolationType, SIGNAL(activated(int)), SLOT(slotChangedColorInterpolation(int)));
connect(comboBoxInterpolationType, SIGNAL(activated(int)), SLOT(slotChangedInterpolation(int)));
connect(leftColorButton, SIGNAL(changed(const KoColor&)), SLOT(slotChangedLeftColor(const KoColor&)));
connect(rightColorButton, SIGNAL(changed(const KoColor&)), SLOT(slotChangedRightColor(const KoColor&)));
connect(leftColorButton, SIGNAL(changed(KoColor)), SLOT(slotChangedLeftColor(KoColor)));
connect(rightColorButton, SIGNAL(changed(KoColor)), SLOT(slotChangedRightColor(KoColor)));
connect(intNumInputLeftOpacity, SIGNAL(valueChanged(int)), SLOT(slotChangedLeftOpacity(int)));
connect(intNumInputRightOpacity, SIGNAL(valueChanged(int)), SLOT(slotChangedRightOpacity(int)));
......
......@@ -36,8 +36,8 @@ KisBookmarkedConfigurationsEditor::KisBookmarkedConfigurationsEditor(QWidget* pa
d->editorUi.listConfigurations->setModel(d->model);
connect(d->editorUi.pushButtonClose, SIGNAL(pressed()), SLOT(accept()));
connect(d->editorUi.listConfigurations->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)),
this, SLOT(currentConfigChanged(const QItemSelection&, const QItemSelection&)));
connect(d->editorUi.listConfigurations->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
this, SLOT(currentConfigChanged(QItemSelection,QItemSelection)));
currentConfigChanged(d->editorUi.listConfigurations->selectionModel()->selection(),
d->editorUi.listConfigurations->selectionModel()->selection());
......
......@@ -103,7 +103,7 @@ void KisFilterManager::setup(KActionCollection * ac, KisActionManager *actionMan
d->reapplyAction->setEnabled(false);
connect(d->reapplyAction, SIGNAL(triggered()), SLOT(reapplyLastFilter()));
connect(&d->actionsMapper, SIGNAL(mapped(const QString&)), SLOT(showFilterDialog(const QString&)));
connect(&d->actionsMapper, SIGNAL(mapped(QString)), SLOT(showFilterDialog(QString)));
// Setup list of filters
QStringList keys = KisFilterRegistry::instance()->keys();
......@@ -112,7 +112,7 @@ void KisFilterManager::setup(KActionCollection * ac, KisActionManager *actionMan
insertFilter(filterName);
}
connect(KisFilterRegistry::instance(), SIGNAL(filterAdded(QString)), SLOT(insertFilter(const QString &)));
connect(KisFilterRegistry::instance(), SIGNAL(filterAdded(QString)), SLOT(insertFilter(QString)));
}
void KisFilterManager::insertFilter(const QString & filterName)
......
......@@ -441,7 +441,7 @@ KisPaintopBox::KisPaintopBox(KisViewManager *view, QWidget *parent, const char *
connect(m_presetsChooserPopup, SIGNAL(resourceSelected(KoResource*)) , SLOT(resourceSelected(KoResource*)));
connect(m_presetsChooserPopup, SIGNAL(resourceClicked(KoResource*)) , SLOT(resourceSelected(KoResource*)));
connect(m_resourceProvider , SIGNAL(sigNodeChanged(const KisNodeSP)) , SLOT(slotNodeChanged(const KisNodeSP)));
connect(m_resourceProvider , SIGNAL(sigNodeChanged(KisNodeSP)) , SLOT(slotNodeChanged(KisNodeSP)));
connect(m_cmbCompositeOp , SIGNAL(currentIndexChanged(int)) , SLOT(slotSetCompositeMode(int)));
connect(m_eraseAction , SIGNAL(toggled(bool)) , SLOT(slotToggleEraseMode(bool)));
connect(alphaLockAction , SIGNAL(toggled(bool)) , SLOT(slotToggleAlphaLockMode(bool)));
......
......@@ -224,7 +224,7 @@ void KisSelectionManager::setup(KisActionManager* actionManager)
void KisSelectionManager::setView(QPointer<KisView>imageView)
{
if (m_imageView && m_imageView->canvasBase()) {
disconnect(m_imageView->canvasBase()->toolProxy(), SIGNAL(toolChanged(const QString&)), this, SLOT(clipboardDataChanged()));
disconnect(m_imageView->canvasBase()->toolProxy(), SIGNAL(toolChanged(QString)), this, SLOT(clipboardDataChanged()));
KoSelection *selection = m_imageView->canvasBase()->globalShapeManager()->selection();
selection->disconnect(this, SLOT(shapeSelectionChanged()));
......@@ -249,7 +249,7 @@ void KisSelectionManager::setView(QPointer<KisView>imageView)
m_selectionDecoration = decoration;
connect(this, SIGNAL(currentSelectionChanged()), decoration, SLOT(selectionChanged()));
connect(m_imageView->image()->undoAdapter(), SIGNAL(selectionChanged()), SLOT(selectionChanged()));
connect(m_imageView->canvasBase()->toolProxy(), SIGNAL(toolChanged(const QString&)), SLOT(clipboardDataChanged()));
connect(m_imageView->canvasBase()->toolProxy(), SIGNAL(toolChanged(QString)), SLOT(clipboardDataChanged()));
}
}
......
......@@ -88,8 +88,8 @@ void KisStatusBar::setup()
m_statusBarStatusLabel->setObjectName("statsBarStatusLabel");
m_statusBarStatusLabel->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
m_statusBarStatusLabel->setContentsMargins(5, 5, 5, 5);
connect(KoToolManager::instance(), SIGNAL(changedStatusText(const QString &)),
m_statusBarStatusLabel, SLOT(setText(const QString &)));
connect(KoToolManager::instance(), SIGNAL(changedStatusText(QString)),
m_statusBarStatusLabel, SLOT(setText(QString)));
addStatusBarItem(m_statusBarStatusLabel, 2);
m_statusBarStatusLabel->setVisible(false);
......@@ -155,7 +155,7 @@ void KisStatusBar::setView(QPointer<KisView> imageView)
this, SLOT(updateStatusBarProfileLabel()));
connect(m_imageView, SIGNAL(sigProfileChanged(const KoColorProfile*)),
this, SLOT(updateStatusBarProfileLabel()));
connect(m_imageView, SIGNAL(sigSizeChanged(const QPointF&, const QPointF&)),
connect(m_imageView, SIGNAL(sigSizeChanged(QPointF,QPointF)),
this, SLOT(imageSizeChanged()));
updateStatusBarProfileLabel();
addStatusBarItem(m_imageView->zoomManager()->zoomActionWidget());
......
......@@ -119,7 +119,7 @@ void KisZoomManager::setup(KActionCollection * actionCollection)
KisImageWSP image = m_view->image();
if (!image) return;
connect(image, SIGNAL(sigSizeChanged(const QPointF &, const QPointF &)), this, SLOT(setMinMaxZoom()));
connect(image, SIGNAL(sigSizeChanged(QPointF,QPointF)), this, SLOT(setMinMaxZoom()));
KisCoordinatesConverter *converter =
dynamic_cast<KisCoordinatesConverter*>(m_zoomHandler);
......@@ -167,7 +167,7 @@ void KisZoomManager::setup(KActionCollection * actionCollection)
m_horizontalRuler->setPopupActionList(unitActions);
m_verticalRuler->setPopupActionList(unitActions);
connect(m_view->document(), SIGNAL(unitChanged(const KoUnit&)), SLOT(applyRulersUnit(const KoUnit&)));
connect(m_view->document(), SIGNAL(unitChanged(KoUnit)), SLOT(applyRulersUnit(KoUnit)));
connect(rulerAction, SIGNAL(toggled(bool)), SLOT(setRulersPixelMultiple2(bool)));
layout->addWidget(m_horizontalRuler, 0, 1);
......@@ -180,8 +180,8 @@ void KisZoomManager::setup(KActionCollection * actionCollection)
connect(m_canvasController->proxyObject, SIGNAL(canvasOffsetYChanged(int)),
this, SLOT(pageOffsetChanged()));
connect(m_zoomController, SIGNAL(zoomChanged(KoZoomMode::Mode, qreal)),
this, SLOT(slotZoomChanged(KoZoomMode::Mode, qreal)));
connect(m_zoomController, SIGNAL(zoomChanged(KoZoomMode::Mode,qreal)),
this, SLOT(slotZoomChanged(KoZoomMode::Mode,qreal)));
connect(m_zoomController, SIGNAL(aspectModeChanged(bool)),
this, SLOT(changeAspectMode(bool)));
......@@ -230,8 +230,8 @@ void KisZoomManager::updateMouseTrackingConnections()
if (value) {
connect(m_canvasController->proxyObject,
SIGNAL(canvasMousePositionChanged(const QPoint &)),
SLOT(mousePositionChanged(const QPoint &)));
SIGNAL(canvasMousePositionChanged(QPoint)),
SLOT(mousePositionChanged(QPoint)));
}
}
......
......@@ -64,13 +64,13 @@ KisAdvancedColorSpaceSelector::KisAdvancedColorSpaceSelector(QWidget* parent, co
d->colorSpaceSelector->bnInstallProfile->setIcon(KisIconUtils::loadIcon("document-open"));
d->colorSpaceSelector->bnInstallProfile->setToolTip( i18n("Open Color Profile") );
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(const KoID &)),
this, SLOT(fillCmbDepths(const KoID &)));
connect(d->colorSpaceSelector->cmbColorDepth, SIGNAL(activated(const KoID &)),
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(KoID)),
this, SLOT(fillCmbDepths(KoID)));
connect(d->colorSpaceSelector->cmbColorDepth, SIGNAL(activated(KoID)),
this, SLOT(fillLstProfiles()));
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(const KoID &)),
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(KoID)),
this, SLOT(fillLstProfiles()));
connect(d->colorSpaceSelector->lstProfile, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
connect(d->colorSpaceSelector->lstProfile, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
this, SLOT(colorSpaceChanged()));
connect(this, SIGNAL(selectionChanged(bool)),
this, SLOT(fillDescription()));
......
......@@ -74,8 +74,8 @@ KisCompositeOpComboBox::KisCompositeOpComboBox(QWidget* parent):
setView(m_view);
setItemDelegate(new KisCategorizedItemDelegate(this));
connect(m_view, SIGNAL(sigCategoryToggled(const QModelIndex&, bool)), SLOT(slotCategoryToggled(const QModelIndex&, bool)));
connect(m_view, SIGNAL(sigEntryChecked(const QModelIndex&)), SLOT(slotEntryChecked(const QModelIndex&)));
connect(m_view, SIGNAL(sigCategoryToggled(QModelIndex,bool)), SLOT(slotCategoryToggled(QModelIndex,bool)));
connect(m_view, SIGNAL(sigEntryChecked(QModelIndex)), SLOT(slotEntryChecked(QModelIndex)));
selectCompositeOp(KoCompositeOpRegistry::instance().getDefaultCompositeOp());
......
......@@ -61,13 +61,13 @@ KisColorSpaceSelector::KisColorSpaceSelector(QWidget* parent) : QWidget(parent),
d->colorSpaceSelector->bnInstallProfile->setIcon(KisIconUtils::loadIcon("document-open"));
d->colorSpaceSelector->bnInstallProfile->setToolTip( i18n("Open Color Profile") );
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(const KoID &)),
this, SLOT(fillCmbDepths(const KoID &)));
connect(d->colorSpaceSelector->cmbColorDepth, SIGNAL(activated(const KoID &)),
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(KoID)),
this, SLOT(fillCmbDepths(KoID)));
connect(d->colorSpaceSelector->cmbColorDepth, SIGNAL(activated(KoID)),
this, SLOT(fillCmbProfiles()));
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(const KoID &)),
connect(d->colorSpaceSelector->cmbColorModels, SIGNAL(activated(KoID)),
this, SLOT(fillCmbProfiles()));
connect(d->colorSpaceSelector->cmbProfile, SIGNAL(activated(const QString &)),
connect(d->colorSpaceSelector->cmbProfile, SIGNAL(activated(QString)),
this, SLOT(colorSpaceChanged()));
connect(d->colorSpaceSelector->bnInstallProfile, SIGNAL(clicked()),
this, SLOT(installProfile()));
......
......@@ -89,8 +89,8 @@
showFilterGallery(false);
connect(d->uiFilterSelector.filtersSelector, SIGNAL(clicked(const QModelIndex&)), SLOT(setFilterIndex(const QModelIndex &)));
connect(d->uiFilterSelector.filtersSelector, SIGNAL(activated(const QModelIndex&)), SLOT(setFilterIndex(const QModelIndex &)));
connect(d->uiFilterSelector.filtersSelector, SIGNAL(clicked(QModelIndex)), SLOT(setFilterIndex(QModelIndex)));
connect(d->uiFilterSelector.filtersSelector, SIGNAL(activated(QModelIndex)), SLOT(setFilterIndex(QModelIndex)));
connect(d->uiFilterSelector.comboBoxPresets, SIGNAL(activated(int)),SLOT(slotBookmarkedFilterConfigurationSelected(int)));
connect(d->uiFilterSelector.pushButtonEditPressets, SIGNAL(pressed()), SLOT(editConfigurations()));
......
......@@ -79,11 +79,11 @@ KisGradientChooser::KisGradientChooser(QWidget *parent, const char *name)
m_itemChooser->setFixedSize(250, 250);
m_itemChooser->setColumnCount(1);
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource *)),
this, SLOT(update(KoResource *)));
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource*)),
this, SLOT(update(KoResource*)));
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource *)),
this, SIGNAL(resourceSelected(KoResource *)));
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource*)),
this, SIGNAL(resourceSelected(KoResource*)));
QWidget* buttonWidget = new QWidget(this);
QHBoxLayout* buttonLayout = new QHBoxLayout(buttonWidget);
......
......@@ -53,11 +53,11 @@ KisPatternChooser::KisPatternChooser(QWidget *parent)
m_itemChooser->showTaggingBar(true);
m_itemChooser->setSynced(true);
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource *)),
this, SLOT(update(KoResource *)));
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource*)),
this, SLOT(update(KoResource*)));
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource *)),
this, SIGNAL(resourceSelected(KoResource *)));
connect(m_itemChooser, SIGNAL(resourceSelected(KoResource*)),
this, SIGNAL(resourceSelected(KoResource*)));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setSizeConstraint(QLayout::SetMinAndMaxSize);
......
......@@ -75,7 +75,7 @@ KisPaletteListWidget::KisPaletteListWidget(QWidget *parent)
m_ui->viewPalette->setLayout(new QHBoxLayout(m_ui->viewPalette));
m_ui->viewPalette->layout()->addWidget(m_d->itemChooser.data());
connect(m_d->itemChooser.data(), SIGNAL(resourceSelected(KoResource *)), SLOT(slotPaletteResourceSelected(KoResource*)));
connect(m_d->itemChooser.data(), SIGNAL(resourceSelected(KoResource*)), SLOT(slotPaletteResourceSelected(KoResource*)));
}
KisPaletteListWidget::~KisPaletteListWidget()
......
......@@ -53,7 +53,7 @@ public:
RowInGroupRole
};
public /* overriden methods */: // QAbstractTableModel
public /* overridden methods */: // QAbstractTableModel
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
......
......@@ -113,10 +113,10 @@ KoColorPopupAction::KoColorPopupAction(QObject *parent)
connect(this, SIGNAL(triggered()), this, SLOT(emitColorChanged()));
connect(d->colorSetWidget, SIGNAL(colorChanged(const KoColor &, bool)),
this, SLOT(colorWasSelected(const KoColor &, bool)));
connect(d->colorChooser, SIGNAL(colorChanged(const QColor &)),
this, SLOT(colorWasEdited( const QColor &)));
connect(d->colorSetWidget, SIGNAL(colorChanged(KoColor,bool)),
this, SLOT(colorWasSelected(KoColor,bool)));
connect(d->colorChooser, SIGNAL(colorChanged(QColor)),
this, SLOT(colorWasEdited(QColor)));
connect(d->opacitySlider, SIGNAL(valueChanged(int)),
this, SLOT(opacityWasChanged(int)));
}
......
......@@ -58,7 +58,7 @@ void KoColorSetWidget::KoColorSetWidgetPrivate::addRecent(const KoColor &color)
recentPatches[numRecents]->setFrameShape(QFrame::StyledPanel);
recentPatches[numRecents]->setDisplayRenderer(displayRenderer);
recentsLayout->insertWidget(numRecents + 1, recentPatches[numRecents]);
connect(recentPatches[numRecents], SIGNAL(triggered(KoColorPatch *)), thePublic, SLOT(slotPatchTriggered(KoColorPatch *)));
connect(recentPatches[numRecents], SIGNAL(triggered(KoColorPatch*)), thePublic, SLOT(slotPatchTriggered(KoColorPatch*)));
numRecents++;
}
// shift colors to the right
......
......@@ -66,7 +66,7 @@ KisPaletteView::KisPaletteView(QWidget *parent)
/*
* without this, a cycle might be created:
* the view streches to right border, and this make it need a scroll bar;
* the view stretches to right border, and this make it need a scroll bar;
* after the bar is added, the view shrinks to the bar, and this makes it
* no longer need the bar any more, and the bar is removed again
*/
......@@ -221,7 +221,7 @@ void KisPaletteView::setPaletteModel(KisPaletteModel *model)
connect(model, SIGNAL(sigPaletteModified()), SLOT(slotAdditionalGuiUpdate()));
connect(model, SIGNAL(sigPaletteChanged()), SLOT(slotAdditionalGuiUpdate()));
connect(selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), SLOT(slotCurrentSelectionChanged(QModelIndex)));
connect(selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), SLOT(slotCurrentSelectionChanged(QModelIndex)));
}
KisPaletteModel* KisPaletteView::paletteModel() const
......
......@@ -926,7 +926,7 @@ QWidget *KisAssistantTool::createOptionWidget()
connect(m_options.loadAssistantButton, SIGNAL(clicked()), SLOT(loadAssistants()));
connect(m_options.deleteAllAssistantsButton, SIGNAL(clicked()), SLOT(removeAllAssistants()));
connect(m_options.assistantsColor, SIGNAL(changed(const QColor&)), SLOT(slotGlobalAssistantsColorChanged(const QColor&)));
connect(m_options.assistantsColor, SIGNAL(changed(QColor)), SLOT(slotGlobalAssistantsColorChanged(QColor)));
connect(m_options.assistantsGlobalOpacitySlider, SIGNAL(valueChanged(int)), SLOT(slotGlobalAssistantOpacityChanged()));
......
......@@ -115,8 +115,8 @@ void DigitalMixerDock::setCanvas(KoCanvasBase * canvas)
m_canvas = canvas;
if (m_canvas) {
connect(m_canvas->resourceManager(), SIGNAL(canvasResourceChanged(int, const QVariant&)),
this, SLOT(canvasResourceChanged(int, const QVariant&)));
connect(m_canvas->resourceManager(), SIGNAL(canvasResourceChanged(int,QVariant)),
this, SLOT(canvasResourceChanged(int,QVariant)));
m_tellCanvas=false;
setCurrentColor(m_canvas->resourceManager()->foregroundColor());
......
......@@ -100,7 +100,7 @@ void OverviewWidget::setCanvas(KoCanvasBase * canvas)
connect(&m_imageIdleWatcher, &KisIdleWatcher::startedIdleMode, this, &OverviewWidget::generateThumbnail);
connect(m_canvas->image(), SIGNAL(sigImageUpdated(QRect)),SLOT(startUpdateCanvasProjection()));
connect(m_canvas->image(), SIGNAL(sigSizeChanged(QPointF, QPointF)),SLOT(startUpdateCanvasProjection()));
connect(m_canvas->image(), SIGNAL(sigSizeChanged(QPointF,QPointF)),SLOT(startUpdateCanvasProjection()));
connect(m_canvas->canvasController()->proxyObject, SIGNAL(canvasOffsetXChanged(int)), this, SLOT(update()), Qt::UniqueConnection);
generateThumbnail();
......
......@@ -38,8 +38,8 @@ SmallColorSelectorDock::SmallColorSelectorDock()
layout->addStretch(1);
setWidget(page);
m_smallColorWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
connect(m_smallColorWidget, SIGNAL(colorChanged(const QColor&)),
this, SLOT(colorChangedProxy(const QColor&)));
connect(m_smallColorWidget, SIGNAL(colorChanged(QColor)),
this, SLOT(colorChangedProxy(QColor)));
setWindowTitle(i18n("Small Color Selector"));
}
......@@ -54,8 +54,8 @@ void SmallColorSelectorDock::setCanvas(KoCanvasBase * canvas)
}
m_canvas = canvas;
if (m_canvas && m_canvas->resourceManager()) {
connect(m_canvas->resourceManager(), SIGNAL(canvasResourceChanged(int, const QVariant&)),
this, SLOT(canvasResourceChanged(int, const QVariant&)));
connect(m_canvas->resourceManager(), SIGNAL(canvasResourceChanged(int,QVariant)),
this, SLOT(canvasResourceChanged(int,QVariant)));
m_smallColorWidget->setQColor(m_canvas->resourceManager()->foregroundColor().toQColor());
}
}
......
......@@ -67,8 +67,8 @@ void SpecificColorSelectorDock::unsetCanvas()
void SpecificColorSelectorDock::setViewManager(KisViewManager* kisview)
{
m_view = kisview;
connect(m_view->resourceProvider(), SIGNAL(sigFGColorChanged(const KoColor&)), m_colorSelector, SLOT(setColor(const KoColor&)));
connect(m_colorSelector, SIGNAL(colorChanged(const KoColor&)), m_view->resourceProvider(), SLOT(slotSetFGColor(const KoColor&)));
connect(m_view->resourceProvider(), SIGNAL(sigFGColorChanged(KoColor)), m_colorSelector, SLOT(setColor(KoColor)));
connect(m_colorSelector, SIGNAL(colorChanged(KoColor)), m_view->resourceProvider(), SLOT(slotSetFGColor(KoColor)));
}
#include "moc_specificcolorselector_dock.cpp"
......@@ -59,7 +59,7 @@ public:
* This in turn calls runFFMpeg, which is a private function inside this class.
* @param filename the filename to which to render the animation.
* @param configuration the configuration
* @return whether it is succesful or had another failure.
* @return whether it is successful or had another failure.
*/
KisImageBuilder_Result encode(const QString &filename, KisPropertiesConfigurationSP configuration);
......
......@@ -204,9 +204,9 @@ QWidget* KisToolSelectContiguous::createOptionWidget()
feather->setSingleStep(1);
gridLayout->addWidget(feather, 2, 1, 1, 1);
connect (input , SIGNAL(valueChanged(int)), this, SLOT(slotSetFuzziness(int) ));
connect (sizemod, SIGNAL(valueChanged(int)), this, SLOT(slotSetSizemod(int) ));
connect (feather, SIGNAL(valueChanged(int)), this, SLOT(slotSetFeather(int) ));
connect (input , SIGNAL(valueChanged(int)), this, SLOT(slotSetFuzziness(int)));
connect (sizemod, SIGNAL(valueChanged(int)), this, SLOT(slotSetSizemod(int)));
connect (feather, SIGNAL(valueChanged(int)), this, SLOT(slotSetFeather(int)));
QCheckBox* limitToCurrentLayer = new QCheckBox(i18n("Limit to current layer"), selectionWidget);
l->insertWidget(4, limitToCurrentLayer);
......
......@@ -141,7 +141,7 @@ KisToolTransform::KisToolTransform(KoCanvasBase * canvas)
connect(m_warpStrategy.data(), SIGNAL(requestCanvasUpdate()), SLOT(canvasUpdateRequested()));
connect(m_cageStrategy.data(), SIGNAL(requestCanvasUpdate()), SLOT(canvasUpdateRequested()));
connect(m_liquifyStrategy.data(), SIGNAL(requestCanvasUpdate()), SLOT(canvasUpdateRequested()));
connect(m_liquifyStrategy.data(), SIGNAL(requestCursorOutlineUpdate(const QPointF&)), SLOT(cursorOutlineUpdateRequested(const QPointF&)));
connect(m_liquifyStrategy.data(), SIGNAL(requestCursorOutlineUpdate(QPointF)), SLOT(cursorOutlineUpdateRequested(QPointF)));
connect(m_liquifyStrategy.data(), SIGNAL(requestUpdateOptionWidget()), SLOT(updateOptionWidget()));
connect(m_freeStrategy.data(), SIGNAL(requestCanvasUpdate()), SLOT(canvasUpdateRequested()));
connect(m_freeStrategy.data(), SIGNAL(requestResetRotationCenterButtons()), SLOT(resetRotationCenterButtonsRequested()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment