Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
14a0386f
Commit
14a0386f
authored
Mar 18, 2021
by
hungdangquoc
Browse files
[ADD
#132
] add default content for single-selector-content, when something happening
parent
fa66a8dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/modules/filterProtonData/propertyHandler/WColumnPropertyHandler.cpp
...lterProtonData/propertyHandler/WColumnPropertyHandler.cpp
+6
-3
No files found.
src/modules/filterProtonData/propertyHandler/WColumnPropertyHandler.cpp
View file @
14a0386f
...
...
@@ -92,10 +92,8 @@ int WColumnPropertyHandler::getfilterIndex( int index, std::string typeName )
size_t
indexCounter
=
0
;
std
::
cout
<<
"START "
<<
singleSelectorContent
.
size
()
<<
" | "
<<
typeName
<<
std
::
endl
;
for
(
std
::
vector
<
std
::
string
>::
iterator
colName
=
singleSelectorContent
.
begin
();
colName
!=
singleSelectorContent
.
end
();
colName
++
)
{
std
::
cout
<<
"DEBUG: "
<<
refheader
<<
" | "
<<
*
colName
<<
" | "
<<
indexCounter
<<
std
::
endl
<<
std
::
endl
;
if
(
*
colName
==
refheader
)
{
return
indexCounter
;
...
...
@@ -103,7 +101,6 @@ int WColumnPropertyHandler::getfilterIndex( int index, std::string typeName )
indexCounter
++
;
}
std
::
cout
<<
"ENDE "
<<
std
::
endl
<<
std
::
endl
;
return
-
1
;
}
...
...
@@ -119,6 +116,12 @@ WPropSelection WColumnPropertyHandler::addHeaderProperty( WColumnPropertyHandler
int
indexSingleSelector
=
index
<
0
?
-
1
:
getfilterIndex
(
index
,
type
);
if
(
indexSingleSelector
<
0
)
{
indexSingleSelector
=
index
;
type
=
WDatatype
::
getDefault
();
}
m_protonData
->
setStateIndex
(
columnName
,
index
);
boost
::
shared_ptr
<
WItemSelection
>
possibleSelectionsUsingTypes
=
InitializeSelectionItem
(
type
);
...
...
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