Fixed always loading 1x, 2x and 3x images
This commit is contained in:
@@ -275,7 +275,14 @@ const Url &Image::url() const
|
||||
return this->url_;
|
||||
}
|
||||
|
||||
boost::optional<QPixmap> Image::pixmap() const
|
||||
bool Image::loaded() const
|
||||
{
|
||||
assertInGuiThread();
|
||||
|
||||
return bool(this->frames_->current());
|
||||
}
|
||||
|
||||
boost::optional<QPixmap> Image::pixmapOrLoad() const
|
||||
{
|
||||
assertInGuiThread();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user