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

Use setFixedSize instead of set{Minimum,Maximum}Size combo

This commit is contained in:
Ilya Fedin
2023-11-19 01:30:44 +04:00
committed by John Preston
parent cfc254bd90
commit 0f9d83f34b
2 changed files with 3 additions and 8 deletions

View File

@@ -610,14 +610,10 @@ NotificationsCount::SampleWidget::SampleWidget(
const QPixmap &cache)
: _owner(owner)
, _cache(cache) {
const QSize size(
setFixedSize(
cache.width() / cache.devicePixelRatio(),
cache.height() / cache.devicePixelRatio());
resize(size);
setMinimumSize(size);
setMaximumSize(size);
setWindowFlags(Qt::WindowFlags(Qt::FramelessWindowHint)
| Qt::WindowStaysOnTopHint
| Qt::BypassWindowManagerHint