Commit graph

44563 commits

Author SHA1 Message Date
Kovid Goyal
da644a5000
... 2022-03-09 08:21:43 +05:30
Kovid Goyal
7bbe8d56ec
X11extras does not exist on Qt 6 2022-03-09 08:21:43 +05:30
Kovid Goyal
1070dd5963
Restore various missing enum values from various PyQt classes 2022-03-09 08:21:43 +05:30
Kovid Goyal
3a8a430d41
Call setModal correctly 2022-03-09 08:21:43 +05:30
Kovid Goyal
f4ead1897e
Need to store a python reference to the menu on the action to avoid the menu being deleted in case it is not stored anywhere else 2022-03-09 08:21:43 +05:30
Kovid Goyal
7bfed9dcfa
QMutex -> QRecursiveMutex 2022-03-09 08:21:43 +05:30
Kovid Goyal
478eadef60
Missed a const marking 2022-03-09 08:21:43 +05:30
Kovid Goyal
46f2b663c2
Silence the webengine context debug print 2022-03-09 08:21:43 +05:30
Kovid Goyal
9a569178dc
Restore QModelIndex::child 2022-03-09 08:21:43 +05:30
Kovid Goyal
e4d1f57532
Restore the ability to associate menus with actions 2022-03-09 08:21:43 +05:30
Kovid Goyal
b4cebdcd50
Port use of webengine in store downloader 2022-03-09 08:21:43 +05:30
Kovid Goyal
0a58c31700
Remove unused code 2022-03-09 08:21:43 +05:30
Kovid Goyal
57100c3ecd
Make the webengine test more robust 2022-03-09 08:21:43 +05:30
Kovid Goyal
dce521cb1e
A couple more QFontMetrics::width 2022-03-09 08:21:42 +05:30
Kovid Goyal
46904a7050
Replace QTextLayouts::*additionalFormats methods 2022-03-09 08:21:42 +05:30
Kovid Goyal
588ef4b92d
Restore the removed exec_ methods 2022-03-09 08:21:42 +05:30
Kovid Goyal
01d63cecca
Put the methods in QMouseEvent that PyQt6 removed back 2022-03-09 08:21:42 +05:30
Kovid Goyal
41031272c4
More PyQt6 nonsense 2022-03-09 08:21:42 +05:30
Kovid Goyal
2cb9f513f5
More PyQt nonsense
Some more enums that werent previous migrated
2022-03-09 08:21:42 +05:30
Kovid Goyal
db84a96616
In Qt6 QWebEnginepage and QWebEngineView can be imported separately before constructing the QApplication 2022-03-09 08:21:42 +05:30
Kovid Goyal
1ffdfec82d
fix deprecation warnings building pictureflow 2022-03-09 08:21:42 +05:30
Kovid Goyal
5fd35683fb
QFontDatabase is all static in Qt 6 2022-03-09 08:21:42 +05:30
Kovid Goyal
2be7b7e899
Replace a couple more Qt 5 references 2022-03-09 08:21:42 +05:30
Kovid Goyal
c4122f6f47
Get the Qt plugins building with Qt6 2022-03-09 08:21:42 +05:30
Kovid Goyal
749d222579
More PyQt6 nonsense
QCombobox::activated[str] no longer exists renamed to
QComboBox::textActivated
2022-03-09 08:21:42 +05:30
Kovid Goyal
71e50bbaf7
More PyQt6 nonsense
SIP can apparently no longer auto-convert QVector<Rgb>
2022-03-09 08:21:42 +05:30
Kovid Goyal
ee0eb5d5ba
Install Qt 6 on Arch 2022-03-09 08:21:42 +05:30
Kovid Goyal
54576e1321
Redirect PyQt5 imports to PyQt6 2022-03-09 08:21:42 +05:30
Kovid Goyal
c5be7364db
Replace references to PyQt5 in the source 2022-03-09 08:21:41 +05:30
Kovid Goyal
2652985d72
More PyQt6 nonsense 2022-03-09 08:21:41 +05:30
Kovid Goyal
031e102210
pyqt6 FindFlags(0) -> FindFlag(0) 2022-03-09 08:21:41 +05:30
Kovid Goyal
f5723254f3
pyqt6 croaks if you pass a QPoint instead of a QPointF to QGradient classes 2022-03-09 08:21:41 +05:30
Kovid Goyal
56ff4a4b80
pyqt6 remove Qapplication::fontMetrics 2022-03-09 08:21:41 +05:30
Kovid Goyal
8800a8d969
more pyqt6 busyword QFontMetrics::width -> horizontalAdvance 2022-03-09 08:21:41 +05:30
Kovid Goyal
53c64249ff
more pyqt busywork 2022-03-09 08:21:41 +05:30
Kovid Goyal
f9f856cfde
Migrate touch detection to use QInputDevice instead of QTouchDevice which no longer exists 2022-03-09 08:21:41 +05:30
Kovid Goyal
7f9d01e12c
icon_map needs ints 2022-03-09 08:21:41 +05:30
Kovid Goyal
ecba1203ab
Remove the HiDPI setting as it is no longer really tuneable in Qt 6 2022-03-09 08:21:41 +05:30
Kovid Goyal
1022c837cd
Redirect Qt imports to PyQt 6 2022-03-09 08:21:41 +05:30
Kovid Goyal
29482963b7
config_base cant depend on utils.filenames 2022-03-09 08:20:30 +05:30
Kovid Goyal
c1a06e9c37
oops 2022-03-09 08:08:21 +05:30
Kovid Goyal
0012b7cd64
Delete temp file used for atomic writes even if renaming fails 2022-03-09 07:54:44 +05:30
Kovid Goyal
007099dd60
Use atomic writes for the config files
Avoids the need for file locking and also ensures no partial data is
written in case of crash/powerloss. Fixes #1964123 [Settings reset in main calibre program when pc turns off due to power failure](https://bugs.launchpad.net/calibre/+bug/1964123)
2022-03-09 07:51:54 +05:30
Kovid Goyal
15ded1182f
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-03-08 17:48:50 +05:30
Charles Haley
9270e9b948 Fix a performance problem exposed when using the view manager plugin. The method apply_state() indirectly does a save_state() whenever a column is repositioned. The view manager can reposition a lot of columns in one go, potentially resulting in *many* calls to save_state(). The fix is to call save_state() once after all the columns have been repositions.
A second piece of the fix is to add a save_state=True parameter to apply_state(). The caller would set save_state=False if it will call save_state() directly.

See https://www.mobileread.com/forums/showthread.php?t=345554. The thread is rather long.
2022-03-08 12:09:34 +00:00
Kovid Goyal
240aee0ee5
Use the gesture manager for touch support in the viewer panels
Harmonizes with the book list and is superior to plain QScroller
2022-03-08 15:22:46 +05:30
Kovid Goyal
5277bad302
Use Qt to detect touchscreen support 2022-03-08 15:02:38 +05:30
Kovid Goyal
3aed3daaa2
... 2022-03-08 11:35:50 +05:30
Kovid Goyal
cbbac1be62
Update The Federalist 2022-03-08 07:41:14 +05:30
Kovid Goyal
7080d8914b
Open Magazine by unkn0wn 2022-03-08 07:21:14 +05:30