Qt 6 works on Windows host

This commit is contained in:
2022-01-23 12:59:57 +03:00
parent fcdc142991
commit bdb2acb414
14 changed files with 139 additions and 34 deletions

View File

@@ -795,6 +795,9 @@ void BlockView::keyReleaseEvent(QKeyEvent * e) {
void BlockView::resizeEvent(QResizeEvent * event) {
QGraphicsView::resizeEvent(event);
thick = lineThickness(this);
#if QT_VERSION_MAJOR >= 6
thick *= devicePixelRatioF();
#endif
adjustThumb();
updateNavRect();
nav_target = _nav();