mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix bug 198
Text input loose the focus after each single letter
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user