[digikam] [Bug 372342] Face tag area is very short

Posted by bugzilla_noreply on
URL: http://digikam.185.s1.nabble.com/digikam-Bug-372342-New-Face-tag-area-is-very-short-tp4690538p4694706.html

https://bugs.kde.org/show_bug.cgi?id=372342

--- Comment #17 from [hidden email] ---
Comment on attachment 104335
  --> https://bugs.kde.org/attachment.cgi?id=104335
local code patch for the bug

Why this complex code :

+    connect(this, SIGNAL(textChanged(QString)),
+            this, SLOT(slotTextChanged(QString)));
+
     connect(d->completer, static_cast<void(TagCompleter::*)(const
TaggingAction&)>(&TagCompleter::activated),
             [this](const TaggingAction& action){ completerActivated(action);
});

@@ -192,6 +195,11 @@ void AddTagsLineEdit::slotTextEdited(const QString& text)
     d->completer->update(text);
 }

+void AddTagsLineEdit::slotTextChanged(const QString& txt)
+{
+    emit textEditChanged(txt);
+}

This code is enough :

+    connect(this, SIGNAL(textChanged(QString)),
+            this, SIGNAL(textEditChanged(QString)));

and please comment the patch step by step...

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.