Commit 034f6bee authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Make current filter gettable in KisFilterSelectorWidget

parent 106977ef
......@@ -103,7 +103,7 @@ void KisDlgAdjustmentLayer::slotConfigChanged()
m_nodeFilterInterface->setFilter(m_currentFilter);
if (!m_customName) {
wdgFilterNodeCreation.layerName->blockSignals(true);
wdgFilterNodeCreation.layerName->setText(m_layerName + " (" + wdgFilterNodeCreation.filterSelector->currentFilterName() + ")");
wdgFilterNodeCreation.layerName->setText(m_layerName + " (" + wdgFilterNodeCreation.filterSelector->currentFilter()->name() + ")");
wdgFilterNodeCreation.layerName->blockSignals(false);
}
}
......
......@@ -137,9 +137,9 @@ bool KisFilterSelectorWidget::isFilterGalleryVisible() const
return d->uiFilterSelector.splitter->sizes()[0] > 0;
}
const QString KisFilterSelectorWidget::currentFilterName() const
KisFilterSP KisFilterSelectorWidget::currentFilter() const
{
return d->currentFilter->name();
return d->currentFilter;
}
void KisFilterSelectorWidget::setFilter(KisFilterSP f)
......
......@@ -50,7 +50,7 @@ public:
KisFilterConfiguration* configuration();
void showFilterGallery(bool visible);
bool isFilterGalleryVisible() const;
const QString currentFilterName() const;
KisFilterSP currentFilter() const;
protected slots:
void slotBookmarkedFilterConfigurationSelected(int);
void setFilterIndex(const QModelIndex&);
......
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