summaryrefslogtreecommitdiffstats
path: root/src/translators/alexandriaexporter.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-02 15:50:23 +0900
committerMichele Calgaro <[email protected]>2023-09-03 22:55:20 +0900
commit4b657979ec0fccf8904edfef636f23347caa3962 (patch)
tree6e56f2ff567a5df1e23653c27dc39f2e7994c432 /src/translators/alexandriaexporter.cpp
parent31fba8412589656cf1c330ad617732a346309344 (diff)
downloadtellico-4b657979ec0fccf8904edfef636f23347caa3962.tar.gz
tellico-4b657979ec0fccf8904edfef636f23347caa3962.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d82c9bd8b659143ef1c13dfff0f0a1a6da99e11f)
Diffstat (limited to 'src/translators/alexandriaexporter.cpp')
-rw-r--r--src/translators/alexandriaexporter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/translators/alexandriaexporter.cpp b/src/translators/alexandriaexporter.cpp
index 633864f..7d067e4 100644
--- a/src/translators/alexandriaexporter.cpp
+++ b/src/translators/alexandriaexporter.cpp
@@ -167,11 +167,11 @@ bool AlexandriaExporter::writeFile(const TQDir& dir_, Data::ConstEntryPtr entry_
TQString filename = dir_.absPath() + TQDir::separator() + isbn;
if(img1.height() > ALEXANDRIA_MAX_SIZE_SMALL) {
if(img1.height() > ALEXANDRIA_MAX_SIZE_MEDIUM) { // limit maximum size
- img1 = img1.scale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQ_ScaleMin);
+ img1 = img1.scale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQImage::ScaleMin);
}
- img2 = img1.scale(ALEXANDRIA_MAX_SIZE_SMALL, ALEXANDRIA_MAX_SIZE_SMALL, TQ_ScaleMin);
+ img2 = img1.scale(ALEXANDRIA_MAX_SIZE_SMALL, ALEXANDRIA_MAX_SIZE_SMALL, TQImage::ScaleMin);
} else {
- img2 = img1.smoothScale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQ_ScaleMin); // scale up
+ img2 = img1.smoothScale(ALEXANDRIA_MAX_SIZE_MEDIUM, ALEXANDRIA_MAX_SIZE_MEDIUM, TQImage::ScaleMin); // scale up
}
if(!img1.save(filename + TQString::fromLatin1("_medium.jpg"), "JPEG")
|| !img2.save(filename + TQString::fromLatin1("_small.jpg"), "JPEG")) {