multi deploy

other qt6 patches
This commit is contained in:
2022-01-31 19:54:19 +03:00
parent bdb2acb414
commit 604441efc3
7 changed files with 54 additions and 32 deletions

View File

@@ -132,7 +132,11 @@ bool ImageView::eventFilter(QObject * o, QEvent * e) {
void ImageView::adjustView() {
int nw = map.size().boundedTo(size()).width();
QSize ws = size();
#if QT_VERSION_MAJOR >= 5
ws *= devicePixelRatio();
#endif
int nw = map.size().boundedTo(ws).width();
item.setScale(1.);
if (nw > 0) {
qreal mp = map.width() / nw;