mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
fast dialogs, emoji pan etc done
This commit is contained in:
@@ -54,7 +54,7 @@ void BackgroundWidget::paintEvent(QPaintEvent *e) {
|
||||
p.fillRect(rect(), st::layerBG->b);
|
||||
|
||||
p.setOpacity(aBackground.current());
|
||||
shadow.paint(p, w->boxRect(), st::boxShadowShift);
|
||||
shadow.paint(p, w->geometry(), st::boxShadowShift);
|
||||
}
|
||||
|
||||
void BackgroundWidget::keyPressEvent(QKeyEvent *e) {
|
||||
@@ -105,6 +105,11 @@ void BackgroundWidget::setInnerFocus() {
|
||||
}
|
||||
}
|
||||
|
||||
bool BackgroundWidget::contentOverlapped(const QRect &globalRect) {
|
||||
if (isHidden()) return false;
|
||||
return w && w->overlaps(globalRect);
|
||||
}
|
||||
|
||||
void BackgroundWidget::resizeEvent(QResizeEvent *e) {
|
||||
w->parentResized();
|
||||
}
|
||||
|
Reference in New Issue
Block a user