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)
|
ENDIF(WITH_QTWEBKIT)
|
||||||
#############################################################
|
#############################################################
|
||||||
# search for Qt5
|
# search for Qt5
|
||||||
SET(QT_MIN_VERSION 5.5.0)
|
SET(QT_MIN_VERSION 5.2.0)
|
||||||
FIND_PACKAGE(Qt5Core QUIET)
|
FIND_PACKAGE(Qt5Core QUIET)
|
||||||
FIND_PACKAGE(Qt5Gui REQUIRED)
|
FIND_PACKAGE(Qt5Gui REQUIRED)
|
||||||
FIND_PACKAGE(Qt5Widgets REQUIRED)
|
FIND_PACKAGE(Qt5Widgets REQUIRED)
|
||||||
|
@ -415,11 +415,11 @@ void myMessageOutput( QtMsgType type, const char *msg )
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x050500
|
||||||
case QtInfoMsg:
|
case QtInfoMsg:
|
||||||
myPrint( "Info: %s\n", msg );
|
myPrint( "Info: %s\n", msg );
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -439,6 +439,7 @@ QString QgsFontUtils::asCSS( const QFont& font, double pointToPixelScale )
|
|||||||
case QFont::Black:
|
case QFont::Black:
|
||||||
cssWeight = 900;
|
cssWeight = 900;
|
||||||
break;
|
break;
|
||||||
|
#if QT_VERSION >= 0x050500
|
||||||
case QFont::Thin:
|
case QFont::Thin:
|
||||||
cssWeight = 100;
|
cssWeight = 100;
|
||||||
break;
|
break;
|
||||||
@ -451,6 +452,7 @@ QString QgsFontUtils::asCSS( const QFont& font, double pointToPixelScale )
|
|||||||
case QFont::ExtraBold:
|
case QFont::ExtraBold:
|
||||||
cssWeight = 800;
|
cssWeight = 800;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
css += QString( "font-weight: %1;" ).arg( cssWeight );
|
css += QString( "font-weight: %1;" ).arg( cssWeight );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user