mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-06 23:05:29 -04:00
UI: Fix Qt 5.14 deprecation warnings
These functions should be available on current Qt.
This commit is contained in:
@@ -437,9 +437,9 @@ void OBSBasicStats::RecordingTimeLeft()
|
||||
int minutes = totalMinutes % 60;
|
||||
int hours = totalMinutes / 60;
|
||||
|
||||
QString text;
|
||||
text.sprintf("%d %s, %d %s", hours, QT_TO_UTF8(QTStr("Hours")), minutes,
|
||||
QT_TO_UTF8(QTStr("Minutes")));
|
||||
QString text = QString::asprintf("%d %s, %d %s", hours,
|
||||
QT_TO_UTF8(QTStr("Hours")), minutes,
|
||||
QT_TO_UTF8(QTStr("Minutes")));
|
||||
recordTimeLeft->setText(text);
|
||||
recordTimeLeft->setMinimumWidth(recordTimeLeft->width());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user