Commit 6c145823 authored by Christian Kandeler's avatar Christian Kandeler

Utils: Make the meaning of PathChooser::changed() consistent.

This signal was emitted from two places. In one of them, the argument
was the pure string from the line edit, and in the other one the "raw
path", that is, the aforementioned string processed by cleanPath() and
fromNativeSeparators().
We now use the latter in both contexts. A look at the slots does not
suggest anyone is interested in the other value rather than this one.

Change-Id: Iacb6e0815004b2ef0107bfef03b97b46015da989
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent c760cbd2
......@@ -222,7 +222,7 @@ PathChooser::PathChooser(QWidget *parent) :
d->m_hLayout->setContentsMargins(0, 0, 0, 0);
connect(d->m_lineEdit, &FancyLineEdit::validReturnPressed, this, &PathChooser::returnPressed);
connect(d->m_lineEdit, &QLineEdit::textChanged, this, &PathChooser::changed);
connect(d->m_lineEdit, &QLineEdit::textChanged, this, [this] { emit changed(rawPath()); });
connect(d->m_lineEdit, &FancyLineEdit::validChanged, this, &PathChooser::validChanged);
connect(d->m_lineEdit, &QLineEdit::editingFinished, this, &PathChooser::editingFinished);
connect(d->m_lineEdit, &QLineEdit::textChanged, this, [this] { emit pathChanged(path()); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment