Commit Graph

992 Commits

Author SHA1 Message Date
El Thoro
cb3547e545 Center dialogs on current screen (#4024)
* Center dialogs on current sreen

* Center QuitPrompt
2025-06-22 12:22:01 -05:00
El Thoro
d420a53a4a Separate sizes for text, circle counter, pixelate, rectange, marker (as discussed in #3812) (#4011) 2025-06-16 15:55:44 -05:00
borgmanJeremy
58afdce741 make pin moving compatible with Wayland on Qt6 (#4000)
* make pin moving compatible with Wayland on Qt6

* found more to clean up
2025-06-12 19:55:35 -05:00
El Thoro
075a69f466 Fix for wrong set savePath on Windows (#3990) (#3997) 2025-06-10 20:30:30 -05:00
El Thoro
639b1ee73d Fix poor performance with Qt 6: Replace QFileSystemModel with QFileIconProvider (#3989) 2025-06-08 19:51:12 -05:00
El Thoro
128b58328d Fix app filter using wildcards (#3985) 2025-06-08 19:50:07 -05:00
El Thoro
a56beb34d3 Support dark mode in Windows (#3984) 2025-06-08 19:49:14 -05:00
El Thoro
669dfaadea Qt 6 - Fix http status response (#3983)
* Fix http status response

* Use QStringLiteral
2025-06-08 19:48:28 -05:00
Jeremy Borgman
2c99e97ed7 Fix more c++ 20 deprecations 2025-06-06 14:35:04 -05:00
borgmanJeremy
b504b9eda1 Qt6 ci (#3978)
* fixing CI

* manual trigger

* Qt6 Windows build (#3976)

* Windows CI

* Windows CI

* Windows CI

* CI for Macos

* Fixing windows and mac CI

---------

Co-authored-by: El Thoro <ElTh0r0@users.noreply.github.com>
2025-06-04 20:19:53 -05:00
borgmanJeremy
2732eb375c Port to QT6 on MacOs (#3977) 2025-06-04 18:41:55 -05:00
Jeremy Borgman
533c811016 fix missing header on ubuntu 22.04, apply clang-format, working on CI 2025-06-03 20:05:54 -05:00
Jeremy Borgman
a23034bec7 Merge branch 'master' into qt6_2025 2025-06-03 15:56:49 -05:00
El Thoro
13f08f9ba0 Forgot another deprecated QApplication::desktop (macOS) / fix Qt 6 Windows build (#3967)
* Forgot another deprecated QApplication::desktop (macOS)

* Fix Qt 6 Windows build
2025-06-02 06:32:34 -05:00
El Thoro
88d6e14246 Replace QTextCodec with QStringDecoder/Encoder (#3965) 2025-06-01 12:10:08 -05:00
Jeremy Borgman
3fa9ce789f Apease clange format 2025-06-01 12:00:46 -05:00
El Thoro
49ff3de496 Fix further Qt 6 deprecations (#3966)
* Replace qAsConst

* Wayland hack on Gnome not needed anymore with Qt 6

* Fix QLibraryInfo and QFontDatabase deprecations

* Fix QKeySequence
2025-06-01 11:53:36 -05:00
Jeremy Borgman
a41137707c fixed segfault 2025-06-01 11:52:53 -05:00
Jeremy Borgman
b4b00ec3fa temporarily disable QtSingleApplication 2025-06-01 09:25:04 -05:00
Jeremy Borgman
728c586da2 fix arch package build and fix some build issues related to KFGuiAddons 2025-05-31 13:14:08 -05:00
El Thoro
277eb2f437 Fixing deprecation for future Qt 6 support (#3962)
* Replace foreach

* Replace QRegExp with QRegularExpression

* Replace QApplication::fontMetrics

* Replace QColor::isValidColor

* Replace canConvert(QVariant)

* Replace QString::midRef and QCharRef

* Add TODO for replacing QDesktopWidget for Qt 6

* Add TODO for replacing QTextCodec for Qt 6

* Fix QWidget::enterEvent for Qt 6

* qRegisterMetaTypeStreamOperators done automatically in Qt 6

* Fix QWidget::mapToGlobal for Qt 6

* Migrate QDesktopWidget replacement from old qt6 branch

* Drop Qt 5 support
2025-05-31 12:42:40 -05:00
Nicholas Morris
eefefe187a Adds Support for Command-Line on Windows (#3699)
* + cli support on windows

- removes the preprocessor macro that prevented arg
  parsing on Windows
- adds windows-cli.cpp as src for a wrapper exe
- adds flameshot-cli target into cmake when building
  on Windows
- updates README

* updates PR

+ support for unicode characters in cli args
+ additional clarification in README re: flameshot-cli
+ new workaround for spaces in _popen path; works with relative output paths

* fix EOL

* updated flameshot.exe path construction

avoids using the hard-coded length of flameshot-cli.exe

* fix whitespace (clang)
2025-05-31 12:39:02 -05:00
El Thoro
134238b8eb Fixing several Clazy warnings (#3960)
* Use multi-arg

* Unused vaiables

* Missing emit

* Range loop reference

* Don't use connect by name
2025-05-30 20:11:12 -05:00
borgmanJeremy
7ecdcca55e Merge pull request #3946 from flameshot-org/external_deps
External deps to Cmake FetchContent
2025-05-27 22:33:05 +01:00
borgmanJeremy
c2acf30ef2 Add config cli option to enable or disable notifications (#3942) 2025-05-24 08:21:55 -05:00
Jeremy Borgman
70bb5098ee Move Qhotkey to FetchContent 2025-05-22 20:19:06 -05:00
Harsh Narayan Jha
76f8067b2d Add useGrimAdapter option to the config window (#3943) 2025-05-21 14:01:26 -05:00
Alaskra
f7a049ee78 fix missing invert button on configure windows and remove old size (#3118) 2025-05-17 09:02:01 -05:00
lvhung
e9817d8a81 Implement reverse arrow (#2144) (#3477) 2025-05-14 06:41:52 -05:00
midirhee12
a570fdea8b Added river support (#3674)
* Added river support

This attempts to generalize wlroots compositors by checking against the
proper desktop name instead of only sway. This fixes the problem of only
supporting sway. Any additional desktop will just have to be added to
the source to check for the correct string.

* fix: riverwm floating docs

* docs: removed no longer relevant comment

* fix: clang-format length

* refactor(desktopinfo): clang-format -i

---------

Co-authored-by: cvoges12 <vogesclayton@gmail.com>
Co-authored-by: cvoges12 <38054771+cvoges12@users.noreply.github.com>
Co-authored-by: midirhee12 <midirhee@proton.me>
2025-05-14 06:19:54 -05:00
manfredlotz
899c55e47b small changes to make flameshot recognize cosmic desktop (#3725) 2025-05-12 20:10:13 -05:00
borgmanJeremy
74bb870f18 Fix issue when config subcommand toggles autostart (#3940) 2025-05-11 18:11:18 -05:00
Aleksey Komarov
f2d52f2275 Replace USE_WAYLAND_GRIM build option with useGrimAdapter setting (#3919) 2025-05-11 12:40:31 -05:00
donutAnees
be54ae9c0d Add Shortcut to Cancel current selection (#3751)
This PR adds the ability to close the selection using the Ctrl + Backspace
key combination, addressing issue #3319. The new shortcut
allows users to quickly exit the selection mode without relying on mouse
interactions.
2025-05-11 12:39:29 -05:00
borgmanJeremy
45c47eb13a Remove pixelation warning due to merging #3765 (#3937) 2025-05-11 10:27:37 -05:00
Daniel Fox
90fd5fcb2e Remove QT+GNOME+Wayland 'xcb' hack on fixed Qt versions (#3683)
* Bypass the Qt GNOME/Wayland workaround on fixed Qt versions

We implement code on GNOME desktops to force the
QT_QPA_PLATFORM to be 'xcb'; this works around a
clipboard-related bug on GNOME+Wayland+Qt.

This bug was fixed (or worked around) in Qt 5.15.2,
so we implement a version check; if the runtime Qt
version is < 5.15.2, still force the workaround;
otherwise, we don't need the workaround so we skip
it.

* Reformat with clang-format
2025-05-10 20:07:12 -05:00
SFBB
b801ada623 Fix issue #564, that in wayland fractional scaling situtation, screenshot preview size is wrong. (#3869)
* fix screenshot's size not match with the screen when applying fractional scaling in KDE plasma desktop in wayland.

* Fix: Really fix wayland dpr is not correct and that causes our screenshot preview is wrongly scaled issue. This fix supports that we will use dpr in xcb platform because it is correct in that case.

* Chore: Use more concise variable names. Add comments to explain context.

* Chore: Fix a typo(physcal -> physical). Change code style to meet the .clang-format requirement.
2025-05-10 19:00:48 -05:00
borgmanJeremy
f7923936f2 fix clang-format for another PR (#3931) 2025-05-10 17:21:08 -05:00
insuna
7b25e467f0 Don't initialize Notifications dbus if disabled (#3598) 2025-05-10 16:42:42 -05:00
j4k0xb
a293034a50 Add option to disable abort notification (#3610) 2025-05-10 16:08:23 -05:00
Anwarul Islam
de11a36967 refactor: move general configuration tab to ConfigWindow first (#3655) 2025-05-10 16:08:09 -05:00
Oleksandr Honcharov
f4cde19c63 Fix the known issue of saving JPEG to clipboard on macOS (#3724) 2025-05-04 07:26:32 -05:00
Y5
7236570ca2 Optionally confirm to quit after pressing Escape (#3758)
* config: add `showQuitPrompt` option

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

* capturewidget: optionally show prompt on quit

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

* capturewidget: apply theme in quit prompt

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

---------

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
2025-05-02 15:42:57 -05:00
borgmanJeremy
9c098200c1 make clang-format happy (#3917) 2025-05-02 06:49:57 -05:00
jrpie
533a1b7d55 [security] replace pixelation by pseudo-pixelation (#3765)
* replaced pixelation by pseudo-pixelation

* pseudo-pixelation: sample from outside of the area if possible

* pseudo-pixelation: include <array>
2025-05-02 06:20:15 -05:00
Ricardo Ardissone
14619b1206 use QStandardPaths::ApplicationsLocation for open with (#3663) 2025-05-01 07:17:29 -05:00
Piotr Bocheński
fe3bcac8c5 Respect disabledGrimWarning config all notifications (#3896)
Signed-off-by: Piotr Bocheński <piotr@bochen.ski>
2025-04-28 06:23:59 -05:00
borgmanJeremy
0101357cbe Apply clang-format (#3915) 2025-04-27 13:31:06 -05:00
Allen Guo
b35f977c74 enable PinWidget scrolling on macos with mouse (#3860) 2025-04-27 09:18:17 -05:00
lhz07
5b7d41c7e6 Improve the speed of calling grim (#3859) 2025-04-27 09:16:15 -05:00