Paints the enlarged banner card art + circular avatar section at the top of the UserInfoPopup.
More...
#include <user_info_popup.h>
Paints the enlarged banner card art + circular avatar section at the top of the UserInfoPopup.
Layout mirrors UserListPainter but at a larger scale: the card art fills the full width as a semi-transparent background, a bottom gradient ensures the avatar and username text remain legible, and the status ring colour matches the UserListPainter convention.
◆ UserInfoHeaderWidget()
| UserInfoHeaderWidget::UserInfoHeaderWidget |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ paintEvent()
| void UserInfoHeaderWidget::paintEvent |
( |
QPaintEvent * | e | ) |
|
|
overrideprotected |
◆ setUserData()
| void UserInfoHeaderWidget::setUserData |
( |
const ServerInfo_User & | user, |
|
|
bool | online, |
|
|
const QPixmap & | avatar, |
|
|
const QPixmap & | cardArt, |
|
|
const CardArtParams & | params ) |
◆ AvatarPawnSize
| int UserInfoHeaderWidget::AvatarPawnSize = 46 |
|
staticconstexprprivate |
◆ AvatarSize
| int UserInfoHeaderWidget::AvatarSize = 68 |
|
staticconstexprprivate |
◆ AvatarToTextGap
| int UserInfoHeaderWidget::AvatarToTextGap = 10 |
|
staticconstexprprivate |
◆ HeaderHeight
| int UserInfoHeaderWidget::HeaderHeight = 130 |
|
staticconstexprprivate |
◆ LeftPad
| int UserInfoHeaderWidget::LeftPad = 14 |
|
staticconstexprprivate |
◆ m_avatar
| QPixmap UserInfoHeaderWidget::m_avatar |
|
private |
◆ m_cardArt
| QPixmap UserInfoHeaderWidget::m_cardArt |
|
private |
◆ m_online
| bool UserInfoHeaderWidget::m_online = false |
|
private |
◆ m_params
◆ m_user
| ServerInfo_User UserInfoHeaderWidget::m_user |
|
private |
The documentation for this class was generated from the following files: