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

            Bug ID: 512048
           Summary: SwipeListItem in RtL has broken padding and prints
                    errors
    Classification: Frameworks and Libraries
           Product: frameworks-kirigami
      Version First Master
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: Not decided

Created attachment 186755
  --> https://bugs.kde.org/attachment.cgi?id=186755&action=edit
kde connect plugin settings with wrong highlight padding

SUMMARY

SwipeListItem prints a lot of errors when used in RtL, and the highlight is
misaligned.

Tested using both KDE Connect's Plugin Settings page and Discover's Settings,
both have the error and misaligned highlight (need to sue keyboard navigation
in Discover, it does not highlight on hover).

The error is a lot of


<Unknown File>: QML QQuickAnchors: Binding loop detected for property "left":
file:///home/wolki/kde/usr/lib64/qml/org/kde/kirigami/SwipeListItem.qml:309:17
<Unknown File>: QML QQuickAnchors: Binding loop detected for property "left":
file:///home/wolki/kde/usr/lib64/qml/org/kde/kirigami/SwipeListItem.qml:309:17
qml: Don't override the leftPadding or rightPadding on a SwipeListItem!
This makes it impossible for me to adjust my layout as I need to for various
usecases.
I'll try to fix the mistake for you, but you should remove your overrides from
your app's code entirely.
If I can't fix the paddings, I'll fall back to a default layout, but it'll be
slightly incorrect and lacks
adaptations needed for touch screens and right-to-left languages, among other
things.

Looking at the implementations, it seems they don't do anything with the
leftPadding or rightPadding values, and the errors do not happen in LtR. I
suspect there's something wrong in SwipeListItem that triggers this
.
STEPS TO REPRODUCE
1.  kdeconnect-app --reverse
2. Click an available device in sidebar
3. Click Settings button in toolbar
4. Hover over entry

OBSERVED RESULT

Errors printed in console output, misaligned highlight on list items

EXPECTED RESULT

No errors, correct padding
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to