Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Miguel Lopez
Krita
Commits
034f6bee
Commit
034f6bee
authored
May 02, 2014
by
Friedrich W. H. Kossebau
Browse files
Make current filter gettable in KisFilterSelectorWidget
parent
106977ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
krita/ui/dialogs/kis_dlg_adjustment_layer.cc
View file @
034f6bee
...
...
@@ -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
->
currentFilter
N
ame
()
+
")"
);
wdgFilterNodeCreation
.
layerName
->
setText
(
m_layerName
+
" ("
+
wdgFilterNodeCreation
.
filterSelector
->
currentFilter
()
->
n
ame
()
+
")"
);
wdgFilterNodeCreation
.
layerName
->
blockSignals
(
false
);
}
}
...
...
krita/ui/widgets/kis_filter_selector_widget.cc
View file @
034f6bee
...
...
@@ -137,9 +137,9 @@ bool KisFilterSelectorWidget::isFilterGalleryVisible() const
return
d
->
uiFilterSelector
.
splitter
->
sizes
()[
0
]
>
0
;
}
const
QString
KisFilterSelectorWidget
::
currentFilter
Name
()
const
KisFilterSP
KisFilterSelectorWidget
::
currentFilter
()
const
{
return
d
->
currentFilter
->
name
()
;
return
d
->
currentFilter
;
}
void
KisFilterSelectorWidget
::
setFilter
(
KisFilterSP
f
)
...
...
krita/ui/widgets/kis_filter_selector_widget.h
View file @
034f6bee
...
...
@@ -50,7 +50,7 @@ public:
KisFilterConfiguration
*
configuration
();
void
showFilterGallery
(
bool
visible
);
bool
isFilterGalleryVisible
()
const
;
const
QString
currentFilter
Name
()
const
;
KisFilterSP
currentFilter
()
const
;
protected
slots
:
void
slotBookmarkedFilterConfigurationSelected
(
int
);
void
setFilterIndex
(
const
QModelIndex
&
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment