| 732 | } |
| 733 | |
| 734 | bool RichResourceTextCheck(const QVariant &var) |
| 735 | { |
| 736 | return var.userType() == qMetaTypeId<RichResourceTextPtr>() || |
| 737 | var.userType() == qMetaTypeId<GPUAddressPtr>() || |
| 738 | var.userType() == qMetaTypeId<ResourceId>() || var.userType() == qMetaTypeId<QUrl>(); |
| 739 | } |
| 740 | |
| 741 | // I'm not sure if this should come from the style or not - the QTextDocument handles this in |
| 742 | // the rich text case. |