🎉 The title of the blocks is editable by clicking on it.#75
🎉 The title of the blocks is editable by clicking on it.#75
Conversation
Changed the behavior of the move test so that the mouse clicks further right outside the title area.
Reduced the move amount to prevent failure due to moving the block outside the window. The goal of this test is to check that the block moves at the same pace as the mouse
|
The move test seems to not be very robust. In the pull request with "Arrow navigation", a function is available to center the scene on a block. This function should be used instead of the current "hack". |
|
Because the title is editable, the area where the title is cannot be used to move a block around. A compromise has to be made between the length of the title that is displayed and the ability to easily move a block around. Currently, the title occupied a third of the header of a block. I will bump this value to a half but I won't go futher. The user can still read the full title by clicking on it and moving the cursor around to scroll. |
|
I will edit this so that the edit occurs on double-click. |
Then title will be able to be on the full block length |
…ls for unknown reasons.
…is. Can Codacy edit it automatically ?
MathisFederico
left a comment
There was a problem hiding this comment.
We can use this to make OCBBlock init cleaner.
Co-authored-by: Mathïs Fédérico <60117466+MathisFederico@users.noreply.github.com>
Structured Blocks widgets
Applied `black` code style
| self.setReadOnly(True) | ||
|
|
||
| @property | ||
| def metadatas(self) -> dict: |
There was a problem hiding this comment.
The word "data" uncountable. No "s" is needed.
Refactor title serialization
|
The work on this feature was moved to #81 |

This resolves #63
Changed the behavior of the move test so that the mouse clicks further right outside the title area.