Small optimization
Summary:
Reduce lookups to the attributes map
Drop the QString part on QStringRef -> QString -> int
Reviewers: Frameworks, whiting, leinir
Reviewed By: leinir
Subscribers: ltoscano, aacid
Differential Revision: https://phabricator.kde.org/D3544