2
0
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:
John Preston
2015-10-01 17:05:05 +03:00
parent 01374e6dc5
commit fe8567e909
32 changed files with 851 additions and 440 deletions

View File

@@ -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: