mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Fix bug 198
Text input loose the focus after each single letter
This commit is contained in:
parent
fa719cf8ff
commit
0ce001ea6e
@ -170,7 +170,7 @@ QList<CustomElementPart*> TextEditor::currentParts() const {
|
|||||||
void TextEditor::setUpEditConnection() {
|
void TextEditor::setUpEditConnection() {
|
||||||
disconnectEditConnection();
|
disconnectEditConnection();
|
||||||
|
|
||||||
m_edit_connection << connect(ui -> m_line_edit, &QLineEdit::textEdited, [this]() {
|
m_edit_connection << connect(ui -> m_line_edit, &QLineEdit::editingFinished, [this]() {
|
||||||
QString text_ = ui -> m_line_edit -> text();
|
QString text_ = ui -> m_line_edit -> text();
|
||||||
for (int i=0; i < m_parts.length(); i++) {
|
for (int i=0; i < m_parts.length(); i++) {
|
||||||
PartText* partText = m_parts[i];
|
PartText* partText = m_parts[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user