Skip to content

Commit 58bea0f

Browse files
committed
Revert to QImage::mirror() for Qt 6.8.x compatability
1 parent 8dea4fd commit 58bea0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/conversion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ KTex ToTexConverter::convert()
124124
QImage baseImage = convertToBasePixelFormat();
125125

126126
// Flip
127-
baseImage.flip();
127+
baseImage.mirror(); // .flip() in >= Qt 6.9.0
128128

129129
// Working images
130130
QVector<QImage> workingImages = {baseImage};
@@ -209,7 +209,7 @@ QImage FromTexConverter::convert()
209209
QImage img = convertToStandardFormat(mainImage);
210210

211211
// Flip
212-
img.flip();
212+
img.mirror(); // .flip() in >= Qt 6.9.0
213213

214214
return img;
215215
}

0 commit comments

Comments
 (0)