UI: Fix Qt 5.14 deprecation warnings
These functions should be available on current Qt.
This commit is contained in:
parent
500111e230
commit
263bf48baa
4 changed files with 15 additions and 14 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue