mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Formatting changes
This commit is contained in:
parent
82d1aed472
commit
b17a6cc109
|
|
@ -132,6 +132,6 @@ public:
|
|||
};
|
||||
|
||||
QRunnable *CreateFunctionRunnable(std::function<void()> func);
|
||||
}
|
||||
} // namespace Compatability
|
||||
|
||||
} // namespace advss
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
namespace advss {
|
||||
|
||||
MacroExportImportDialog::MacroExportImportDialog(Type type)
|
||||
: QDialog(nullptr), _importExportString(new QPlainTextEdit(this))
|
||||
: QDialog(nullptr),
|
||||
_importExportString(new QPlainTextEdit(this))
|
||||
{
|
||||
_importExportString->setReadOnly(type == Type::EXPORT_MACRO);
|
||||
auto label = new QLabel(obs_module_text(
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@
|
|||
namespace advss {
|
||||
|
||||
MacroSegment::MacroSegment(Macro *m, bool supportsVariableValue)
|
||||
: _macro(m), _supportsVariableValue(supportsVariableValue)
|
||||
: _macro(m),
|
||||
_supportsVariableValue(supportsVariableValue)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
namespace advss {
|
||||
|
||||
Section::Section(const int animationDuration, QWidget *parent)
|
||||
: QWidget(parent), _animationDuration(animationDuration)
|
||||
: QWidget(parent),
|
||||
_animationDuration(animationDuration)
|
||||
{
|
||||
_toggleButton = new QToolButton(this);
|
||||
_headerLine = new QFrame(this);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@ namespace advss {
|
|||
TempVariable::TempVariable(const std::string &id, const std::string &name,
|
||||
const std::string &description,
|
||||
const std::shared_ptr<MacroSegment> &segment)
|
||||
: _id(id), _name(name), _description(description), _segment(segment)
|
||||
: _id(id),
|
||||
_name(name),
|
||||
_description(description),
|
||||
_segment(segment)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -439,7 +442,9 @@ void NotifyUIAboutTempVarChange()
|
|||
|
||||
AutoUpdateTooltipLabel::AutoUpdateTooltipLabel(
|
||||
QWidget *parent, std::function<QString()> updateFunc)
|
||||
: QLabel(parent), _updateFunc(updateFunc), _timer(new QTimer(this))
|
||||
: QLabel(parent),
|
||||
_updateFunc(updateFunc),
|
||||
_timer(new QTimer(this))
|
||||
{
|
||||
connect(_timer, &QTimer::timeout, this,
|
||||
&AutoUpdateTooltipLabel::UpdateTooltip);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ static QString formatLastUsedText(Variable *variable)
|
|||
"AdvSceneSwitcher.variableTab.lastUsed.text.never");
|
||||
}
|
||||
|
||||
QString text = obs_module_text("AdvSceneSwitcher.variableTab.lastUsed.text");
|
||||
QString text =
|
||||
obs_module_text("AdvSceneSwitcher.variableTab.lastUsed.text");
|
||||
return text.arg(QString::number(*lastUsed));
|
||||
}
|
||||
|
||||
|
|
@ -72,8 +73,8 @@ static QString formatLastChangedText(Variable *variable)
|
|||
"AdvSceneSwitcher.variableTab.lastChanged.text.none");
|
||||
}
|
||||
|
||||
QString text =
|
||||
obs_module_text("AdvSceneSwitcher.variableTab.lastChanged.text");
|
||||
QString text = obs_module_text(
|
||||
"AdvSceneSwitcher.variableTab.lastChanged.text");
|
||||
return text.arg(QString::number(*lastChanged));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ std::string MacroConditionProfile::GetShortDesc() const
|
|||
|
||||
MacroConditionProfileEdit::MacroConditionProfileEdit(
|
||||
QWidget *parent, std::shared_ptr<MacroConditionProfile> entryData)
|
||||
: QWidget(parent), _profiles(new QComboBox())
|
||||
: QWidget(parent),
|
||||
_profiles(new QComboBox())
|
||||
{
|
||||
PopulateProfileSelection(_profiles);
|
||||
QWidget::connect(_profiles, SIGNAL(currentTextChanged(const QString &)),
|
||||
|
|
|
|||
|
|
@ -64,7 +64,9 @@ void Area::Load(obs_data_t *obj, const char *name)
|
|||
}
|
||||
|
||||
SizeSelection::SizeSelection(int min, int max, QWidget *parent)
|
||||
: QWidget(parent), _x(new VariableSpinBox()), _y(new VariableSpinBox())
|
||||
: QWidget(parent),
|
||||
_x(new VariableSpinBox()),
|
||||
_y(new VariableSpinBox())
|
||||
{
|
||||
_x->setMinimum(min);
|
||||
_y->setMinimum(min);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public:
|
|||
int Init(const char *, const char *) { return 0; }
|
||||
void End() {}
|
||||
};
|
||||
}
|
||||
} // namespace tesseract
|
||||
#endif
|
||||
|
||||
namespace advss {
|
||||
|
|
|
|||
|
|
@ -1,16 +1,12 @@
|
|||
#include "obs-data.h"
|
||||
|
||||
struct obs_data_item {
|
||||
};
|
||||
struct obs_data_item {};
|
||||
|
||||
struct obs_data {
|
||||
};
|
||||
struct obs_data {};
|
||||
|
||||
struct obs_data_array {
|
||||
};
|
||||
struct obs_data_array {};
|
||||
|
||||
struct obs_data_number {
|
||||
};
|
||||
struct obs_data_number {};
|
||||
|
||||
obs_data_t *obs_data_create()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user