diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:50:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:50:12 +0900 |
commit | 04e50e547f8ed2d6db996bc4816179fa962bd6b1 (patch) | |
tree | 5880f13b288d79e13e1a10f99c54b27bbe1fc942 /lib/koproperty/editors/pixmapedit.cpp | |
parent | d1e35d25fca82e1d86a41895446f7aca8cdc3035 (diff) | |
download | koffice-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/koproperty/editors/pixmapedit.cpp')
-rw-r--r-- | lib/koproperty/editors/pixmapedit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/koproperty/editors/pixmapedit.cpp b/lib/koproperty/editors/pixmapedit.cpp index 4e295c96..6fdc5f62 100644 --- a/lib/koproperty/editors/pixmapedit.cpp +++ b/lib/koproperty/editors/pixmapedit.cpp @@ -70,7 +70,7 @@ PixmapEdit::PixmapEdit(Property *property, TQWidget *parent, const char *name) m_button->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); TQFontMetrics fm(m_button->font()); m_button->setFixedWidth(fm.width(m_button->text()+' ')); - m_button->setFocusPolicy(TQ_NoFocus); + m_button->setFocusPolicy(TQWidget::NoFocus); m_popup = new TQLabel(0, "m_popup", TQt::WStyle_Customize|TQt::WStyle_NoBorder|TQt::WX11BypassWM|WStyle_StaysOnTop); m_popup->setPaletteBackgroundColor(m_popup->palette().active().base()); @@ -105,13 +105,13 @@ PixmapEdit::setValue(const TQVariant &value, bool emitChange) else { TQImage img(m_pixmap.convertToImage()); if (!TQRect(TQPoint(0,0), m_edit->size()*3).contains(m_pixmap.rect())) { - img = img.smoothScale(m_edit->size()*3, TQ_ScaleMin); + img = img.smoothScale(m_edit->size()*3, TQImage::ScaleMin); m_previewPixmap.convertFromImage(img);//preview pixmap is a bit larger } else { m_previewPixmap = m_pixmap; } - img = img.smoothScale(m_edit->size(), TQ_ScaleMin); + img = img.smoothScale(m_edit->size(), TQImage::ScaleMin); TQPixmap pm; pm.convertFromImage(img); m_edit->setPixmap(pm); @@ -135,7 +135,7 @@ PixmapEdit::drawViewer(TQPainter *p, const TQColorGroup &, const TQRect &r, cons m_scaledPixmap = value.toPixmap(); if (m_scaledPixmap.height() > r2.height() || m_scaledPixmap.width() > r2.width()) { //scale down TQImage img(m_scaledPixmap.convertToImage()); - img = img.smoothScale(r2.size()/*+TQSize(0,2)*/, TQ_ScaleMin); + img = img.smoothScale(r2.size()/*+TQSize(0,2)*/, TQImage::ScaleMin); m_scaledPixmap.convertFromImage(img); } } |