Add update values slot for config widget

This commit is contained in:
lupoDharkael
2017-07-31 01:00:14 +02:00
parent 37acf9383c
commit 162bd5f543
14 changed files with 121 additions and 50 deletions

View File

@@ -65,8 +65,7 @@ void FileNameEditor::initWidgets() {
connect(m_nameEditor, &QLineEdit::textChanged, this,
&FileNameEditor::showParsedPattern);
m_nameEditor->setText(ConfigHandler().getFilenamePattern());
m_outputLabel->setText(m_nameHandler->getParsedPattern());
updateComponents();
// helper buttons
m_helperButtons = new StrftimeChooserWidget(this);
@@ -107,3 +106,8 @@ void FileNameEditor::addToNameEditor(QString s) {
m_nameEditor->setText(m_nameEditor->text() + s);
m_nameEditor->setFocus();
}
void FileNameEditor::updateComponents() {
m_nameEditor->setText(ConfigHandler().getFilenamePattern());
m_outputLabel->setText(m_nameHandler->getParsedPattern());
}