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:
@@ -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
|
||||
|
Reference in New Issue
Block a user