Reduce text edit areas size of file, filter, source, transform segments

This commit is contained in:
WarmUpTill
2022-02-26 15:48:18 +01:00
committed by WarmUpTill
parent 6fb8297275
commit 1cfd981245
19 changed files with 102 additions and 26 deletions

View File

@@ -87,7 +87,7 @@ MacroActionFileEdit::MacroActionFileEdit(
: QWidget(parent)
{
_filePath = new FileSelection(FileSelection::Type::WRITE);
_text = new QPlainTextEdit();
_text = new ResizingPlainTextEdit(this);
_actions = new QComboBox();
populateActionSelection(_actions);
@@ -150,6 +150,9 @@ void MacroActionFileEdit::TextChanged()
std::lock_guard<std::mutex> lock(switcher->m);
_entryData->_text = _text->toPlainText().toStdString();
adjustSize();
updateGeometry();
}
void MacroActionFileEdit::ActionChanged(int value)