* Make `ShortcutsWidget` load all shortcuts
`ShortcutsWidget" now loads shortcuts for all capture widgets,
regardless of enabled state in 'Interface settings'.
Also removed unnecessary indirection which made the API confusing:
- Removed `ConfigHandler::setShortcutsDefault` which was only called
once on a temporary `ConfigHandler` and hence had no effect
- Removed function `ConfigHandler::shortcuts`
- `ShortcutsWidget` now calls `ConfigShortcuts::captureShortcutsDefault`
directly instead of through `ConfigHandler::shortcuts`
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Enable shortcuts for hidden buttons
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix crash if ButtonHandler has no buttons
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* obligatory clang-format
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* GeneralConf.cpp: Remove redundant initializations
Removed unnecessary setChecked and setValue calls in init* methods which
get called inside updateComponents anyway. Also added missing function
calls in updateComponents. This has exposed more bugs.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Merge updateComponents and setActualFormData
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix useJpgForClipboard checkbox
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix crash when 'Automatic updates' is checked
The config window used to crash when 'Automatic updates' check box was
interacted with, if the application started with the system tray
disabled.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Some cleanup
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix#1697 and #1726
Changed ConfigWindow to inherit QWidget and moved QTabWidget to be an
attribute. setMinimumSize is no longer necessary in ConfigWindow.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Create scroll area around checkboxes
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Do not truncate tab bar anymore
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Set parent widget to prevent a memory leak
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
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>