summaryrefslogtreecommitdiffstats
path: root/ksquirrel/sq_filethumbview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksquirrel/sq_filethumbview.cpp')
-rw-r--r--ksquirrel/sq_filethumbview.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/ksquirrel/sq_filethumbview.cpp b/ksquirrel/sq_filethumbview.cpp
index 0b7b30e..fe824ca 100644
--- a/ksquirrel/sq_filethumbview.cpp
+++ b/ksquirrel/sq_filethumbview.cpp
@@ -107,8 +107,8 @@ void SQ_FileThumbView::insertItem(KFileItem *i)
TQPixmap mimeall = i->pixmap(SQ_ThumbnailSize::smallest());
TQPixmap thumbnail(pixelSize.width(), pixelSize.height());
TQPainter painter(&thumbnail);
- painter.setBrush(colorGroup().base());
- painter.setPen(colorGroup().highlight());
+ painter.setBrush(tqcolorGroup().base());
+ painter.setPen(tqcolorGroup().highlight());
painter.drawRect(0, 0, pixelSize.width(), pixelSize.height());
painter.drawPixmap((pixelSize.width()-mimeall.width())/2, (pixelSize.height()-mimeall.height())/2, mimeall);
item = new SQ_FileThumbViewItem(this, i->text(), thumbnail, i);
@@ -147,8 +147,8 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
TQPainter painter;
painter.begin(&newpix);
- painter.setPen(colorGroup().highlight());
- painter.setBrush(colorGroup().base());
+ painter.setPen(tqcolorGroup().highlight());
+ painter.setBrush(tqcolorGroup().base());
// draw bounding rect
painter.drawRect(0, 0, W, H);
@@ -163,9 +163,9 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
int rest = H-W-2;
- painter.setPen(colorGroup().text());
+ painter.setPen(tqcolorGroup().text());
- if(t.w && t.h) painter.drawText(4, W+rest/2-12, 100, 12, 0, TQString::fromLatin1("%1x%2").arg(t.w).arg(t.h));
+ if(t.w && t.h) painter.drawText(4, W+rest/2-12, 100, 12, 0, TQString::tqfromLatin1("%1x%2").tqarg(t.w).tqarg(t.h));
painter.drawText(4, W+rest/2+1, 100, 12, 0, KIO::convertSize(fileItem->size()));
painter.end();
@@ -177,8 +177,8 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
TQPainter painter;
painter.begin(&newpix);
- painter.setPen(colorGroup().highlight());
- painter.setBrush(colorGroup().base());
+ painter.setPen(tqcolorGroup().highlight());
+ painter.setBrush(tqcolorGroup().base());
// draw bounding rect
painter.drawRect(0, 0, pixelSize.width(), pixelSize.height());
@@ -192,7 +192,7 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
item->setListed(true);
// update item
- item->repaint();
+ item->tqrepaint();
}
void SQ_FileThumbView::startThumbnailUpdate()
@@ -466,8 +466,8 @@ void SQ_FileThumbView::rebuildPendingPixmap(bool dir)
p->resize(pixelSize.width(), pixelSize.height());
TQPainter painter(p);
- painter.setBrush(colorGroup().base());
- painter.setPen(colorGroup().highlight());
+ painter.setBrush(tqcolorGroup().base());
+ painter.setPen(tqcolorGroup().highlight());
painter.drawRect(0, 0, pixelSize.width(), pixelSize.height());
painter.drawPixmap((pixelSize.width() - w->width())/2, (pixelSize.height() - w->height())/2, *w);
}