Make an increment name valid after user selected it from a completion list.

This commit is contained in:
Roman Telezhynskyi 2021-08-06 17:06:11 +03:00
parent 785d72117d
commit b366986f7a
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@
- Fix visualization for tool point of intersection line and axis. Case when the axis's point lies on the line.
- Table of variables is available in Details mode.
- Fix incorrect comparison of the global length of passmark to minimal allowed value.
- Make an increment name valid after user selected it from a completion list.
# Valentina 0.7.49 July 1, 2021
- Fix crash.

View File

@ -137,6 +137,11 @@ DialogPatternProperties::DialogPatternProperties(VPattern *doc, VContainer *pat
m_completer->setModelSorting(QCompleter::UnsortedModel);
m_completer->setFilterMode(Qt::MatchContains);
m_completer->setCaseSensitivity(Qt::CaseSensitive);
connect(m_completer, QOverload<const QString &>::of(&QCompleter::activated), this, [this]()
{
ValidatePassmarkLength();
DescEdited();
});
ui->lineEditPassmarkLength->setCompleter(m_completer);
connect(ui->lineEditPassmarkLength, &QLineEdit::textEdited, this, [this]()