Hello elevatormind,
Salut Laurent ,
seems I forgot to test something with selective_move ...
But let me ask! What do you want to achieve with this line:
event->modifiers() == Qt::ControlModifier ? setPos(new_pos) : setPos(Diagram::snapToGrid(new_pos));If you mean to check for additionally pressed <Ctrl> the line would have to look like this:
event->modifiers() == (Qt::ControlModifier | Qt::ShiftModifier) ? setPos(new_pos) : setPos(Diagram::snapToGrid(new_pos));If you mean to reduce step-size for movement of texts by additionally pressing <Ctrl>: It does not work!
Together with <Shift>+<Ctrl>+<MouseClickAndMove> the view of design-editor is moved!
As a thought:
When I want to move the texts it is mostly only some points. Why don't we just forget about moving texts by grid-distance, but only move by points?
Then we would not need any additional modifier.
Then we would need to change the above line 588 of sources/qetgraphicsitem/dynamicelementtextitem.cpp by only this:
setPos(new_pos);I tried some different combinations of modifiers, but it seems that we run out of possible combinations at that point...
Best regards
plc-user
