2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

some namespaces reorganized, author photo display added to wide mode (where messages are centered), version 0.9.20.dev

This commit is contained in:
John Preston
2016-02-08 17:54:55 +03:00
parent 5320285943
commit 80ba0259dd
46 changed files with 400 additions and 381 deletions

View File

@@ -179,7 +179,7 @@ void MediaView::moveToScreen() {
}
QPoint wndCenter(App::wnd()->x() + App::wnd()->width() / 2, App::wnd()->y() + App::wnd()->height() / 2);
QRect avail = Sandboxer::screenGeometry(wndCenter);
QRect avail = Sandbox::screenGeometry(wndCenter);
if (avail != geometry()) {
setGeometry(avail);
}
@@ -586,7 +586,7 @@ void MediaView::onSaveAs() {
}
}
activateWindow();
Sandboxer::setActiveWindow(this);
Sandbox::setActiveWindow(this);
setFocus();
}
@@ -1074,7 +1074,7 @@ void MediaView::displayDocument(DocumentData *doc, HistoryItem *item) { // empty
show();
psShowOverAll(this);
activateWindow();
Sandboxer::setActiveWindow(this);
Sandbox::setActiveWindow(this);
setFocus();
}
}
@@ -1990,7 +1990,7 @@ void MediaView::onCheckActive() {
if (App::wnd() && isVisible()) {
if (App::wnd()->isActiveWindow() && App::wnd()->hasFocus()) {
activateWindow();
Sandboxer::setActiveWindow(this);
Sandbox::setActiveWindow(this);
setFocus();
}
}