2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

langs updated, right click in profile fixed

This commit is contained in:
John Preston
2015-03-26 12:32:57 +03:00
parent 8c7a35c973
commit 75bfc6b893
10 changed files with 48 additions and 29 deletions

View File

@@ -600,16 +600,18 @@ void ProfileInner::updateSelected() {
void ProfileInner::mousePressEvent(QMouseEvent *e) {
_lastPos = e->globalPos();
updateSelected();
if (_kickOver) {
_kickDown = _kickOver;
update();
} else if (_selectedRow >= 0 && _selectedRow < _participants.size()) {
App::main()->showPeerProfile(_participants[_selectedRow]);
} else if (QRect(_left, st::profilePadding.top(), st::setPhotoSize, st::setPhotoSize).contains(e->pos())) {
if (_photoLink) {
_photoLink->onClick(e->button());
} else if (_peerChat && !_peerChat->forbidden) {
onUpdatePhoto();
if (e->button() == Qt::LeftButton) {
if (_kickOver) {
_kickDown = _kickOver;
update();
} else if (_selectedRow >= 0 && _selectedRow < _participants.size()) {
App::main()->showPeerProfile(_participants[_selectedRow]);
} else if (QRect(_left, st::profilePadding.top(), st::setPhotoSize, st::setPhotoSize).contains(e->pos())) {
if (_photoLink) {
_photoLink->onClick(e->button());
} else if (_peerChat && !_peerChat->forbidden) {
onUpdatePhoto();
}
}
}
}