mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Merge remote-tracking branch 'tdesktop/dev' into dev
This commit is contained in:
@@ -431,13 +431,17 @@ NotificationsCount::~NotificationsCount() {
|
||||
NotificationsCount::SampleWidget::SampleWidget(
|
||||
NotificationsCount *owner,
|
||||
const QPixmap &cache)
|
||||
: QWidget(nullptr)
|
||||
: QWidget(App::wnd())
|
||||
, _owner(owner)
|
||||
, _cache(cache) {
|
||||
resize(
|
||||
const QSize size(
|
||||
cache.width() / cache.devicePixelRatio(),
|
||||
cache.height() / cache.devicePixelRatio());
|
||||
|
||||
resize(size);
|
||||
setMinimumSize(size);
|
||||
setMaximumSize(size);
|
||||
|
||||
setWindowFlags(Qt::WindowFlags(Qt::FramelessWindowHint)
|
||||
| Qt::WindowStaysOnTopHint
|
||||
| Qt::BypassWindowManagerHint
|
||||
|
Reference in New Issue
Block a user