feat: fit by width

Signed-off-by: Gary Wang <wzc782970009@gmail.com>
This commit is contained in:
Gary Wang committed 2021-05-14 00:10:08 +08:00
1 parent 69802a433e
commit 038d04b3da
6 files changed
+36

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ public:
void flipView(bool horizontal = true);
void resetScale();
void fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio);
void fitByOrientation(Qt::Orientation ori = Qt::Horizontal, bool scaleDownOnly = false);
void checkAndDoFitInView(bool markItOnAnyway = true);