Drop minimum Qt version to 5.2

This commit is contained in:
Nyall Dawson 2016-09-21 08:56:32 +10:00
parent ac4f662899
commit fdaa6321cc
3 changed files with 5 additions and 3 deletions

View File

@ -247,7 +247,7 @@ ELSE (WITH_QTWEBKIT)
ENDIF(WITH_QTWEBKIT)
#############################################################
# search for Qt5
SET(QT_MIN_VERSION 5.5.0)
SET(QT_MIN_VERSION 5.2.0)
FIND_PACKAGE(Qt5Core QUIET)
FIND_PACKAGE(Qt5Gui REQUIRED)
FIND_PACKAGE(Qt5Widgets REQUIRED)

View File

@ -415,11 +415,11 @@ void myMessageOutput( QtMsgType type, const char *msg )
#endif
}
#if QT_VERSION >= 0x050500
case QtInfoMsg:
myPrint( "Info: %s\n", msg );
break;
#endif
}
}

View File

@ -439,6 +439,7 @@ QString QgsFontUtils::asCSS( const QFont& font, double pointToPixelScale )
case QFont::Black:
cssWeight = 900;
break;
#if QT_VERSION >= 0x050500
case QFont::Thin:
cssWeight = 100;
break;
@ -451,6 +452,7 @@ QString QgsFontUtils::asCSS( const QFont& font, double pointToPixelScale )
case QFont::ExtraBold:
cssWeight = 800;
break;
#endif
}
css += QString( "font-weight: %1;" ).arg( cssWeight );