refactor: floatify messages (#6231)

This commit is contained in:
nerix
2025-05-24 11:40:11 +02:00
committed by GitHub
parent 8782533457
commit b78e1ed0a7
18 changed files with 303 additions and 255 deletions
+13
View File
@@ -484,6 +484,19 @@ int Image::height() const
return static_cast<int>(this->expectedSize_.height() * this->scale_);
}
QSizeF Image::size() const
{
assertInGuiThread();
if (auto pixmap = this->frames_->first())
{
return pixmap->size().toSizeF() * this->scale_;
}
// No frames loaded, use the expected size
return this->expectedSize_.toSizeF() * this->scale_;
}
void Image::actuallyLoad()
{
auto weak = weakOf(this);