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
85864aae
Commit
85864aae
authored
Feb 23, 2011
by
Sebastian Eichelbaum
Browse files
[MERGE]
parents
e1352d6a
dcc4d090
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
src/gui/qt4/networkEditor/WQtNetworkEditor.cpp
src/gui/qt4/networkEditor/WQtNetworkEditor.cpp
+5
-0
src/gui/qt4/networkEditor/WQtNetworkInputPort.cpp
src/gui/qt4/networkEditor/WQtNetworkInputPort.cpp
+2
-2
src/gui/qt4/networkEditor/WQtNetworkOutputPort.cpp
src/gui/qt4/networkEditor/WQtNetworkOutputPort.cpp
+2
-2
No files found.
src/gui/qt4/networkEditor/WQtNetworkEditor.cpp
View file @
85864aae
...
...
@@ -128,8 +128,13 @@ void WQtNetworkEditor::addModule( boost::shared_ptr< WModule > module )
// set the object at a random start position
time
(
&
m_time
);
#ifndef _MSC_VER
netItem
->
setPos
(
rand_r
(
(
unsigned
int
*
)
&
m_time
)
%
200
,
rand_r
(
(
unsigned
int
*
)
&
m_time
)
%
200
);
#else
netItem
->
setPos
(
(
rand
()
+
m_time
)
%
200
,
(
rand
()
+
m_time
)
%
200
);
#endif
m_scene
->
addItem
(
netItem
);
...
...
src/gui/qt4/networkEditor/WQtNetworkInputPort.cpp
View file @
85864aae
...
...
@@ -30,12 +30,12 @@
#include "WQtNetworkInputPort.h"
const
float
SIZE
=
10.0
;
const
float
W
SIZE
=
10.0
;
WQtNetworkInputPort
::
WQtNetworkInputPort
(
boost
::
shared_ptr
<
WModuleInputConnector
>
connector
)
:
WQtNetworkPort
()
{
setRect
(
0.0
,
0.0
,
SIZE
,
SIZE
);
setRect
(
0.0
,
0.0
,
W
SIZE
,
W
SIZE
);
setBrush
(
Qt
::
gray
);
setPen
(
QPen
(
Qt
::
red
,
1
,
Qt
::
SolidLine
,
Qt
::
RoundCap
,
Qt
::
RoundJoin
)
);
...
...
src/gui/qt4/networkEditor/WQtNetworkOutputPort.cpp
View file @
85864aae
...
...
@@ -30,12 +30,12 @@
#include "WQtNetworkOutputPort.h"
const
float
SIZE
=
10.0
;
const
float
W
SIZE
2
=
10.0
;
WQtNetworkOutputPort
::
WQtNetworkOutputPort
(
boost
::
shared_ptr
<
WModuleOutputConnector
>
connector
)
:
WQtNetworkPort
()
{
setRect
(
0.0
,
0.0
,
SIZE
,
SIZE
);
setRect
(
0.0
,
0.0
,
W
SIZE
2
,
W
SIZE
2
);
setBrush
(
Qt
::
gray
);
setPen
(
QPen
(
Qt
::
red
,
1
,
Qt
::
SolidLine
,
Qt
::
RoundCap
,
Qt
::
RoundJoin
)
);
...
...
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