2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-09 13:56:19 +00:00

Alpha 0.10.27: appoint admins in your supergroups from context menu.

This commit is contained in:
John Preston
2017-01-11 09:30:51 +04:00
parent c09dab2b3a
commit 30c9bcb985
25 changed files with 233 additions and 48 deletions

View File

@@ -1452,7 +1452,7 @@ void FlatTextarea::dropEvent(QDropEvent *e) {
void FlatTextarea::contextMenuEvent(QContextMenuEvent *e) {
if (auto menu = createStandardContextMenu()) {
(new Ui::PopupMenu(menu))->popup(e->globalPos());
(new Ui::PopupMenu(nullptr, menu))->popup(e->globalPos());
}
}
@@ -1620,7 +1620,7 @@ void FlatInput::updatePlaceholderText() {
void FlatInput::contextMenuEvent(QContextMenuEvent *e) {
if (auto menu = createStandardContextMenu()) {
(new Ui::PopupMenu(menu))->popup(e->globalPos());
(new Ui::PopupMenu(nullptr, menu))->popup(e->globalPos());
}
}
@@ -2409,7 +2409,7 @@ void InputArea::Inner::keyPressEvent(QKeyEvent *e) {
void InputArea::Inner::contextMenuEvent(QContextMenuEvent *e) {
if (auto menu = createStandardContextMenu()) {
(new Ui::PopupMenu(menu))->popup(e->globalPos());
(new Ui::PopupMenu(nullptr, menu))->popup(e->globalPos());
}
}
@@ -3170,7 +3170,7 @@ void InputField::Inner::keyPressEvent(QKeyEvent *e) {
void InputField::Inner::contextMenuEvent(QContextMenuEvent *e) {
if (auto menu = createStandardContextMenu()) {
(new Ui::PopupMenu(menu))->popup(e->globalPos());
(new Ui::PopupMenu(nullptr, menu))->popup(e->globalPos());
}
}
@@ -3482,7 +3482,7 @@ void MaskedInputField::createPlaceholderPath() {
void MaskedInputField::contextMenuEvent(QContextMenuEvent *e) {
if (auto menu = createStandardContextMenu()) {
(new Ui::PopupMenu(menu))->popup(e->globalPos());
(new Ui::PopupMenu(nullptr, menu))->popup(e->globalPos());
}
}