mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #22: Fix compilation warnings
This commit is contained in:
@ -138,7 +138,7 @@ QSize PDFEncryptionStrengthHintWidget::getTextSizeHint() const
|
||||
|
||||
for (const auto& levelItem : m_levels)
|
||||
{
|
||||
width = qMax(width, fontMetrics.width(levelItem.text));
|
||||
width = qMax(width, fontMetrics.horizontalAdvance(levelItem.text));
|
||||
}
|
||||
|
||||
return QSize(width, height);
|
||||
|
Reference in New Issue
Block a user