FriendListItem Class Reference
FriendListItem shows friend data in expandable item.
More...
#include "ui/friendlistitem.h"
List of all members.
Detailed Description
FriendListItem shows friend data in expandable item.
Constructor & Destructor Documentation
FriendListItem::FriendListItem |
( |
QWidget * |
parent = 0 |
) |
|
Construct FriendListItem.
Initializes layouts and member variables. Sets stylesheet for this class.
- Parameters:
-
Member Function Documentation
void FriendListItem::findFriend |
( |
const QPointF & |
coordinates |
) |
[signal] |
Signal for finding friend.
- Parameters:
-
| coordinates | friend's geo coordinates |
void FriendListItem::mousePressEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Set current mouse position to mouse event position.
- Parameters:
-
| event | QMouseEvent mouse press event |
void FriendListItem::mouseReleaseEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Call toggleHeight if mouse position is unchanged.
Check if current mouse position is same as mouse release position.
- Parameters:
-
| event | QMouseEvent mouse release event |
void FriendListItem::paintEvent |
( |
QPaintEvent * |
event |
) |
[protected] |
Draws stylesheet used in this class.
- Parameters:
-
void FriendListItem::setData |
( |
User * |
user |
) |
|
Set data for this item.
- Parameters:
-
void FriendListItem::setDistanceIcon |
( |
double |
value, |
|
|
const QString & |
unit | |
|
) |
| | [private] |
Set distance icon.
Icon is selected by distance.
- Parameters:
-
| value | distance value |
| unit | distance unit |
void FriendListItem::setText |
( |
bool |
expanded |
) |
[private] |
Set shortened or full-length text to labels.
- Parameters:
-
| expanded | true if full-length text is set, false otherwise |
void FriendListItem::shortenTexts |
( |
|
) |
[private] |
Set shortened texts from User data.
Text length is defined by MAXIMUM_CHARS.
The documentation for this class was generated from the following files: