UI: Add setThemeID to qt-wrappers
Makes the function usable outside of just window-basic-stats.cpp.
This commit is contained in:
parent
b5da04242c
commit
a6871b2c1d
3 changed files with 14 additions and 12 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue