Fix deprecated API in network/torrent example
Pick-to: 6.1 Change-Id: Ie4493f0d93cdeff281c3826d2ca3beb4e68d7a0f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
7846e2f40d
commit
ab585356bd
|
|
@ -93,7 +93,7 @@ public:
|
|||
progressBarOption.state = QStyle::State_Enabled;
|
||||
progressBarOption.direction = QApplication::layoutDirection();
|
||||
progressBarOption.rect = option.rect;
|
||||
progressBarOption.fontMetrics = QApplication::fontMetrics();
|
||||
progressBarOption.fontMetrics = QFontMetrics(QApplication::font());
|
||||
progressBarOption.minimum = 0;
|
||||
progressBarOption.maximum = 100;
|
||||
progressBarOption.textAlignment = Qt::AlignCenter;
|
||||
|
|
|
|||
Loading…
Reference in New Issue