El Thoro
f7e41f4d70
Cppcheck and clazy warning fixes ( #2821 )
...
* Cppcheck and clazy warning fixes
* Clang-format
* Revert QRect call by value
* Revert QPoint call by value
* Revert complained renamings
---------
Co-authored-by: Haris Gušić <harisgusic.dev@gmail.com >
2023-01-29 16:01:02 +01:00
Dhruv Maroo
d2b38f962c
Improve resizing in flameshot ( #2931 )
...
* Allow symmetrical resizing using arrow keys when pressing ctrl
* Add feature to preserve aspect ratio while resizing selection window
* Format according to clang-format
2022-10-03 12:33:20 -05:00
Haris Gušić
0116740e54
Fix selection offset ( #2630 )
...
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
2022-05-31 09:56:52 -05:00
Haris Gušić
03af9d807c
Remove extra timer shots when moving selection with keyboard ( #2545 )
...
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
2022-04-13 19:54:35 -05:00
borgmanJeremy
424b7fba37
applied some clang modernize ( #2435 )
2022-02-16 21:15:25 -06:00
borgmanJeremy
0ac48f5c4b
Clang tidy ( #2372 )
...
* Added missing braces
* applied some clang modernize
* clarified auto pointer
* clang-tidy
2022-02-06 12:12:09 -06:00
Haris Gušić
5b815e83d3
Reappear help message when selection hidden
...
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
2021-10-12 13:35:57 +02:00
Haris Gušić
6f132b77c6
Disappear OverlayMessage on select
...
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
2021-10-11 22:46:06 +02:00
Haris Gušić
fef7787011
Capture GUI refactor ( #1939 )
...
* Merge CTB::ButtonType into CaptureTool::Type
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Remove configshortcuts.cpp which I forgot to do earlier
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Add activeButtonTool & activeButtonToolType in CaptureWidget
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Rename slots in CaptureTool for better mnemonics
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Fix move tool bug
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Refactor ShortcutsWidget::initButtons
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Move code from CaptureWidget to SelectionWidget: part 1
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Move code from CaptureWidget to SelectionWidget: part 2
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Move code from CaptureWidget to SelectionWidget: part 3
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Move code from CaptureWidget to SelectionWidget: part 4
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Add SelectionWidget::updateCursor
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Move code from CaptureWidget to SelectionWidget: part 5
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Refactor mouse events in CaptureWidget
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Overlay message update
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Replace connect/disconnect with blockSignals
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* updateIcon on button animation finished
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Remove CaptureWidget::selectAll
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Move moveLeft and similar to SelectionWidget
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Mark update calls for removal
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Specialize CaptureWidget update to affected rects
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Tune update of tool objects
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Remove redundant CaptureTool requests
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Improve performance of update in CaptureWidget
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Fix failing builds
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Fix failing builds again
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Fix undo/redo update
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Undo/redo update workaround
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Extend capture tool update rects
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Fix circle count tool update bug
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Add 'Left Double-Click' tooltip to copy button
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
* Improve ColorPicker performance
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com >
2021-10-08 11:04:06 -05:00
Haris Gušić
e0cd397dc1
Make m_context.selection synced with m_selection ( #1894 )
2021-09-14 08:16:03 -05:00
Boyuan Yang
a9c7cc7b04
Use SPDX-License-Identifier
...
closes : #1374 .
Use SPDX short-form identifiers instead of lengthy copyright
header to document per-file license and copyright.
This commit updates all files under src/ directory where applicable
as well as org.flameshot.Flameshot.metainfo.xml.
2021-02-20 19:22:53 -05:00
David Mitchell
c63b161025
Symmetric new selection ( #1122 )
...
* Move calls to update outside of each input case
* Remove redundant checks when moving selection
* Handle selection clipping the same for each mode
* Fix typo in SelectionWidget enum
* Obligatory "I forgot to clang-format" commit
2021-02-06 20:05:40 -06:00
Jeremy Borgman
0d5386edd4
Changed clang format to new agreement
2020-09-24 07:53:28 -05:00
Jeremy Borgman
c8d15205be
reformatted to Mozilla code style
2020-09-04 20:40:45 -05:00
lupoDharkael
42619158fa
Update copyright year
2019-03-04 16:38:45 +01:00
lupoDharkael
f1ec6f885e
Selection refactor
...
New improved selection code:
- Selection decopuled into a new class
- When you drag the selection against the limits it won't become
permanently smaller, it will "bounce" trying to recover its size.
If you drop it again it will adapt its size to the borders of the
screen.
- Fixed bugs in the button position algorithm.
- Implemented selection animations for future implementations.
2018-04-15 21:29:16 +02:00