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
f38a8cec
Commit
f38a8cec
authored
Mar 13, 2011
by
Robert Frohl
Browse files
[FIX] - NetworkArrows disappear properly when deleted
parent
a60792b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/gui/qt4/networkEditor/WQtNetworkArrow.cpp
src/gui/qt4/networkEditor/WQtNetworkArrow.cpp
+1
-1
src/gui/qt4/networkEditor/WQtNetworkArrow.h
src/gui/qt4/networkEditor/WQtNetworkArrow.h
+3
-3
No files found.
src/gui/qt4/networkEditor/WQtNetworkArrow.cpp
View file @
f38a8cec
...
...
@@ -51,6 +51,7 @@ WQtNetworkArrow::~WQtNetworkArrow()
{
m_startPort
->
removeArrow
(
this
);
m_endPort
->
removeArrow
(
this
);
this
->
hide
();
}
int
WQtNetworkArrow
::
type
()
const
...
...
@@ -58,7 +59,6 @@ int WQtNetworkArrow::type() const
return
Type
;
}
void
WQtNetworkArrow
::
updatePosition
()
{
QRectF
sRect
=
m_startPort
->
rect
();
...
...
src/gui/qt4/networkEditor/WQtNetworkArrow.h
View file @
f38a8cec
...
...
@@ -126,21 +126,21 @@ protected:
* \param option
* \param w
*/
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
w
);
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
w
);
/**
* If the cursor enters the arrow, the arrow becomes geen.
*
* \param event the hover event
*/
void
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
);
void
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
);
/**
* If the cursor leaves the arrow, the arrow gets his default color.
*
* \param event the hover event
*/
void
hoverLeaveEvent
(
QGraphicsSceneHoverEvent
*
event
);
void
hoverLeaveEvent
(
QGraphicsSceneHoverEvent
*
event
);
private:
...
...
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