2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

new (fast) PopupMenu started

This commit is contained in:
John Preston
2015-10-23 18:15:24 +02:00
parent 8dd57e2845
commit aeafcacb0c
15 changed files with 438 additions and 25 deletions

View File

@@ -1218,7 +1218,7 @@ void ProfileInner::contextMenuEvent(QContextMenuEvent *e) {
if (!_phoneText.isEmpty() || (_peerUser && !_peerUser->username.isEmpty())) {
QRect info(_left + st::profilePhotoSize + st::profilePhoneLeft, st::profilePadding.top(), _width - st::profilePhotoSize - st::profilePhoneLeft, st::profilePhotoSize);
if (info.contains(mapFromGlobal(e->globalPos()))) {
_menu = new ContextMenu(this);
_menu = new PopupMenu();
if (!_phoneText.isEmpty()) {
_menu->addAction(lang(lng_profile_copy_phone), this, SLOT(onCopyPhone()))->setEnabled(true);
}