[PC-BSD Commits] r224 - pcbsd/trunk/PBCsource
svn at pcbsd.org
svn at pcbsd.org
Mon May 21 12:15:39 PDT 2007
Author: tim
Date: 2007-05-21 20:15:39 +0100 (Mon, 21 May 2007)
New Revision: 224
Removed:
pcbsd/trunk/PBCsource/Makefile
Modified:
pcbsd/trunk/PBCsource/pbcwizard.ui.h
Log:
Fixed bug #447 - Icons are now scaled with smoothScale() instead of scale() to remove jagged edges.
Deleted: pcbsd/trunk/PBCsource/Makefile
Modified: pcbsd/trunk/PBCsource/pbcwizard.ui.h
===================================================================
--- pcbsd/trunk/PBCsource/pbcwizard.ui.h 2007-05-21 19:13:53 UTC (rev 223)
+++ pcbsd/trunk/PBCsource/pbcwizard.ui.h 2007-05-21 19:15:39 UTC (rev 224)
@@ -233,7 +233,7 @@
// We create a QImage, then convert it to QPixmap to set our button
QImage *Icon = new QImage(TmpIcon);
QPixmap PixmapIcon;
- PixmapIcon.convertFromImage(Icon->scale(80,80));
+ PixmapIcon.convertFromImage(Icon->smoothScale(80,80));
IconButton->setPixmap(PixmapIcon);
// Save the path to this icon for later processing
DefaultIcon = TmpIcon;
@@ -937,13 +937,13 @@
{
QImage *Icon = new QImage(ExeIconPath[i]);
QPixmap PixmapIcon;
- PixmapIcon.convertFromImage(Icon->scale(40,40));
+ PixmapIcon.convertFromImage(Icon->smoothScale(40,40));
ExeListBox->insertItem(PixmapIcon, ExeDescr[i]);
} else {
QPixmap PixmapIcon = *IconButton->pixmap();
QImage TmpImage = PixmapIcon.convertToImage();
- PixmapIcon.convertFromImage(TmpImage.scale(40, 40));
+ PixmapIcon.convertFromImage(TmpImage.smoothScale(40, 40));
ExeListBox->insertItem(PixmapIcon, ExeDescr[i]);
}
@@ -971,13 +971,13 @@
{
QImage *Icon = new QImage(MimeIcon[i]);
QPixmap PixmapIcon;
- PixmapIcon.convertFromImage(Icon->scale(40,40));
+ PixmapIcon.convertFromImage(Icon->smoothScale(40,40));
MimeListBox->insertItem(PixmapIcon, MimeExt[i]);
} else {
QPixmap PixmapIcon = *IconButton->pixmap();
QImage TmpImage = PixmapIcon.convertToImage();
- PixmapIcon.convertFromImage(TmpImage.scale(40, 40));
+ PixmapIcon.convertFromImage(TmpImage.smoothScale(40, 40));
MimeListBox->insertItem(PixmapIcon, MimeExt[i]);
}
@@ -1176,7 +1176,7 @@
// We create a QImage, then convert it to QPixmap to set our button
QImage *Icon = new QImage( DefaultIcon);
QPixmap PixmapIcon;
- PixmapIcon.convertFromImage(Icon->scale(80,80));
+ PixmapIcon.convertFromImage(Icon->smoothScale(80,80));
IconButton->setPixmap(PixmapIcon);
}
}
@@ -1368,13 +1368,13 @@
{
QImage *Icon = new QImage(IconPath);
QPixmap PixmapIcon;
- PixmapIcon.convertFromImage(Icon->scale(40,40));
+ PixmapIcon.convertFromImage(Icon->smoothScale(40,40));
ExeListBox->changeItem(PixmapIcon, Desc, CurrentExeItem);
} else {
QPixmap PixmapIcon = *IconButton->pixmap();
QImage TmpImage = PixmapIcon.convertToImage();
- PixmapIcon.convertFromImage(TmpImage.scale(40, 40));
+ PixmapIcon.convertFromImage(TmpImage.smoothScale(40, 40));
ExeListBox->changeItem(PixmapIcon, Desc, CurrentExeItem);
}
More information about the Commits
mailing list