Fallback to a simple rectangle when using software rendering
ClosedPublic

Authored by ahiemstra on Mar 13 2020, 11:28 AM.

Details

Summary

If the scene graph is using software rendering, the custom shaders used for
ShadowedRectangle will not work. So in that case, create a simple rectangle
node and use that. This loses a bunch of features of the item but at least
shows something.

Test Plan

ShadowedRectangleTest with QT_QUICK_BACKEND=software set renders a rectangle.

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahiemstra created this revision.Mar 13 2020, 11:28 AM
Restricted Application added a project: Kirigami. · View Herald TranscriptMar 13 2020, 11:28 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ahiemstra requested review of this revision.Mar 13 2020, 11:28 AM
ahiemstra updated this revision to Diff 77556.Mar 13 2020, 1:37 PM
  • Use QQuickPaintedItem to render a rect with rounded corners and border
mart accepted this revision.Mar 13 2020, 3:25 PM
This revision is now accepted and ready to land.Mar 13 2020, 3:25 PM
This revision was automatically updated to reflect the committed changes.