Locked items movement has been fixed

This commit is contained in:
Arin Alexander 2019-06-30 12:41:07 +03:00
parent b8ac4de1fe
commit a70e84bf50
2 changed files with 4 additions and 0 deletions

View File

@ -744,9 +744,12 @@ void BaseDesignIntf::setGeometryLocked(bool itemLocked)
m_savedPossibleResizeDirectionFlags = m_possibleResizeDirectionFlags;
m_possibleMoveDirectionFlags = None;
m_possibleResizeDirectionFlags = Fixed;
m_savedFixedPos = m_fixedPos;
m_fixedPos = true;
} else {
m_possibleMoveDirectionFlags = m_savedPossibleMoveDirectionFlags;
m_possibleResizeDirectionFlags = m_savedPossibleResizeDirectionFlags;
m_fixedPos = m_savedFixedPos;
}
if (!isLoading()){
update();

View File

@ -386,6 +386,7 @@ private:
int m_possibleMoveDirectionFlags;
int m_savedPossibleResizeDirectionFlags;
int m_savedPossibleMoveDirectionFlags;
int m_savedFixedPos;
int m_resizeDirectionFlags;
qreal m_width;
qreal m_height;