Changed magic numbers to constant in AvatarImage.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 17 May 2010 13:08:25 +0000 (16:08 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 17 May 2010 13:08:25 +0000 (16:08 +0300)
src/ui/avatarimage.cpp

index 940bb49..59a4d79 100644 (file)
@@ -33,7 +33,7 @@ const int CLIP_X_OFFSET = 1;    ///< Clip
 
 QPixmap AvatarImage::create(const QPixmap &image)
 {
-    QPixmap avatarImage = QPixmap(60, 60);
+    QPixmap avatarImage = QPixmap(IMAGE_WIDTH, IMAGE_HEIGHT);
     avatarImage.fill(Qt::transparent);
     QPainter painter(&avatarImage);