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

Add Calls::Panel and handle incoming calls.

This commit is contained in:
John Preston
2017-04-19 23:25:48 +03:00
parent 0a716036c2
commit 4925af69e2
31 changed files with 1101 additions and 156 deletions

View File

@@ -777,3 +777,12 @@ Messenger::~Messenger() {
MainWindow *Messenger::mainWindow() {
return _window.get();
}
QPoint Messenger::getPointForCallPanelCenter() const {
Expects(_window != nullptr);
Expects(_window->windowHandle() != nullptr);
if (_window->isActive()) {
return _window->geometry().center();
}
return _window->windowHandle()->screen()->geometry().center();
}