ImageView fix
This commit is contained in:
@@ -126,7 +126,7 @@ bool ImageView::eventFilter(QObject * o, QEvent * e) {
|
||||
|
||||
void ImageView::adjustView() {
|
||||
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));
|
||||
} else {
|
||||
item.setPixmap(map);
|
||||
|
||||
Reference in New Issue
Block a user