Fix QtWidget function-unused warnings found by Clang 3.4
qwidgetbackingstore.cpp:72:20: error: unused function 'qRectIntersects' [-Werror,-Wunused-function] Change-Id: Ia3afe8f0547fa86804093281db89efabe68b34a1 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
52441ecd44
commit
47a0d64dcf
@ -66,15 +66,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
extern QRegion qt_dirtyRegion(QWidget *);
|
||||
|
||||
/*
|
||||
A version of QRect::intersects() that does not normalize the rects.
|
||||
*/
|
||||
static inline bool qRectIntersects(const QRect &r1, const QRect &r2)
|
||||
{
|
||||
return (qMax(r1.left(), r2.left()) <= qMin(r1.right(), r2.right())
|
||||
&& qMax(r1.top(), r2.top()) <= qMin(r1.bottom(), r2.bottom()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Flushes the contents of the \a backingStore into the screen area of \a widget.
|
||||
* \a tlwOffset is the position of the top level widget relative to the window surface.
|
||||
|
Loading…
Reference in New Issue
Block a user