Skip to content

Commit fdaa632

Browse files
committed
Drop minimum Qt version to 5.2
1 parent ac4f662 commit fdaa632

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ELSE (WITH_QTWEBKIT)
247247
ENDIF(WITH_QTWEBKIT)
248248
#############################################################
249249
# search for Qt5
250-
SET(QT_MIN_VERSION 5.5.0)
250+
SET(QT_MIN_VERSION 5.2.0)
251251
FIND_PACKAGE(Qt5Core QUIET)
252252
FIND_PACKAGE(Qt5Gui REQUIRED)
253253
FIND_PACKAGE(Qt5Widgets REQUIRED)

src/app/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,11 @@ void myMessageOutput( QtMsgType type, const char *msg )
415415
#endif
416416
}
417417

418-
418+
#if QT_VERSION >= 0x050500
419419
case QtInfoMsg:
420420
myPrint( "Info: %s\n", msg );
421421
break;
422-
422+
#endif
423423
}
424424
}
425425

src/core/qgsfontutils.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ QString QgsFontUtils::asCSS( const QFont& font, double pointToPixelScale )
439439
case QFont::Black:
440440
cssWeight = 900;
441441
break;
442+
#if QT_VERSION >= 0x050500
442443
case QFont::Thin:
443444
cssWeight = 100;
444445
break;
@@ -451,6 +452,7 @@ QString QgsFontUtils::asCSS( const QFont& font, double pointToPixelScale )
451452
case QFont::ExtraBold:
452453
cssWeight = 800;
453454
break;
455+
#endif
454456
}
455457
css += QString( "font-weight: %1;" ).arg( cssWeight );
456458

0 commit comments

Comments
 (0)