D28033: Create ExpandableListItem

David Edmundson noreply at phabricator.kde.org
Sat Mar 14 04:11:45 GMT 2020


davidedmundson added inline comments.

INLINE COMMENTS

> ExpandableListItem.qml:2
> +/*
> + *   Copyright 2020 Nate Graham <nate at kde.org>
> + *

It shouldn't be in PC3. It's new API from qqc2.A

> ExpandableListItem.qml:23
> +import org.kde.plasma.core 2.0 as PlasmaCore
> +import org.kde.plasma.plasmoid 2.0
> +import org.kde.plasma.components 2.0 as PlasmaComponents

Unused?

> ExpandableListItem.qml:153
> +                PlasmaComponents.Label {
> +                    id: listItemSubtitle
> +

Why pc2?

> ExpandableListItem.qml:179
> +
> +                onClicked: collapse()
> +            }

Shouldn't it run the default action?

> ExpandableListItem.qml:190
> +                // TODO: or should it just be right-aligned?
> +                implicitWidth: defaultActionButton.width
> +                implicitHeight: defaultActionButton.height

Neve rdefine an implicit size from an actual size.

> ExpandableListItem.qml:230
> +                NumberAnimation {
> +                    duration: units.longDuration * 3
> +                    easing.type: Easing.InOutCubic

Seems random

> ExpandableListItem.qml:235
> +
> +            // Custom view; when defined, the actions list doesn't appear
> +            Loader {

Sounds like you want 2 classes. One a subclass with the list as the custom view.

Then you don't need the container, or this switching.

REPOSITORY
  R242 Plasma Framework (Library)

REVISION DETAIL
  https://phabricator.kde.org/D28033

To: ngraham, #vdg, #plasma
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200314/2fd368a1/attachment.html>


More information about the Kde-frameworks-devel mailing list