mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 09:54:54 -05:00
23 lines
460 B
C++
23 lines
460 B
C++
#include "variable-text-edit.hpp"
|
|
#include "switcher-data-structs.hpp"
|
|
|
|
namespace advss {
|
|
|
|
VariableTextEdit::VariableTextEdit(QWidget *parent)
|
|
: ResizingPlainTextEdit(parent)
|
|
{
|
|
}
|
|
|
|
void VariableTextEdit::setPlainText(const QString &string)
|
|
{
|
|
QPlainTextEdit::setPlainText(string);
|
|
}
|
|
|
|
void VariableTextEdit::setPlainText(const StringVariable &string)
|
|
{
|
|
QPlainTextEdit::setPlainText(
|
|
QString::fromStdString(string.UnresolvedValue()));
|
|
}
|
|
|
|
} // namespace advss
|