Commit ddf6465d authored by Tusooa Zhu's avatar Tusooa Zhu 🔼

Fix auto-connections in assistants decoration and palette docker

parent 3b75498f
......@@ -83,7 +83,8 @@ void KisDecorationsManager::setView(QPointer<KisView> imageView)
connect(m_toggleAssistant, SIGNAL(triggered()), assistantsDecoration(), SLOT(toggleAssistantVisible()));
connect(m_togglePreview, SIGNAL(triggered()), assistantsDecoration(), SLOT(toggleOutlineVisible()));
connect(assistantsDecoration(), SIGNAL(assistantChanged()), SLOT(updateAction()));
connect(m_imageView->document(), SIGNAL(sigAssistantsChanged), m_imageView->canvasBase(), SLOT(updateCanvas()));
connect(m_imageView->document(), &KisDocument::sigAssistantsChanged,
m_imageView->canvasBase(), QOverload<>::of(&KisCanvas2::updateCanvas));
}
if (m_imageView && referenceImagesDecoration()) {
......
......@@ -218,7 +218,8 @@ void PaletteDockerDock::setCanvas(KoCanvasBase *canvas)
for (KoColorSet *cs : m_activeDocument->paletteList()) {
m_rServer->addResource(cs);
}
m_connections.addConnection(m_activeDocument, SIGNAL(sigPaletteListChanged), this, SLOT(slotUpdatePaletteList));
m_connections.addConnection(m_activeDocument, &KisDocument::sigPaletteListChanged,
this, &PaletteDockerDock::slotUpdatePaletteList);
}
if (!m_currentColorSet) {
......
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