New upstream version 25.0.3+dfsg1
This commit is contained in:
parent
04fe0efc67
commit
8b2e5f2130
569 changed files with 62491 additions and 5875 deletions
|
|
@ -18,18 +18,6 @@
|
|||
#define TIMER_INTERVAL 2000
|
||||
#define REC_TIME_LEFT_INTERVAL 30000
|
||||
|
||||
static void setThemeID(QWidget *widget, const QString &themeID)
|
||||
{
|
||||
if (widget->property("themeID").toString() != themeID) {
|
||||
widget->setProperty("themeID", themeID);
|
||||
|
||||
/* force style sheet recalculation */
|
||||
QString qss = widget->styleSheet();
|
||||
widget->setStyleSheet("/* */");
|
||||
widget->setStyleSheet(qss);
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasicStats::OBSFrontendEvent(enum obs_frontend_event event, void *ptr)
|
||||
{
|
||||
OBSBasicStats *stats = reinterpret_cast<OBSBasicStats *>(ptr);
|
||||
|
|
@ -449,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