mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
optimize QWidgetPrivate::mapToWS() and QWidgetPrivate::mapFromWS()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d484a59e39
commit
40b140a2dc
1 changed files with 2 additions and 2 deletions
|
@ -516,10 +516,10 @@ public:
|
|||
{ return p + data.wrect.topLeft(); }
|
||||
|
||||
inline QRect mapToWS(const QRect &r) const
|
||||
{ QRect rr(r); rr.translate(-data.wrect.topLeft()); return rr; }
|
||||
{ return r.translated(-data.wrect.topLeft()); }
|
||||
|
||||
inline QRect mapFromWS(const QRect &r) const
|
||||
{ QRect rr(r); rr.translate(data.wrect.topLeft()); return rr; }
|
||||
{ return r.translated(data.wrect.topLeft()); }
|
||||
|
||||
// Variables.
|
||||
// Regular pointers (keep them together to avoid gaps on 64 bit architectures).
|
||||
|
|
Loading…
Add table
Reference in a new issue