summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDetailsPane.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:50:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-03 22:56:09 +0900
commit7b525ca12009d79fe90020690a4e7f0716dc97c2 (patch)
treed0561e6888afed3a1aef5058cc5a1c6348546f2f /lib/kofficecore/KoDetailsPane.cpp
parentc4525c81c3e7a2d7cc4c0afecc8bb5e217be9822 (diff)
downloadkoffice-7b525ca1.tar.gz
koffice-7b525ca1.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 04e50e547f8ed2d6db996bc4816179fa962bd6b1)
Diffstat (limited to 'lib/kofficecore/KoDetailsPane.cpp')
-rw-r--r--lib/kofficecore/KoDetailsPane.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kofficecore/KoDetailsPane.cpp b/lib/kofficecore/KoDetailsPane.cpp
index 5a4c34663..7fcf11649 100644
--- a/lib/kofficecore/KoDetailsPane.cpp
+++ b/lib/kofficecore/KoDetailsPane.cpp
@@ -112,7 +112,7 @@ KoTemplatesPane::KoTemplatesPane(TQWidget* parent, TDEInstance* instance,
for (KoTemplate* t = group->first(); t != 0L; t = group->next()) {
TDEListViewItem* item = new TDEListViewItem(m_documentList, t->name(), t->description(), t->file());
TQImage icon = t->loadPicture(instance).convertToImage();
- icon = icon.smoothScale(64, 64, TQ_ScaleMin);
+ icon = icon.smoothScale(64, 64, TQImage::ScaleMin);
icon.setAlphaBuffer(true);
icon = icon.copy((icon.width() - 64) / 2, (icon.height() - 64) / 2, 64, 64);
item->setPixmap(0, TQPixmap(icon));
@@ -418,7 +418,7 @@ void KoRecentDocumentsPane::updatePreview(const KFileItem* fileItem, const TQPix
if(it.current()->text(1) == fileItem->url().url()) {
it.current()->setPixmap(2, preview);
TQImage icon = preview.convertToImage();
- icon = icon.smoothScale(64, 64, TQ_ScaleMin);
+ icon = icon.smoothScale(64, 64, TQImage::ScaleMin);
icon.setAlphaBuffer(true);
icon = icon.copy((icon.width() - 64) / 2, (icon.height() - 64) / 2, 64, 64);
it.current()->setPixmap(0, TQPixmap(icon));