mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(ui): avatar highlight on hover in profile
This commit is contained in:
parent
cc6df2c294
commit
064dccf8b4
|
@ -140,9 +140,11 @@ ProfileForm::ProfileForm(IProfileInfo* profileInfo, QWidget* parent)
|
|||
profilePicture->setPixmap(QPixmap(":/img/contact_dark.svg"));
|
||||
profilePicture->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
profilePicture->setClickable(true);
|
||||
profilePicture->setObjectName("selfAvatar");
|
||||
profilePicture->installEventFilter(this);
|
||||
profilePicture->setAccessibleName("Profile avatar");
|
||||
profilePicture->setAccessibleDescription("Set a profile avatar shown to all contacts");
|
||||
profilePicture->setStyleSheet(Style::getStylesheet(":ui/window/profile.css"));
|
||||
connect(profilePicture, &MaskablePixmapWidget::clicked, this, &ProfileForm::onAvatarClicked);
|
||||
connect(profilePicture, &MaskablePixmapWidget::customContextMenuRequested,
|
||||
this, &ProfileForm::showProfilePictureContextMenu);
|
||||
|
|
Loading…
Reference in New Issue
Block a user