Remove unnecessary Scene::addRepaint(QRect)
We can implicitly convert QRect into QRegion.
This commit is contained in:
parent
fd1dd4f915
commit
4009345e10
2 changed files with 0 additions and 6 deletions
|
@ -165,11 +165,6 @@ void Scene::addRepaint(int x, int y, int width, int height)
|
|||
addRepaint(QRegion(x, y, width, height));
|
||||
}
|
||||
|
||||
void Scene::addRepaint(const QRect &rect)
|
||||
{
|
||||
addRepaint(QRegion(rect));
|
||||
}
|
||||
|
||||
void Scene::addRepaint(const QRegion ®ion)
|
||||
{
|
||||
for (const auto &delegate : std::as_const(m_delegates)) {
|
||||
|
|
|
@ -80,7 +80,6 @@ public:
|
|||
* Schedules a repaint for the specified @a region.
|
||||
*/
|
||||
void addRepaint(const QRegion ®ion);
|
||||
void addRepaint(const QRect &rect);
|
||||
void addRepaint(int x, int y, int width, int height);
|
||||
void addRepaintFull();
|
||||
QRegion damage() const;
|
||||
|
|
Loading…
Reference in a new issue