mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
33 lines
833 B
C++
33 lines
833 B
C++
#include "variable-text-edit.hpp"
|
|
#include "obs-module-helper.hpp"
|
|
|
|
namespace advss {
|
|
|
|
VariableTextEdit::VariableTextEdit(QWidget *parent, const int scrollAt,
|
|
const int minLines, const int paddingLines)
|
|
: ResizingPlainTextEdit(parent, scrollAt, minLines, paddingLines)
|
|
{
|
|
QPlainTextEdit::setToolTip(
|
|
obs_module_text("AdvSceneSwitcher.tooltip.availableVariables"));
|
|
}
|
|
|
|
void VariableTextEdit::setPlainText(const QString &string)
|
|
{
|
|
QPlainTextEdit::setPlainText(string);
|
|
}
|
|
|
|
void VariableTextEdit::setPlainText(const StringVariable &string)
|
|
{
|
|
QPlainTextEdit::setPlainText(
|
|
QString::fromStdString(string.UnresolvedValue()));
|
|
}
|
|
|
|
void VariableTextEdit::setToolTip(const QString &string)
|
|
{
|
|
QPlainTextEdit::setToolTip(
|
|
string + "\n" +
|
|
obs_module_text("AdvSceneSwitcher.tooltip.availableVariables"));
|
|
}
|
|
|
|
} // namespace advss
|