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

Rename some Ui methods.

myEnsureResized -> Ui::SendPendingMoveResizeEvents.
myGrab -> Ui::GrabWidget.
myGrabImage -> Ui::GrabWidgetToImage.
This commit is contained in:
John Preston
2017-12-26 15:41:48 +03:00
parent 5f8143e6a4
commit 2569df9e5a
44 changed files with 197 additions and 111 deletions

View File

@@ -405,7 +405,7 @@ void LayerStackWidget::setCacheImages() {
auto bodyCache = QPixmap(), mainMenuCache = QPixmap();
auto specialLayerCache = QPixmap();
if (_specialLayer) {
myEnsureResized(_specialLayer);
Ui::SendPendingMoveResizeEvents(_specialLayer);
auto sides = RectPart::Left | RectPart::Right;
if (_specialLayer->y() > 0) {
sides |= RectPart::Top;
@@ -425,7 +425,7 @@ void LayerStackWidget::setCacheImages() {
if (_mainMenu) {
setAttribute(Qt::WA_OpaquePaintEvent, false);
hideChildren();
bodyCache = myGrab(App::wnd()->bodyWidget());
bodyCache = Ui::GrabWidget(App::wnd()->bodyWidget());
showChildren();
mainMenuCache = Ui::Shadow::grab(_mainMenu, st::boxRoundShadow, RectPart::Right);
}
@@ -733,7 +733,7 @@ void LayerStackWidget::initChildLayer(LayerWidget *layer) {
layer->setClosedCallback([this, layer] { onLayerClosed(layer); });
layer->setResizedCallback([this] { onLayerResized(); });
connect(layer, SIGNAL(destroyed(QObject*)), this, SLOT(onLayerDestroyed(QObject*)));
myEnsureResized(layer);
Ui::SendPendingMoveResizeEvents(layer);
layer->parentResized();
}