qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <friendwidget.h>
Public Slots | |
void | onAvatarSet (const ToxPk &friendPk, const QPixmap &pic) |
void | onAvatarRemoved (const ToxPk &friendPk) |
void | onContextMenuCalled (QContextMenuEvent *event) |
FriendWidget::onContextMenuCalled. More... | |
void | setActive (bool active) |
![]() | |
virtual Group * | getGroup () const |
bool | eventFilter (QObject *, QEvent *) final |
bool | isActive () |
void | setName (const QString &name) |
void | setStatusMsg (const QString &status) |
QString | getStatusMsg () const |
QString | getTitle () const |
void | activate () |
void | compactChange (bool compact) |
void | reloadTheme () override |
![]() | |
virtual void | reloadTheme () |
Signals | |
void | friendWidgetClicked (FriendWidget *widget) |
void | removeFriend (const ToxPk &friendPk) |
void | copyFriendIdToClipboard (const ToxPk &friendPk) |
void | contextMenuCalled (QContextMenuEvent *event) |
void | friendHistoryRemoved () |
void | updateFriendActivity (Friend &frnd) |
![]() | |
void | chatroomWidgetClicked (GenericChatroomWidget *widget) |
void | newWindowOpened (GenericChatroomWidget *widget) |
void | middleMouseClicked () |
Public Member Functions | |
FriendWidget (std::shared_ptr< FriendChatroom > chatform, bool compact) | |
void | contextMenuEvent (QContextMenuEvent *event) final |
FriendWidget::contextMenuEvent. More... | |
void | setAsActiveChatroom () final |
void | setAsInactiveChatroom () final |
void | updateStatusLight () final |
void | resetEventFlags () final |
QString | getStatusString () const final |
const Friend * | getFriend () const final |
const Contact * | getContact () const final |
bool | isFriend () const final |
bool | isGroup () const final |
bool | isOnline () const final |
bool | widgetIsVisible () const final |
QString | getNameItem () const final |
QDateTime | getLastActivity () const final |
int | getCircleId () const final |
QWidget * | getWidget () final |
void | setWidgetVisible (bool visible) final |
![]() | |
GenericChatroomWidget (bool compact, QWidget *parent=nullptr) | |
![]() | |
GenericChatItemWidget (bool compact, QWidget *parent=nullptr) | |
bool | isCompact () const |
void | setCompact (bool compact) |
QString | getName () const |
void | searchName (const QString &searchString, bool hideAll) |
![]() | |
IFriendListItem ()=default | |
virtual | ~IFriendListItem () |
IFriendListItem (const IFriendListItem &)=default | |
IFriendListItem & | operator= (const IFriendListItem &)=default |
IFriendListItem (IFriendListItem &&)=default | |
IFriendListItem & | operator= (IFriendListItem &&)=default |
int | getNameSortedPos () const |
void | setNameSortedPos (int pos) |
Public Attributes | |
std::shared_ptr< FriendChatroom > | chatroom |
bool | isDefaultAvatar |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *ev) override |
void | mouseMoveEvent (QMouseEvent *ev) override |
void | setFriendAlias () |
![]() | |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | enterEvent (QEvent *e) override |
void | leaveEvent (QEvent *e) override |
void | setActive (bool active) |
Private Slots | |
void | removeChatWindow () |
void | moveToNewCircle () |
void | removeFromCircle () |
void | moveToCircle (int circleId) |
void | changeAutoAccept (bool enable) |
void | showDetails () |
Additional Inherited Members | |
![]() | |
enum | ItemType { GroupItem, FriendOfflineItem, FriendOnlineItem } |
![]() | |
QPoint | dragStartPos |
QColor | lastColor |
QHBoxLayout * | mainLayout = nullptr |
QVBoxLayout * | textLayout = nullptr |
MaskablePixmapWidget * | avatar |
CroppingLabel * | statusMessageLabel |
bool | active |
![]() | |
CroppingLabel * | nameLabel |
QLabel | statusPic |
![]() | |
bool | compact |
Widget, which displays brief information about friend. For example, used on friend list. When you click should open the chat with friend. Widget has a context menu.
Definition at line 33 of file friendwidget.h.
FriendWidget::FriendWidget | ( | std::shared_ptr< FriendChatroom > | chatform, |
bool | compact | ||
) |
Definition at line 59 of file friendwidget.cpp.
|
privateslot |
|
signal |
|
final |
FriendWidget::contextMenuEvent.
event | Describe a context menu event |
Default context menu event handler. Redirect all event information to the signal.
Definition at line 85 of file friendwidget.cpp.
|
signal |
|
signal |
|
signal |
|
finalvirtual |
Reimplemented from IFriendListItem.
Definition at line 399 of file friendwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 352 of file friendwidget.cpp.
|
finalvirtual |
Reimplemented from GenericChatroomWidget.
Definition at line 347 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 383 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 378 of file friendwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 329 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 389 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 357 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 362 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 367 of file friendwidget.cpp.
|
overrideprotected |
|
overrideprotected |
Definition at line 433 of file friendwidget.cpp.
|
privateslot |
Definition at line 244 of file friendwidget.cpp.
|
privateslot |
Definition at line 203 of file friendwidget.cpp.
|
slot |
Definition at line 420 of file friendwidget.cpp.
|
slot |
Definition at line 409 of file friendwidget.cpp.
|
slot |
FriendWidget::onContextMenuCalled.
event | Redirected from native contextMenuEvent |
Context menu handler. Always should be called to FriendWidget from FriendList
Definition at line 96 of file friendwidget.cpp.
|
privateslot |
|
signal |
|
privateslot |
Definition at line 224 of file friendwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 404 of file friendwidget.cpp.
|
slot |
Definition at line 299 of file friendwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 289 of file friendwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 294 of file friendwidget.cpp.
|
protected |
|
finalvirtual |
Implements IFriendListItem.
Definition at line 394 of file friendwidget.cpp.
|
privateslot |
Definition at line 279 of file friendwidget.cpp.
|
signal |
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 309 of file friendwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 373 of file friendwidget.cpp.
std::shared_ptr<FriendChatroom> FriendWidget::chatroom |
Definition at line 86 of file friendwidget.h.
bool FriendWidget::isDefaultAvatar |
Definition at line 87 of file friendwidget.h.