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
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
039568ec
Commit
039568ec
authored
Jun 12, 2021
by
Yann Boucher
Browse files
Solved a bug with Neighborhooddialog
parent
628369b6
Pipeline
#79803
passed with stages
in 16 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
include/propertyvisitors.hpp
View file @
039568ec
...
...
@@ -52,7 +52,6 @@ private:
QWidget
*
current_widget
();
void
push_array_widget
(
const
Property
&
prop
);
QWidget
*
pop_widget
();
NeighborhoodDialog
*
neighborhoodDialog
;
private:
void
visit
(
StringProperty
&
str
);
...
...
src/uibuildervisitor.cpp
View file @
039568ec
...
...
@@ -202,15 +202,15 @@ void UIBuilderVisitor::visit(PropertyList &list)
add_button
->
setEnabled
(
true
);
}
});
QObject
::
connect
(
widgetGridNeighborhoodButton
,
&
QPushButton
::
pressed
,
[
this
,
&
list
,
list_widget
]()
{
QObject
::
connect
(
widgetGridNeighborhoodButton
,
&
QPushButton
::
pressed
,
[
&
list
,
list_widget
]()
{
Neighborhood
currentNeighborhood
=
list
.
to_neighborhood
();
n
eighborhoodDialog
=
new
N
eighborhoodDialog
(
currentNeighborhood
);
N
eighborhoodDialog
n
eighborhoodDialog
(
currentNeighborhood
);
if
(
neighborhoodDialog
->
exec
()
)
{
if
(
neighborhoodDialog
.
exec
()
)
{
//std::cout << "sacreubleu" << endl;
fflush
(
stdout
);
list
.
clear
();
Neighborhood
*
newNeighborhood
=
neighborhoodDialog
->
getNeighborhood
();
Neighborhood
*
newNeighborhood
=
neighborhoodDialog
.
getNeighborhood
();
list
.
load_from_neighborhood
(
*
newNeighborhood
);
delete
newNeighborhood
;
UIBuilderVisitor
visit
(
list_widget
);
...
...
Write
Preview
Supports
Markdown
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