Qt 5.12 deprecation fixes (#1003)
This commit is contained in:
@@ -693,7 +693,7 @@ void QtGraphNode::setStyle(const GraphViewStyle::NodeStyle& style)
|
||||
static_cast<qreal>(style.textOffset.y));
|
||||
|
||||
const float charWidth =
|
||||
QFontMetrics(font).width(QStringLiteral("QtGraphNode::QtGraphNode::QtGraphNode")) / 37.0f;
|
||||
QFontMetrics(font).boundingRect(QStringLiteral("QtGraphNode::QtGraphNode::QtGraphNode")).width() / 37.0f;
|
||||
const float charHeight = static_cast<float>(QFontMetrics(font).height());
|
||||
m_matchRect->setRect(
|
||||
static_cast<qreal>(
|
||||
|
||||
Reference in New Issue
Block a user