Replaced depecated QPainter::initFrom by QPainter::begin

This commit is contained in:
thunder2 2025-07-22 23:38:53 +02:00
parent 9ebc4b00ed
commit 21174aa5d7
5 changed files with 6 additions and 6 deletions

View file

@ -268,7 +268,7 @@ void GlobalRouterStatisticsWidget::updateContent()
setFixedHeight(maxHeight);
QPainter painter(&tmppixmap);
painter.initFrom(this);
painter.begin(this);
painter.setPen(QColor::fromRgb(0,0,0)) ;
QFont times_f(font());//"Times") ;