mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-25 03:33:28 +01:00
clang format
This commit is contained in:
parent
71b0e6e123
commit
4328ce7d91
@ -15,9 +15,9 @@
|
||||
#include "obs-frontend-api.h"
|
||||
#include <util/dstr.h>
|
||||
|
||||
|
||||
// Generate buttons for default/custom stuff
|
||||
QPushButton *ConfigUtils::generateButton(QString buttonText) {
|
||||
QPushButton *ConfigUtils::generateButton(QString buttonText)
|
||||
{
|
||||
auto styles = QString::fromUtf8("QPushButton[unselected=\"true\"] { background: pink; }");
|
||||
|
||||
auto button = new QPushButton(buttonText);
|
||||
@ -27,7 +27,8 @@ QPushButton *ConfigUtils::generateButton(QString buttonText) {
|
||||
}
|
||||
|
||||
// Generate settings groupbox
|
||||
QGroupBox *ConfigUtils::generateSettingsGroupBox(QString headingText) {
|
||||
QGroupBox *ConfigUtils::generateSettingsGroupBox(QString headingText)
|
||||
{
|
||||
auto group = headingText == nullptr ? new QGroupBox : new QGroupBox(headingText);
|
||||
// group->setProperty("altColor", QVariant(true));
|
||||
|
||||
@ -35,7 +36,8 @@ QGroupBox *ConfigUtils::generateSettingsGroupBox(QString headingText) {
|
||||
}
|
||||
|
||||
// Generate menu button
|
||||
QToolButton *ConfigUtils::generateMenuButton(QString title, QIcon icon) {
|
||||
QToolButton *ConfigUtils::generateMenuButton(QString title, QIcon icon)
|
||||
{
|
||||
auto button = new QToolButton;
|
||||
|
||||
button->setText(title);
|
||||
@ -48,15 +50,13 @@ QToolButton *ConfigUtils::generateMenuButton(QString title, QIcon icon) {
|
||||
return button;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// For setting the active property stuff on buttons
|
||||
void ConfigUtils::updateButtonStyles(QPushButton *defaultButton, QPushButton *customButton, int activeIndex) {
|
||||
void ConfigUtils::updateButtonStyles(QPushButton *defaultButton, QPushButton *customButton, int activeIndex)
|
||||
{
|
||||
defaultButton->setProperty("unselected", activeIndex != 0 ? true : false);
|
||||
customButton->setProperty("unselected", activeIndex != 1 ? true : false);
|
||||
}
|
||||
|
||||
|
||||
// Platform icons deciphered from endpoints
|
||||
QIcon ConfigUtils::getPlatformIconFromEndpoint(QString endpoint)
|
||||
{
|
||||
|
@ -18,11 +18,7 @@ public:
|
||||
static QGroupBox *generateSettingsGroupBox(QString headingText);
|
||||
static QToolButton *generateMenuButton(QString title, QIcon icon);
|
||||
|
||||
|
||||
|
||||
|
||||
static void updateButtonStyles(QPushButton *defaultButton, QPushButton *customButton, int activeIndex);
|
||||
|
||||
|
||||
static QIcon getPlatformIconFromEndpoint(QString endpoint);
|
||||
};
|
||||
|
@ -50,7 +50,6 @@ private:
|
||||
QIcon streamActiveIcon = QIcon(":/aitum/media/streaming.svg");
|
||||
QIcon streamInactiveIcon = QIcon(":/aitum/media/stream.svg");
|
||||
|
||||
|
||||
static void frontend_event(enum obs_frontend_event event, void *private_data);
|
||||
|
||||
static void stream_output_stop(void *data, calldata_t *calldata);
|
||||
|
Loading…
Reference in New Issue
Block a user