forked from qt-creator/qt-creator
QmlDesigner: Change 3D grid stepping immediately on interval change
Changes in position snap interval cause visible changes, as helper grid stepping is tied to this interval, so we notify puppet about every change to snap interval rather than just notifying the value when popup closes. Fixes: QDS-10750 Change-Id: If84f79530634c81f1d17f49d21929a442ff544f1 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> (cherry picked from commit 3635186dc24bad2d9909fa59a32d65f1dda5b58b) Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
d585bbb9d0
commit
bc1d590482
@@ -966,8 +966,15 @@ void Edit3DView::createEdit3DActions()
|
||||
snapToggleTrigger);
|
||||
|
||||
SelectionContextOperation snapConfigTrigger = [this](const SelectionContext &) {
|
||||
if (!m_snapConfiguration)
|
||||
if (!m_snapConfiguration) {
|
||||
m_snapConfiguration = new SnapConfiguration(this);
|
||||
connect(m_snapConfiguration.data(), &SnapConfiguration::posIntChanged,
|
||||
this, [this]() {
|
||||
// Notify every change of position interval as that causes visible changes in grid
|
||||
rootModelNode().setAuxiliaryData(edit3dSnapPosIntProperty,
|
||||
m_snapConfiguration->posInt());
|
||||
});
|
||||
}
|
||||
m_snapConfiguration->showConfigDialog(resolveToolbarPopupPos(m_snapConfigAction.get()));
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user