Changed profile_pic_border.png in res/images. Changed AvatarImage and
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 24 May 2010 11:17:53 +0000 (14:17 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 24 May 2010 11:17:53 +0000 (14:17 +0300)
FriendListItem image sizes.

images.qrc
res/images/profile_pic_border.png
src/ui/avatarimage.cpp
src/ui/friendlistitem.cpp

index 701bd37..da50267 100644 (file)
@@ -8,7 +8,6 @@
         <file>res/images/zoom_in.png</file>
         <file>res/images/zoom_out.png</file>
         <file>res/images/personal_info_bckgrnd.png</file>
-        <file>res/images/profile_pic_border.png</file>
         <file>res/images/refresh.png</file>
         <file>res/images/refresh_s.png</file>
         <file>res/images/send_position.png</file>
@@ -36,5 +35,6 @@
         <file>res/images/car_icon_gray.png</file>
         <file>res/images/rocket_icon_gray.png</file>
         <file>res/images/walk_icon_gray.png</file>
+        <file>res/images/profile_pic_border.png</file>
     </qresource>
 </RCC>
index 0293863..8352da8 100755 (executable)
Binary files a/res/images/profile_pic_border.png and b/res/images/profile_pic_border.png differ
index 59a4d79..0f885fb 100644 (file)
 #include <QPainter>
 #include <QDebug>
 
-const int IMAGE_WIDTH = 60;     ///< Created image width
-const int IMAGE_HEIGHT = 60;    ///< Created image height
-const int ORIGINAL_IMAGE_X = 5; ///< Original image x position
-const int ORIGINAL_IMAGE_Y = 5; ///< Original image y position
+const int IMAGE_WIDTH = 64;     ///< Created image width
+const int IMAGE_HEIGHT = 64;    ///< Created image height
+const int ORIGINAL_IMAGE_X = 7; ///< Original image x position
+const int ORIGINAL_IMAGE_Y = 7; ///< Original image y position
 const int ROUNDNESS = 9;        ///< Image roundness
 const int CLIP_X_OFFSET = 1;    ///< Clip
 
index 4475583..8710c8d 100644 (file)
@@ -40,8 +40,8 @@ const int BACKGROUND_TOP_HEIGHT = 20;
 const int BACKGROUND_BOTTOM_HEIGHT = 15;
 const int ICON_HEIGHT = 24;     ///< Icon height
 const int ICON_WIDTH = 24;       ///< Icon width
-const int IMAGE_HEIGHT = 60; ///< Friend image height
-const int IMAGE_WIDTH = 60;  ///< Friend image width
+const int IMAGE_HEIGHT = 64; ///< Friend image height
+const int IMAGE_WIDTH = 64;  ///< Friend image width
 const int ITEM_MAX_HEIGHT = 240; ///< Maximum height for item
 const int ITEM_MAX_WIDTH = 368;  ///< Maximum width for item
 const int ITEM_MIN_HEIGHT = 141; ///< Minimum height for item