D11740: ktooltipwidget: Subtract margins from available size
Michael Heidelbach
noreply at phabricator.kde.org
Tue Mar 27 08:30:01 UTC 2018
michaelh added inline comments.
INLINE COMMENTS
> ktooltipwidget.cpp:186
> + 2 * content->style()->pixelMetric(QStyle::PM_DefaultTopLevelMargin)};
> + content->setMaximumSize(transientParent->screen()->geometry().size() - marginSize);
> d->show(d->centerBelow(rect, transientParent->screen()), transientParent);
This is the result of a lot of trials and errors. I'm not ssure if this is the right thing to do.
REPOSITORY
R236 KWidgetsAddons
REVISION DETAIL
https://phabricator.kde.org/D11740
To: michaelh, #frameworks
Cc: elvisangelaccio, cfeck, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180327/7c81d369/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list