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-02 15:50:12 +0900
commit04e50e547f8ed2d6db996bc4816179fa962bd6b1 (patch)
tree5880f13b288d79e13e1a10f99c54b27bbe1fc942 /lib/kofficecore/KoDetailsPane.cpp
parentd1e35d25fca82e1d86a41895446f7aca8cdc3035 (diff)
downloadkoffice-04e50e547f8ed2d6db996bc4816179fa962bd6b1.tar.gz
koffice-04e50e547f8ed2d6db996bc4816179fa962bd6b1.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 03a70b5b9..35b518ac8 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));