diff options
Diffstat (limited to 'krita/ui/kis_icon_item.cc')
-rw-r--r-- | krita/ui/kis_icon_item.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/krita/ui/kis_icon_item.cc b/krita/ui/kis_icon_item.cc index 443416cc..339017fc 100644 --- a/krita/ui/kis_icon_item.cc +++ b/krita/ui/kis_icon_item.cc @@ -43,7 +43,7 @@ void KisIconItem::updatePixmaps() validThumb = false; if (m_resource && m_resource->valid()) { - QImage img = m_resource->img(); + TQImage img = m_resource->img(); if (img.isNull()) { m_resource->setValid(false); @@ -52,23 +52,23 @@ void KisIconItem::updatePixmaps() } if (img.width() > THUMB_SIZE || img.height() > THUMB_SIZE) { - QImage thumb = img; - Q_INT32 xsize = THUMB_SIZE; - Q_INT32 ysize = THUMB_SIZE; - Q_INT32 picW = thumb.width(); - Q_INT32 picH = thumb.height(); + TQImage thumb = img; + TQ_INT32 xsize = THUMB_SIZE; + TQ_INT32 ysize = THUMB_SIZE; + TQ_INT32 picW = thumb.width(); + TQ_INT32 picH = thumb.height(); if (picW > picH) { float yFactor = (float)((float)(float)picH / (float)picW); - ysize = (Q_INT32)(yFactor * (float)THUMB_SIZE); + ysize = (TQ_INT32)(yFactor * (float)THUMB_SIZE); if (ysize > THUMB_SIZE) ysize = THUMB_SIZE; } else if (picW < picH) { float xFactor = (float)((float)picW / (float)picH); - xsize = (Q_INT32)(xFactor * (float)THUMB_SIZE); + xsize = (TQ_INT32)(xFactor * (float)THUMB_SIZE); if (xsize > THUMB_SIZE) xsize = THUMB_SIZE; @@ -77,25 +77,25 @@ void KisIconItem::updatePixmaps() thumb = thumb.smoothScale(xsize, ysize); if (!thumb.isNull()) { - m_thumb = QPixmap(thumb); + m_thumb = TQPixmap(thumb); validThumb = !m_thumb.isNull(); } } img = img.convertDepth(32); - m_pixmap = QPixmap(img); + m_pixmap = TQPixmap(img); validPixmap = true; } } -QPixmap& KisIconItem::pixmap() const +TQPixmap& KisIconItem::pixmap() const { - return const_cast<QPixmap&>(m_pixmap); + return const_cast<TQPixmap&>(m_pixmap); } -QPixmap& KisIconItem::thumbPixmap() const +TQPixmap& KisIconItem::thumbPixmap() const { - return const_cast<QPixmap&>(m_thumb); + return const_cast<TQPixmap&>(m_thumb); } KisResource *KisIconItem::resource() const |