D22147: Better use of Qt APIs in Plasma::Theme

Fabian Vogt noreply at phabricator.kde.org
Mon Jul 1 15:10:45 BST 2019


fvogt requested changes to this revision.
fvogt added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> svg.cpp:317
> +            const auto match = sizeHintedKeyExpr.match(key);
> +            if (match.isValid()) {
> +                QString baseElementId = match.captured(3);

`isValid` is always true, you probably want to use `hasMatch` instead.

This is not obvious, I only noticed this because I debugged this error before (https://phabricator.kde.org/D17359)

REPOSITORY
  R242 Plasma Framework (Library)

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

To: apol, #plasma, #frameworks, fvogt
Cc: fvogt, broulik, kde-frameworks-devel, LeGast00n, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190701/db925364/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list