forked from qt-creator/qt-creator
Drop Qt5: Utils: Get rid of QOverload
Change-Id: I864bfb18668fd325badd34003adf494c7924f86b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -94,7 +94,7 @@ static FilePath imageFileNameForIndicatorSize(ProgressIndicatorSize size)
|
||||
ProgressIndicatorPainter::ProgressIndicatorPainter(ProgressIndicatorSize size)
|
||||
{
|
||||
m_timer.setSingleShot(false);
|
||||
QObject::connect(&m_timer, &QTimer::timeout, [this]() {
|
||||
QObject::connect(&m_timer, &QTimer::timeout, [this] {
|
||||
nextAnimationStep();
|
||||
if (m_callback)
|
||||
m_callback();
|
||||
@@ -219,7 +219,7 @@ ProgressIndicator::ProgressIndicator(ProgressIndicatorSize size, QWidget *parent
|
||||
{
|
||||
setPaintFunction(
|
||||
[this](QWidget *w, QPainter &p, QPaintEvent *) { m_paint.paint(p, w->rect()); });
|
||||
m_paint.setUpdateCallback([this]() { update(); });
|
||||
m_paint.setUpdateCallback([this] { update(); });
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user