D7155: Implement sorting of the device tree items

Anthony Fieroni noreply at phabricator.kde.org
Sun Aug 6 03:40:29 UTC 2017


anthonyfieroni added a reviewer: Plasma.
anthonyfieroni added inline comments.

INLINE COMMENTS

> soldevice.cpp:165
> +                const Solid::Processor *right = otherDevice->tiedDevice.as<const Solid::Processor>();
> +                return left->number() > right->number();
> +            }

left->number() < right->number() ?

> soldevice.cpp:169
> +            {
> +                return other.text(0) < text(0);
> +            }

Reverse again ?

> soldevice.cpp:177
> +}
> \ No newline at end of file


Add a new line.

> soldevice.h:108
>      
> +    virtual bool operator< (const QTreeWidgetItem & other) const;
>    protected:

Why virtual ?

REPOSITORY
  R102 KInfoCenter

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

To: isaact, #plasma
Cc: anthonyfieroni, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170806/2c0f4045/attachment.html>


More information about the Plasma-devel mailing list