Igor Kushnir
feaee915bc
Extract Viewer::(vertical|horizontal)ScrollStep()
2022-01-15 18:02:30 +02:00
Igor Kushnir
133b547e7a
Remove unused *Step* data members from Viewer
2022-01-15 18:02:30 +02:00
Igor Kushnir
88e0f5513a
Reader: make 3 keyboard shortcuts work with non-Latin layouts
...
MainWindowViewer::keyPressEvent()'s custom matching of these shortcuts
does not leverage all the features of standard Qt shortcut matching. As
a result, the corresponding actions cannot be triggered when their
assigned shortcuts consist of a single Latin letter without modifiers
and e.g. Ukrainian keyboard layout is active.
Furthermore, some key presses (e.g. Scroll Lock in my customized
keyboard layout) set QKeyEvent::key() to 0, which the custom matching
considers equal to an unassigned shortcut. So an action without shortcut
is triggered by such a key press.
Adding these 3 actions to MainWindowViewer and connecting the
corresponding slots to their triggered() signals allows to remove the
custom matching code and thus eliminates both of its issues.
2022-01-15 18:02:30 +02:00
Luis Ángel San Martín
77c96de0ea
Remove unused resources
2022-01-15 15:51:59 +01:00
Luis Ángel San Martín
e452178adb
Log the device pixel ratio used while rendering
2022-01-15 11:54:40 +01:00
Luis Ángel San Martín
565bc3a5d0
Replace all uses of devicePixelRatio with devicePixelRatioF
2022-01-14 19:22:50 +01:00
Luis Ángel San Martín
380aea2a66
Enable Qt::HighDpiScaleFactorRoundingPolicy::PassThrough
2022-01-14 19:21:43 +01:00
Luis Ángel San Martín
e532fa4439
Use devicePixelRatioF instead of devicePixelRatio when rendering pages
2022-01-13 23:12:05 +01:00
Luis Ángel San Martín
fce1f163aa
Check that double click is done using the left button before toggling full-screen mode
2022-01-13 23:06:24 +01:00
Luis Ángel San Martín
d20958c14f
Make forward and backward mouse buttons turn pages
2022-01-13 23:05:49 +01:00
Luis Ángel San Martín
dcb7e6e0c6
Add settings to control the page turn behavior on scroll
2022-01-13 23:04:22 +01:00
Igor Kushnir
b0b0849cbc
Extract DEFINES += NOMINMAX into common config.pri
2021-12-29 09:36:44 +01:00
spinningthelock
5971aacda0
Enable using integrated GPU in Dual GPU Macs
...
Currently YACReader will default to higher-end discrete GPU for OpenGL calls. This increases the battery usage while having no need for such high performance. This Flag tells MacOS to switching to integrated GPU is oky in this app.
References:
https://developer.apple.com/library/archive/qa/qa1734/_index.html
https://developer.apple.com/documentation/bundleresources/information_property_list/nssupportsautomaticgraphicsswitching?language=objc
2021-12-25 11:30:04 -05:00
Joan Karadimov
6aeed9ae90
Include some missing headers
2021-11-02 11:02:32 +01:00
Joan Karadimov
1c3fd4d16f
Do not pass MSVC arguments to mingw/gcc
2021-11-02 11:02:32 +01:00
Luis Ángel San Martín
4bee296096
Strict qt5.15 breaks poppler
2021-10-23 17:11:50 +02:00
Luis Ángel San Martín
81ff663acd
Use qt5.15
2021-10-19 00:00:09 +02:00
Luis Ángel San Martín
2cdd53c316
Replace forward declaration with import
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
e91481d0c3
Fix QMediaPlayer usage in Qt6
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
75060d4f24
Do not use QTextCodec in Qt6
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
a7e3c41f34
QLabel QPixmap *pixmap() method is deprecated
...
const QPixmap should perform as fast as a pointer
there is a replacement version for Qt5 but it requires Qt5.15, so we are using indirection witch is unsafer but it should be ok as all the action is happen in the main thread
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
8207f75297
Replace setMargin with setContentsMargins
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
5e1e0b1d4a
Add include
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
088ccdf094
Remove setMargin usage
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
09e85e48bf
Remove unused include
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
100e1c40a1
Use QTransform instead of QMatrix
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
154f215c38
Use 4 args connect
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
567c00102d
Use fully qualified names
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
f5035b4bac
Use fully qualified names
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
d5e6623e33
Fix connections
...
signals can be chained and setCenter was an slot not a signal
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
ae43f23c85
Use angleDelta
...
pixelDelta is only provided in systems that support it
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
052e7ffba0
Add override annotation
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
740eab5025
Update QWheelEvent delta usage
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
1c144d950d
Use fully qualified names
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
474689e24b
Replace deprecated QPalette role
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
1012ec37c7
Use setContentsMargins instead of setMargin
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
2a90b1c6ef
Stop using availableGeometry
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
2de4b26b71
Start supporting Qt6
...
Everything is broken but we want to start fixing as much as possible
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
5f55dab0cc
Do not write unused values
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
0a2f7bd2af
Proper use of QString::arg
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
32b4e420a2
Fix emit calls
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
cc927de7de
Use ints for colors instead of string literals
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
e1ed292a91
Convert emit(signal()) calls to emit signal()
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
5aa02a19bb
clang-format
2021-10-18 21:56:52 +02:00
Luis Ángel San Martín
0dbad65f7f
Don't use the wheel stop in full page mode
2021-09-28 16:21:43 +02:00
Luis Ángel San Martín
2717f755bb
Fix signal name
2021-09-26 09:02:41 +02:00
Luis Ángel San Martín
b8ad2b540b
Merge branch 'develop' into clazy_autorefactoring
2021-09-26 08:52:23 +02:00
Luis Ángel San Martín
53f92ba1f6
Enable hdpi scaling
2021-09-13 17:34:15 +02:00
Felix Kauselmann
22c2431cc5
Render: Remove obsolete debug messages
2021-07-30 08:58:39 +02:00
Felix Kauselmann
abcb4b1f26
GoTo flow: Sync slide and page index in quick navigation mode
2021-07-30 08:58:39 +02:00