Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
4
4uhv
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
gui
4uhv
Commits
00b1942a
Commit
00b1942a
authored
2 years ago
by
delleceste
Browse files
Options
Downloads
Patches
Plain Diff
Request #17730: revert to single VTargetX(3000), VTargetX(5000) and so
parent
c5794628
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/channel.cpp
+7
-3
7 additions, 3 deletions
src/channel.cpp
with
7 additions
and
3 deletions
src/channel.cpp
+
7
−
3
View file @
00b1942a
...
...
@@ -19,14 +19,18 @@ Channel::~Channel()
void
Channel
::
onPbFixClicked
()
{
// FixedX(0) then VTargetX(NNNN) then FixedX(1) where X is the channel and NNNN the voltage
// properties set in FourUHV::onPsListReady
const
QString
&
t0
=
QString
(
"$1/Fixed%1(0)"
).
arg
(
sender
()
->
property
(
"channel"
).
toInt
());
//
// Request #17730: revert to single VTargetX(3000), VTargetX(5000) and so
//
// const QString& t0 = QString("$1/Fixed%1(0)").arg(sender()->property("channel").toInt());
const
QString
&
t1
=
sender
()
->
property
(
"target"
).
toString
();
const
QString
&
t2
=
QString
(
"$1/Fixed%1(1))"
).
arg
(
sender
()
->
property
(
"channel"
).
toInt
());
//
const QString& t2 = QString("$1/Fixed%1(1))").arg(sender()->property("channel").toInt());
foreach
(
const
QString
&
t
,
QStringList
()
<<
t
0
<<
t1
<<
t2
)
{
foreach
(
const
QString
&
t
,
QStringList
()
<<
t
1
)
{
QuWriter
*
w
=
new
QuWriter
(
this
,
cu_pool
,
m_ctrl_fpool
);
w
->
setAutoDestroy
(
true
);
w
->
setTarget
(
t
);
// printf("executing \"%s\"\n", qstoc(w->target()));
w
->
execute
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment