1
0
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:
Anthony Bilinski 2018-08-27 02:30:38 -07:00
parent cc6df2c294
commit 064dccf8b4
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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);