[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [atelier] src/widgets: Connect MovementWidget::unitsChanged
From: Chris Rizzitello <null () kde ! org>
Date: 2018-09-18 19:56:25
Message-ID: E1g2M6j-00026F-P4 () code ! kde ! org
[Download RAW message or body]
Git commit d73b93a76eda1f97d587e5442655108d3ed24c72 by Chris Rizzitello.
Committed on 16/09/2018 at 03:13.
Pushed by rizzitello into branch 'master'.
Connect MovementWidget::unitsChanged
Signed-off-by: Chris Rizzitello <rizzitello@kde.org>
M +6 -0 src/widgets/atcoreinstancewidget.cpp
https://commits.kde.org/atelier/d73b93a76eda1f97d587e5442655108d3ed24c72
diff --git a/src/widgets/atcoreinstancewidget.cpp \
b/src/widgets/atcoreinstancewidget.cpp index 4b22f5b..380f039 100644
--- a/src/widgets/atcoreinstancewidget.cpp
+++ b/src/widgets/atcoreinstancewidget.cpp
@@ -271,6 +271,12 @@ void AtCoreInstanceWidget::initConnectsToAtCore()
m_logWidget->appendLog(GCode::description(GCode::G1));
m_core.move(axis, value);
});
+
+ connect(m_movementWidget, &MovementWidget::unitsChanged, this, [this](int units) \
{ + auto selection = static_cast<AtCore::UNITS>(units);
+ m_core.setUnits(selection);
+ });
+
connect(m_movementWidget, &MovementWidget::relativeMove, this, [this](const \
QLatin1Char & axis, const double value) {
m_logWidget->appendLog(i18n("Relative Move: %1, %2", axis, \
QString::number(value))); m_core.setRelativePosition();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic