Commit Graph

33 Commits

Author SHA1 Message Date
5b8ec75e5f Update secondary views when the model gets reloaded 2023-08-16 17:46:33 +02:00
352e52f454 Remove usage of Qt.platform.os 2023-05-24 20:58:01 +02:00
85b1c42380 Remove usage of Qt.platform.os 2023-05-24 20:57:45 +02:00
78800010f6 Remove usage of Qt.platform.os 2023-05-24 20:45:43 +02:00
315d2deced Don't use Q_OS_MAC for ui specifics, Y_MAC_UI is the replacement 2023-05-23 18:51:33 +02:00
6a6a239cc7 Add the possibility to show a recently added/updated indicator 2023-05-20 16:17:40 +02:00
c7a1a73432 Convert more icons to SVG 2022-10-22 16:26:10 +02:00
d2dff7b4a5 Add new type of view to display the content of a folder that doesn't contain comics
It is a replacement for EmptyFolderWidget for now, but it should evolve to show comics and folders
2022-10-09 11:32:06 +02:00
f25524e64c Update the cover size when the grid comics view is shown
The size may have changed while it was away
2022-10-09 11:32:06 +02:00
1b54a407b8 Move common initialization code to the parent class 2022-01-19 19:16:27 +01:00
27383da945 Configure the initial size of the covers 2022-01-19 18:17:04 +01:00
59ae6c5e51 Extract method 2022-01-19 18:16:13 +01:00
2ae9b83bbf Make sure that opengl is used
QQuickWidget requires opengl.
2022-01-19 18:15:36 +01:00
b841aff4a3 Wrap booleans in QVariant when updating the qml context 2022-01-19 18:14:29 +01:00
e80f5a9f64 Move common initialization to the parent class 2022-01-19 18:12:40 +01:00
8173f9f94c Use setContentsMargins instead of setMargin 2021-10-19 00:00:09 +02:00
5aa02a19bb clang-format 2021-10-18 21:56:52 +02:00
8377de7c3e Clazy: Use fixits to refactor some old style signal connections 2021-06-29 13:53:12 +02:00
91c9375dc1 Fix opening a comic from the current/next comic banner in the grid view 2021-06-19 07:24:29 +02:00
af13279c18 Fix open comic signal 2021-06-11 22:36:33 +02:00
e799513fb4 Reset the grid current index when the grid content changes
`model` object doesn't really change so we can't use `onModelChanged` in QML to reset the index.
2021-05-16 08:57:18 +02:00
fc57378a85 Remove unused sizeHint() from GridComicsView and ComicsViewTransition
QWidget::sizeHint() is const-qualified, so Clang warns that non-const
sizeHint() member functions merely hide the virtual function of the base
class.

664dac3401 and
9f53ae6efc introduced these member
functions in 2014 without const qualifiers. QWidget::sizeHint() was
const-qualified even in Qt 3. Since these member functions have never
had any effect, they should be removed rather than const-qualified to
preserve the long-standing behaviors of the two classes.

Add a TODO for a similar but less straightforward issue with
PropertiesDialog::sizeHint().
2021-03-13 15:33:34 +02:00
8a54100804 Library: allow configuring a shortcut to focus comics view
Focusing the current comics view allows to use keyboard arrow keys to
choose among the visible comics.

The shortcut for this new action should not be a single character
without modifiers because it won't work when the search line has focus.

The Qt::FocusReason parameter in ComicsView::focusComicsNavigation()
allows to reuse this function for other keyboard navigation features.
For instance the search line can transfer focus to comics navigation
when the user presses Return or Enter key. In this case
Qt::OtherFocusReason can be used (an application-specific reason).
2021-03-13 15:08:33 +02:00
4f4c562a33 Add setting to disable the continue reading banner in the grid view 2019-08-11 11:47:14 +02:00
bb334cfd50 Use auto to avoid duplicating the type name 2019-06-01 16:04:48 +02:00
e3ec56aa43 Format code using clang-format 2019-05-30 19:46:37 +02:00
02eda8eeb5 Use QQuickWidget instead of QQuickView to avoid displacement bugs on Windows and Linux 2018-08-11 11:26:12 +02:00
d5a11fb16b Add .gitattributes rules for text and binary handling 2018-07-30 15:04:04 +02:00
450997762e Current comic view only makes sense for folders and reading lists. 2018-05-22 18:45:12 +02:00
66d1bd1046 Merge branch 'server_2.0' into develop 2018-05-22 18:10:24 +02:00
15e5618454 Add a simple qml error logger to YACReaderLibrary 2018-05-21 15:16:20 +02:00
f6d389ff35 Add current/next comic view to GridView. 2018-04-23 19:22:51 +02:00
2cbbf8d433 Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00