|
|
@ -2641,9 +2641,9 @@ TQPixmap KeyView::slotGetPhoto(TQString photoId,bool mini)
|
|
|
|
TQImage dup=pixmap.convertToImage();
|
|
|
|
TQImage dup=pixmap.convertToImage();
|
|
|
|
TQPixmap dup2;
|
|
|
|
TQPixmap dup2;
|
|
|
|
if (!mini)
|
|
|
|
if (!mini)
|
|
|
|
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQ_ScaleMin));
|
|
|
|
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQImage::ScaleMin));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
dup2.convertFromImage(dup.scale(22,22,TQ_ScaleMin));
|
|
|
|
dup2.convertFromImage(dup.scale(22,22,TQImage::ScaleMin));
|
|
|
|
phototmp->unlink();
|
|
|
|
phototmp->unlink();
|
|
|
|
delete phototmp;
|
|
|
|
delete phototmp;
|
|
|
|
return dup2;
|
|
|
|
return dup2;
|
|
|
@ -2721,7 +2721,7 @@ void KeyView::expandKey(TQListViewItem *item)
|
|
|
|
pixmap.load(kgpgphototmp->name());
|
|
|
|
pixmap.load(kgpgphototmp->name());
|
|
|
|
TQImage dup=pixmap.convertToImage();
|
|
|
|
TQImage dup=pixmap.convertToImage();
|
|
|
|
TQPixmap dup2;
|
|
|
|
TQPixmap dup2;
|
|
|
|
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQ_ScaleMin));
|
|
|
|
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQImage::ScaleMin));
|
|
|
|
itemuid->setPixmap(0,dup2);
|
|
|
|
itemuid->setPixmap(0,dup2);
|
|
|
|
delete kgpgphototmp;
|
|
|
|
delete kgpgphototmp;
|
|
|
|
//itemuid->setPixmap(0,keyPhotoId);
|
|
|
|
//itemuid->setPixmap(0,keyPhotoId);
|
|
|
|