diff options
Diffstat (limited to 'lib/kofficecore/KoDetailsPane.cpp')
-rw-r--r-- | lib/kofficecore/KoDetailsPane.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kofficecore/KoDetailsPane.cpp b/lib/kofficecore/KoDetailsPane.cpp index 03a70b5b..35b518ac 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)); |