ImageView fix
This commit is contained in:
@@ -126,7 +126,7 @@ bool ImageView::eventFilter(QObject * o, QEvent * e) {
|
|||||||
|
|
||||||
void ImageView::adjustView() {
|
void ImageView::adjustView() {
|
||||||
qreal mp = map.width() / map.size().boundedTo(size()).width();
|
qreal mp = map.width() / map.size().boundedTo(size()).width();
|
||||||
if (mp > 2) {
|
if (mp > 1) {
|
||||||
item.setPixmap(map.scaled(map.size()/mp, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
item.setPixmap(map.scaled(map.size()/mp, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||||
} else {
|
} else {
|
||||||
item.setPixmap(map);
|
item.setPixmap(map);
|
||||||
|
|||||||
Reference in New Issue
Block a user