Compare commits
1 Enmetoj
205576d973
...
a1d2314b77
Author | SHA1 | Date | |
---|---|---|---|
Jaidyn Ann | a1d2314b77 |
11
contact.scm
11
contact.scm
|
@ -230,20 +230,15 @@
|
||||||
(lineEditWidget (if formname (qt:find window lineEditName) #f))]
|
(lineEditWidget (if formname (qt:find window lineEditName) #f))]
|
||||||
(cond
|
(cond
|
||||||
[lineEditWidget
|
[lineEditWidget
|
||||||
(set! (qt:property lineEditWidget "text")
|
(set! (qt:property lineEditWidget "text") (last property))]
|
||||||
(cond
|
|
||||||
[(string? (last property))
|
|
||||||
(last property)]
|
|
||||||
[(uri:uri? (last property))
|
|
||||||
(uri:uri->string (last property))]
|
|
||||||
[#t ""]))]
|
|
||||||
[(and (eq? (car property) 'PHOTO)
|
[(and (eq? (car property) 'PHOTO)
|
||||||
(list? (last property)))
|
(list? (last property)))
|
||||||
(let* [(avatar (qt:find window "avatarLabel"))
|
(let* [(avatar (qt:find window "avatarLabel"))
|
||||||
(old-pixmap (if avatar (qt:property avatar "pixmap")))
|
(old-pixmap (if avatar (qt:property avatar "pixmap")))
|
||||||
[new-pixmap (if avatar (u8vector->pixmap (cadr (last property))))]]
|
[new-pixmap (if avatar (u8vector->pixmap (cadr (last property))))]]
|
||||||
(when avatar
|
(when avatar
|
||||||
(set! (qt:property avatar "pixmap") new-pixmap)))])))
|
(set! (qt:property avatar "pixmap") new-pixmap)
|
||||||
|
(qt:delete old-pixmap)))])))
|
||||||
vcard-alist))
|
vcard-alist))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,6 @@
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="avatarLabel">
|
<widget class="QLabel" name="avatarLabel">
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>100</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Profile picture</string>
|
<string>Profile picture</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
Ŝarĝante…
Reference in New Issue