Commit Graph

3440 Commits

Author SHA1 Message Date
8bcea9cc8d Enable core5compat in YACReaderLibraryServer 2021-10-19 00:00:09 +02:00
aeb64281e7 Enable /std:c++17 for msvc 2021-10-19 00:00:09 +02:00
4dd945c3a6 Add missing include 2021-10-19 00:00:09 +02:00
122082a2a7 Bump c++ version to 17 and configure the projects to use Qt5.15 or newer 2021-10-19 00:00:09 +02:00
81ff663acd Use qt5.15 2021-10-19 00:00:09 +02:00
2cdd53c316 Replace forward declaration with import 2021-10-19 00:00:08 +02:00
e91481d0c3 Fix QMediaPlayer usage in Qt6 2021-10-19 00:00:08 +02:00
75060d4f24 Do not use QTextCodec in Qt6 2021-10-19 00:00:08 +02:00
e7f3d29477 Tag ComicDB::operator== as const 2021-10-19 00:00:08 +02:00
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
5fbd100449 Use non deprecated QStandardPaths and remove Qt4 alternative 2021-10-19 00:00:08 +02:00
dc8c6e23e9 Use angleDelta instead of delta 2021-10-19 00:00:08 +02:00
d47bd55fa0 Don't use helper function to avoid raising the Qt5 min version requeriment 2021-10-19 00:00:08 +02:00
8207f75297 Replace setMargin with setContentsMargins 2021-10-19 00:00:08 +02:00
5e1e0b1d4a Add include 2021-10-19 00:00:08 +02:00
088ccdf094 Remove setMargin usage 2021-10-19 00:00:08 +02:00
09e85e48bf Remove unused include 2021-10-19 00:00:08 +02:00
100e1c40a1 Use QTransform instead of QMatrix 2021-10-19 00:00:08 +02:00
154f215c38 Use 4 args connect 2021-10-19 00:00:08 +02:00
567c00102d Use fully qualified names 2021-10-19 00:00:08 +02:00
f5035b4bac Use fully qualified names 2021-10-19 00:00:08 +02:00
d5e6623e33 Fix connections
signals can be chained and setCenter was an slot not a signal
2021-10-19 00:00:08 +02:00
ae43f23c85 Use angleDelta
pixelDelta is only provided in systems that support it
2021-10-19 00:00:08 +02:00
052e7ffba0 Add override annotation 2021-10-19 00:00:08 +02:00
740eab5025 Update QWheelEvent delta usage 2021-10-19 00:00:08 +02:00
1c144d950d Use fully qualified names 2021-10-19 00:00:08 +02:00
474689e24b Replace deprecated QPalette role 2021-10-19 00:00:08 +02:00
1012ec37c7 Use setContentsMargins instead of setMargin 2021-10-19 00:00:08 +02:00
2a90b1c6ef Stop using availableGeometry 2021-10-19 00:00:08 +02:00
b07ec73ccc Use Qt::endl instead of endl 2021-10-19 00:00:08 +02:00
f300bc3aa0 Include QMetaType explicitly 2021-10-19 00:00:08 +02:00
b83d7150d7 Use QElapsedTimer instead of QTime 2021-10-19 00:00:08 +02:00
bdb23de74a Use fully qualified names 2021-10-19 00:00:08 +02:00
9ebd6e32da Fix QtOpenGL* includes in Qt6 2021-10-19 00:00:08 +02:00
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
35fa03549b Use fully qualified names 2021-10-19 00:00:08 +02:00
326cebdf7f *Ref methods are deprecated in Qt6 2021-10-19 00:00:08 +02:00
a792a03760 Use QRegularExpression instead of QRegExp 2021-10-19 00:00:08 +02:00
ecd1497370 Don't use virtual methods unnecessarily 2021-10-19 00:00:08 +02:00
db433be88c Include QRegExp explicitly 2021-10-19 00:00:08 +02:00
b878e8169e Replace QDateTime constructor
Using the last moment of the day is enough because all other dates in bookmarks have happened before.
2021-10-19 00:00:08 +02:00
5f55dab0cc Do not write unused values 2021-10-19 00:00:08 +02:00
0a2f7bd2af Proper use of QString::arg 2021-10-19 00:00:08 +02:00
3291300d51 Use continue instead of relying on garbage bool 2021-10-19 00:00:08 +02:00
32b4e420a2 Fix emit calls 2021-10-19 00:00:08 +02:00
459883d7be Use *Ref methods instead 2021-10-19 00:00:07 +02:00
a56914bec3 Do not use foreach 2021-10-19 00:00:07 +02:00
c1d3fb0778 Proper use of range for 2021-10-19 00:00:07 +02:00
c03b1075f3 Do not mix const an non-const iterators 2021-10-19 00:00:07 +02:00
cc927de7de Use ints for colors instead of string literals 2021-10-19 00:00:07 +02:00