Commit 0bfd101b authored by Leander Schulten's avatar Leander Schulten
Browse files

Bugfix/UX: ProgramPrototypeView/channelprogrammeditor: You can now only enter...

Bugfix/UX: ProgramPrototypeView/channelprogrammeditor: You can now only enter valid doubles as time. The time is now clamped to two decimal digits. Fix wrong type in channelprogrammeditor: time can now be a double and not only an int.
parent 553d4321
Pipeline #194088 passed with stage
in 4 minutes and 14 seconds
......@@ -552,8 +552,8 @@ void ChannelProgrammEditor::mouseMoveEvent(QMouseEvent *event) {
int newX = mapFromVisualX(event->x());
int newY = std::max(0, std::min(255, getScaledY(event->y())));
auto newX = mapFromVisualX(event->x());
auto newY = std::max(0, std::min(255, getScaledY(event->y())));
if (currentTimePoint == channelProgramm->timeline.cbegin()) {
if (newX < 0) {
......@@ -63,9 +63,10 @@ ModelView{
Layout.minimumWidth: 30
text: editor.currentTimePoint.time
text: editor.currentTimePoint.time.toFixed(2)
visible: editor.currentTimePoint.hasCurrent
onAccepted: editor.currentTimePoint.time = text
validator: DoubleValidator{}
text:"Value: "
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment