D15907: Compare float values in DecorationButton contains check
Vlad Zagorodniy
noreply at phabricator.kde.org
Tue Feb 19 14:04:39 GMT 2019
zzag added a comment.
Looks good to me.
I think the test is too much complicated. Would it be simpler to have something like
QTest::addColumn<QRectF>("geometry");
QTest::addColumn<QPointF>("pos");
QTest::addColumn<bool>("contains");
?
INLINE COMMENTS
> decorationbutton.cpp:455
> + // additional make sure pos is not on the right or bottom edge
> + const bool verInside = d->geometry.width() < 0 ? pos.x() < d->geometry.x() :
> + pos.x() < d->geometry.right();
No short names.
REPOSITORY
R129 Window Decoration Library
REVISION DETAIL
https://phabricator.kde.org/D15907
To: romangg, #kwin, zzag, davidedmundson
Cc: plasma-devel, jraleigh, GB_2, 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/20190219/64d41faa/attachment.html>
More information about the Plasma-devel
mailing list