mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
fast dialogs, emoji pan etc done
This commit is contained in:
@@ -38,16 +38,15 @@ public:
|
||||
emit resized();
|
||||
}
|
||||
|
||||
virtual QRect boxRect() const {
|
||||
QRect res(rect());
|
||||
res.moveTopLeft(geometry().topLeft());
|
||||
return res;
|
||||
}
|
||||
|
||||
void mousePressEvent(QMouseEvent *e) {
|
||||
e->accept();
|
||||
}
|
||||
|
||||
bool overlaps(const QRect &globalRect) {
|
||||
if (isHidden() || !testAttribute(Qt::WA_OpaquePaintEvent)) return false;
|
||||
return rect().contains(QRect(mapFromGlobal(globalRect.topLeft()), globalRect.size()));
|
||||
}
|
||||
|
||||
signals:
|
||||
|
||||
void closed();
|
||||
@@ -78,6 +77,8 @@ public:
|
||||
bool canSetFocus() const;
|
||||
void setInnerFocus();
|
||||
|
||||
bool contentOverlapped(const QRect &globalRect);
|
||||
|
||||
~BackgroundWidget();
|
||||
|
||||
public slots:
|
||||
|
Reference in New Issue
Block a user