Textlabel Position not updated
Requirements
-
I searched through the issues if the issue already exists
Probably the same as in #877 (closed)
Steps to reproduce
- Create new project
- Create worksheet and a textlabel on it
- Set Textlabel position to (0,0) over the dock to get it into the center
- Move the Textlabel to the upper right corner using the mouse (mouse move)
- Save the project
- Close Labplot and reopen the project
Expected
The textlabel is in the upper right corner
Observed
The textlabel is still in the center
Problem is that m_moveStarted will never set, because event->button() is always noButton
Introduced with fbd8621c
LabPlot Version
Debug build 2.10.0-2290-gfedd3397df
Apr 10 2024, 21:42:57
System: Manjaro Linux
Locale: English,United States (Decimal point ',', Group separator '.'
Number settings: Decimal point ',', Group separator '.', Exponential 'e', Zero digit '0', Percent '%', Positive/Negative sign '+'/'-' (Updated on restart)
Architecture: x86_64-little_endian-lp64
Kernel: linux 5.15.150-1-MANJARO
C++ Compiler: GNU 13.2.1
C++ Compiler Flags: -DQT_QML_DEBUG -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -Wall -Wextra -Wundef -Wpointer-arith -Wunreachable-code -Wunused -Wdeprecated-declarations -fno-omit-frame-pointer -fstack-protector -fexceptions -std=c++17 -O0 -Wcast-align -Wswitch-enum -fvisibility=default -pedantic -Wzero-as-null-pointer-constant
Edited by Martin Marmsoler