buttleofx / ButtleOFX

ButtleOFX is an open source compositing software.
http://buttleofx.wordpress.com
91 stars 22 forks source link

Add file icon #101

Closed fabiencastan closed 10 years ago

fabiencastan commented 10 years ago

When the image is not supported by tuttle, like ".txt", we should not display a green box but a file icon. If the image should be supported by tuttle but loading fails, we need to display a specific icon (a crushed mosquito for instance...).

1) The error case could be seen directly from qml, because we have the status: thumbnail.status == Image.Error. In that case, we currently display the red box in qml.

2) But the fact that the extension is not supported by tuttle should be checked ahead. For that you need to expose a callable which check if getBestPlugin.getReaders(filepath) is empty.