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

            Bug ID: 388798
           Summary: KLineEdit emits textChanged signal when setText() or
                    clear() is called
           Product: frameworks-kcompletion
           Version: 5.32.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: davidgilol...@gmail.com
          Reporter: plasteredpar...@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Created attachment 109786
  --> https://bugs.kde.org/attachment.cgi?id=109786&action=edit
minimal example which reproduces the bug

Hi,
whilst debugging a segfault in kdevelop, I found this is the cause. I created a
simple test case GUI which has a KLineEdit, a KUrlRequester, and a QLineEdit
(source attached).

On my system (Qt 5.6.2, KDE frameworks 5.32.0, openSUSE Leap 42.3),
when the "test edited" or "test clear" buttons are pressed, QLineEdit correctly
only emits the textChanged signal, but KUrlRequester and KLineEdit emit both
textChanged (expected) and also textEdited (spurious). 

This signal should only (as per the docs) be emitted when the user themselves
edits the box.

I searched the git logs and couldn't see any fix related to this up to now. I
have not yet checked newer versions to see if the problem is still there.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to