Remove unnecessary Scene::addRepaint(QRect)

We can implicitly convert QRect into QRegion.
This commit is contained in:
Aleix Pol 2022-03-28 03:42:59 +02:00 committed by Vlad Zahorodnii
parent fd1dd4f915
commit 4009345e10
2 changed files with 0 additions and 6 deletions

View file

@ -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 &region)
{
for (const auto &delegate : std::as_const(m_delegates)) {

View file

@ -80,7 +80,6 @@ public:
* Schedules a repaint for the specified @a region.
*/
void addRepaint(const QRegion &region);
void addRepaint(const QRect &rect);
void addRepaint(int x, int y, int width, int height);
void addRepaintFull();
QRegion damage() const;