Added new widget to display an avatar with or without the status frame - AvatarWidget.

Changed all existing avatars to AvatarWidget.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4589 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-09-05 21:19:07 +00:00
parent 0ed60eaf86
commit 62b2de63b7
46 changed files with 730 additions and 595 deletions

View file

@ -42,7 +42,7 @@ border-radius: 10px}</string>
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="avatarlabel">
<widget class="AvatarWidget" name="avatar" native="true">
<property name="minimumSize">
<size>
<width>70</width>
@ -56,14 +56,10 @@ border-radius: 10px}</string>
</size>
</property>
<property name="styleSheet">
<string notr="true">QLabel#avatarlabel{border: 2px solid blue;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #2291E0, stop: 1 #3EB3FF);
<string notr="true">QWidget#avatar{border: 2px solid blue;
background-color: #2291E0;
}</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1" colspan="4">
@ -275,6 +271,14 @@ stop: 0 #2291E0, stop: 1 #3EB3FF);
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>AvatarWidget</class>
<extends>QWidget</extends>
<header>gui/common/AvatarWidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="../images.qrc"/>
</resources>