mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix compilation with older Qt versions
This commit is contained in:
@@ -490,7 +490,7 @@ void RDTweakedNativeStyle::drawControl(ControlElement control, const QStyleOptio
|
||||
// elide text from the right if there's not enough space
|
||||
QFontMetrics metrics(toolopt->font);
|
||||
|
||||
int space = metrics.horizontalAdvance(QLatin1Char(' '));
|
||||
int space = metrics.width(QLatin1Char(' '));
|
||||
textRect = QStyle::visualRect(opt->direction, rect, textRect);
|
||||
|
||||
if(toolopt->toolButtonStyle == Qt::ToolButtonTextOnly)
|
||||
|
||||
Reference in New Issue
Block a user