Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT WIC Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
DIOT WIC Gateware
Commits
3b322b93
Commit
3b322b93
authored
Sep 25, 2018
by
Projects
Committed by
Grzegorz Daniluk
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GUI demo: added const DiotHardware references in constructors
parent
be741a10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
controller.cpp
sw/diot-sw/gui_demo/controller.cpp
+2
-2
controller.h
sw/diot-sw/gui_demo/controller.h
+2
-2
No files found.
sw/diot-sw/gui_demo/controller.cpp
View file @
3b322b93
...
...
@@ -91,7 +91,7 @@ void DiotHardware::SetOutput(int slot, unsigned int state)
}
DiotIOCard
::
DiotIOCard
(
QWidget
*
parent
,
DiotHardware
&
hw
,
int
num
,
int
idx
)
DiotIOCard
::
DiotIOCard
(
QWidget
*
parent
,
const
DiotHardware
&
hw
,
int
num
,
int
idx
)
:
QFrame
(
parent
),
inputs
(
num
,
true
),
outputs
(
num
,
false
),
slot_nr
(
idx
),
io_count
(
num
)
{
...
...
@@ -249,7 +249,7 @@ void DiotIOController::UpdateInputErr(int slot, unsigned int state)
}
DiotDiag
::
DiotDiag
(
QWidget
*
parent
,
DiotHardware
&
hw
)
DiotDiag
::
DiotDiag
(
QWidget
*
parent
,
const
DiotHardware
&
hw
)
:
QFrame
(
parent
)
{
DIOT_Crate
*
crate
=
hw
.
GetCrate
();
...
...
sw/diot-sw/gui_demo/controller.h
View file @
3b322b93
...
...
@@ -127,7 +127,7 @@ class DiotIOCard : public QFrame {
Q_OBJECT
public
:
DiotIOCard
(
QWidget
*
parent
,
DiotHardware
&
hw
,
int
num
,
int
idx
);
DiotIOCard
(
QWidget
*
parent
,
const
DiotHardware
&
hw
,
int
num
,
int
idx
);
virtual
~
DiotIOCard
()
{}
unsigned
int
GetInput
()
const
{
...
...
@@ -190,7 +190,7 @@ class DiotDiag : public QFrame {
Q_OBJECT
public
:
DiotDiag
(
QWidget
*
parent
,
DiotHardware
&
hw
);
DiotDiag
(
QWidget
*
parent
,
const
DiotHardware
&
hw
);
virtual
~
DiotDiag
()
{}
public
slots
:
...
...
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