D12252: Enlarge default window size. Use (adjusted) calculation in `SizeHint` to determine minimum window width.

Vlad Zagorodniy noreply at phabricator.kde.org
Mon Apr 16 23:31:06 UTC 2018


zzag added inline comments.

INLINE COMMENTS

> SettingsBase.cpp:82
> +    // calculate base window size to an appropriate size
> +    qreal factor = QGuiApplication::primaryScreen()->devicePixelRatio();
> +    return QSize(1024*factor, 768*factor);

You forgot `const`.

Also, you could multiply whole QSize by `factor` so Qt will round width and height. ;-)

REPOSITORY
  R124 System Settings

BRANCH
  enlarge-default-size (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D12252

To: sharvey, ngraham, mart
Cc: zzag, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180416/c41cd1e6/attachment.html>


More information about the Plasma-devel mailing list