mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Drop minimum Qt version to 5.2
This commit is contained in:
parent
ac4f662899
commit
fdaa6321cc
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user