Using QFileInfo::baseName() discards everything after the first ., so
filenames like 1.2.3.4.png would be changed to 1.png. (See #1722).
Changing this to QFileInfo::completeBaseName() only discards the suffix,
so we have 1.2.3.4.jpg becoming 1.2.3.4.png, for example.
* fix - It is possible to edit previously created text by clicking editing frame of another one & search optimization
(cherry picked from commit 749c968f0bfe1ea4b54c0f2e58c0766365f9fc01)
* fix - It is possible to edit previously created text by clicking editing frame of another one (final fix)
(cherry picked from commit f80de3137b2a364d39021440c812fc97c81423ea)
Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
* fix - App crashes if during editing text add any object (one more fix for the same issue)
(cherry picked from commit 08a3b01929ac01de26a25883f3acded6a29c500b)
* fix - Upload doesn't called (active tool is not set on processTool)
(cherry picked from commit d914b2ba7ba4d1741f6e990587d13a5d08b0c591)
* fix - crash on draw (rollback optimisation)
(cherry picked from commit 2769c45eac69c6a36284a4d5a16ca2c49262d158)
Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
* fix - crash if during editing text add any object
(cherry picked from commit f5ae7c083965a4a65bd39ff554d667a1e68c4b37)
* fix - Phantom is displayed on a screen if the figure was moved after double click on it and the last changes were undo and redo
(cherry picked from commit 181979162fc7b2c398d7c84e95526ebb4fa4780f)
* fix - Undo tool undo the last created object instead undo changing if click undo during editing object
(cherry picked from commit 27bbb3a3b29718d476b9f8d98a0efa9fa12f16c2)
Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
* fix - General Configuration widget has big spaces between last few options
(cherry picked from commit 48b9135a8d654a388fd4d0a266e9097456d00ab7)
* Set limit for Latest Uploads Max Size to 50
(cherry picked from commit ef1d83529c5e33ec3819820f3231e5c503aebf61)
* Completely reworked undo/redo stack with fixes (object that was created after deleted one disappears when undo last object creating and deleting the first one and try to undo deletion)
(cherry picked from commit 8d8c0b0d4a5ba8ecd7dc1c367c220642975c95d1)
* - Save font on new text object creation
- Remove unused variable context.circleCount
(cherry picked from commit 26f7bf620849c68062838d503f8731feea8d4987)
* Code refactoring - remove unused m_context.widgetDimensions
(cherry picked from commit 76abc09ce07a71ae42f1826a5a1e1e35902960d5)
* Make font size other tools thickness independent
(cherry picked from commit 5633799fb07acaa50cae5373953e40fa85f700bc)
* fix - Font parameters doesn't disappear in panel on click text item in it
(cherry picked from commit 8322cbb1acae75c77d4c24b74bc366ba93497d46)
* fix - Save thickness if no tool selected
(cherry picked from commit 862f2f4806a0c8d1309daae6a3371f6bd2fc5e5c)
* fix - Line thickness has not required padding after saving configuration, code refactoring remove number of unused '#define PADDING_VALUE'
(cherry picked from commit 294c89ad4fc9d1230942f8b7aa0a13deff7ab1eb)
Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
* Optimise undo/redo for thickness, do not save every change on mouse wheel, save just the result
(cherry picked from commit c0bd74790e086dcde1c242a31e27f992a04c07e2)
* fix - In some cases undo/redo stack has excess steps (root cause is in the start move object event on a small not noticeable mouse move)
(cherry picked from commit 912f39f38083e368979f34ef14821979c34482bb)
* fix - It is impossible to remove an object using the "Undo the latest modification" button on second attempt (full undo, draw something, full undo again)
(cherry picked from commit a7f77a130a497ac6fdecd59eb43c889dcc6cbe1a)
* fix - Picked font family in the text editing tool is applied to the autoincrement tool
(cherry picked from commit 11c5eb29b1078bd6aba91fe7a74c2682767ad47c)
* Add git hash to version in the about dialog
(cherry picked from commit b4dbf52b3217b51614100bd307046772a37dc484)
* Add configuration option to limit undo steps
(cherry picked from commit f13cbecabb172060b196a535348f145457ad2f0f)
* Object delete operation is not registered on the undo stack
(cherry picked from commit 5c966cb5d3702a4d735dd542ad03a80899250b4a)
* fix - Unable to draw an object from second attempt after ColorPicker was called
(cherry picked from commit 49a119886fec253376703e8aa2386e16bc23cbcf)
* fix - App freezes and then crashes when changing object line thickness via Active thickness slider in the tool settings
(cherry picked from commit 26fd64f1c333f70c67282630362cbc5fc8427a39)
* fix - set min and max values for thickness slider to 1-100
(cherry picked from commit 6d8661666e4e199a3c29f991d52bef73ec36129c)
* fix - Crash on Move Tool button with an active Text editor
(cherry picked from commit 461f95da3afda56c0e9693e768e86b18d056eecc)
* fix - Text is not modified when picking it as object in the list
(cherry picked from commit 366bb0928b430d442dc67299353f7dc5ceb743b4)
* fix - Text modification cannot be undone
fix - Object that was created after the text object disappears after undo editing text
(cherry picked from commit 79b2fb92aca65b177cffb386db141d30551a2b1c)
* fix - Text is not saved if picking any object in the objects list without clicking at the empty space
(cherry picked from commit 4679a744a3d2498fe27379f89d48b347a34ae0dc)
* Last available undo step reset everything to the beginning
(cherry picked from commit 4af7423d00cfaa9feabc905400aa3ac30fc4a3ea)
* Missed changes (cherry-pick) for switching ColorPicker behaviour (right mouse click and hold to right mouse click and left click)
Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>