Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
635eab2f
Commit
635eab2f
authored
Sep 07, 2021
by
Zhou, Wenduo
Browse files
Set property shall via storePropertyValue.
parent
b4463023
Changes
1
Hide whitespace changes
Inline
Side-by-side
qt/widgets/plugins/algorithm_dialogs/src/StartLiveDataDialog.cpp
View file @
635eab2f
...
...
@@ -378,8 +378,14 @@ void StartLiveDataDialog::updateUiElements(const QString &inst) {
void
StartLiveDataDialog
::
accept
()
{
// Now manually set the StartTime property as there's a computation needed
DateAndTime
startTime
=
DateAndTime
::
getCurrentTime
()
-
ui
.
dateTimeEdit
->
value
()
*
60.0
;
m_algorithm
->
setPropertyValue
(
"StartTime"
,
startTime
.
toISO8601String
());
std
::
string
starttime
=
startTime
.
toISO8601String
();
// Store the value to property value map: property value can be only set from the map to m_algorithm
// as the last step before executing
QString
propertyname
=
QString
::
fromStdString
(
"StartTime"
);
QString
propertyvalue
=
QString
::
fromStdString
(
starttime
);
this
->
storePropertyValue
(
propertyname
,
propertyvalue
);
// Call base class
AlgorithmDialog
::
accept
();
// accept executes the algorithm
}
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment