Skip to content

Commit

Permalink
Drop minimum Qt version to 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 20, 2016
1 parent ac4f662 commit fdaa632
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/app/main.cpp
Expand Up @@ -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
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsfontutils.cpp
Expand Up @@ -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;
Expand All @@ -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 );

Expand Down

0 comments on commit fdaa632

Please sign in to comment.