diff options
| author | 2025-07-17 13:26:45 +0200 | |
|---|---|---|
| committer | 2025-07-17 13:26:45 +0200 | |
| commit | 735c673d8865e3abfe1d9505af5f107306bb82d3 (patch) | |
| tree | 8337a96387dfd33bb197cac7796768e63faa9f16 /src/modules/objects/KvsObject_pixmap.cpp | |
| parent | KviControlCodes: fix compilation with Qt >= 6.9 (#2705) (diff) | |
| download | KVIrc-735c673d8865e3abfe1d9505af5f107306bb82d3.tar.gz KVIrc-735c673d8865e3abfe1d9505af5f107306bb82d3.tar.bz2 KVIrc-735c673d8865e3abfe1d9505af5f107306bb82d3.zip | |
Adapt to Qt 6.9 deprecations (#2706)
* Adapt to Qt 6.9 deprecations
* Windows 2019 images are no more available no github, switch to 2022
* Wordaround Qt5 missing QTimezone::UTC
Diffstat (limited to 'src/modules/objects/KvsObject_pixmap.cpp')
| -rw-r--r-- | src/modules/objects/KvsObject_pixmap.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/objects/KvsObject_pixmap.cpp b/src/modules/objects/KvsObject_pixmap.cpp index 15377194b..087594066 100644 --- a/src/modules/objects/KvsObject_pixmap.cpp +++ b/src/modules/objects/KvsObject_pixmap.cpp @@ -463,7 +463,20 @@ KVSO_CLASS_FUNCTION(pixmap, mirrored) return false; } m_currentType = Image; + +#if (QT_VERSION < QT_VERSION_CHECK(6, 9, 0)) *m_pImage = m_pImage->mirrored(bHorizontal, bVertical); +#else + Qt::Orientations orient = Qt::Orientations(); + if(bHorizontal) { + orient |= Qt::Horizontal; + } + if(bVertical) { + orient |= Qt::Vertical; + } + *m_pImage = m_pImage->flipped(orient); +#endif + return true; } |
