parent
82470c42a3
commit
152eea0751
@ -0,0 +1,28 @@
|
|||||||
|
diff -up qwt-6.1.1/qwtfunctions.pri.qt5 qwt-6.1.1/qwtfunctions.pri
|
||||||
|
--- qwt-6.1.1/qwtfunctions.pri.qt5 2014-09-18 09:59:46.659028741 -0500
|
||||||
|
+++ qwt-6.1.1/qwtfunctions.pri 2014-12-01 07:23:30.215055279 -0600
|
||||||
|
@@ -12,7 +12,12 @@
|
||||||
|
defineReplace(qwtLibraryTarget) {
|
||||||
|
|
||||||
|
unset(LIBRARY_NAME)
|
||||||
|
+
|
||||||
|
+ greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
|
+ LIBRARY_NAME = $${1}-qt$${QT_MAJOR_VERSION}
|
||||||
|
+ } else {
|
||||||
|
LIBRARY_NAME = $$1
|
||||||
|
+ }
|
||||||
|
|
||||||
|
mac:contains(QWT_CONFIG, QwtFramework) {
|
||||||
|
|
||||||
|
@@ -35,7 +40,11 @@ defineReplace(qwtLibraryTarget) {
|
||||||
|
|
||||||
|
defineTest(qwtAddLibrary) {
|
||||||
|
|
||||||
|
+ greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
|
+ LIB_NAME = $${1}-qt$${QT_MAJOR_VERSION}
|
||||||
|
+ } else {
|
||||||
|
LIB_NAME = $$1
|
||||||
|
+ }
|
||||||
|
|
||||||
|
unset(LINKAGE)
|
||||||
|
|
@ -0,0 +1,47 @@
|
|||||||
|
Index: src/qwt_transform.cpp
|
||||||
|
===================================================================
|
||||||
|
--- src/qwt_transform.cpp (revision 2064)
|
||||||
|
+++ src/qwt_transform.cpp (revision 2066)
|
||||||
|
@@ -14,12 +14,24 @@
|
||||||
|
#define qExp(x) ::exp(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if QT_VERSION >= 0x050400
|
||||||
|
+
|
||||||
|
//! Smallest allowed value for logarithmic scales: 1.0e-150
|
||||||
|
+const double QwtLogTransform::LogMin = 1.0e-150;
|
||||||
|
+
|
||||||
|
+//! Largest allowed value for logarithmic scales: 1.0e150
|
||||||
|
+const double QwtLogTransform::LogMax = 1.0e150;
|
||||||
|
+
|
||||||
|
+#else
|
||||||
|
+
|
||||||
|
+//! Smallest allowed value for logarithmic scales: 1.0e-150
|
||||||
|
QT_STATIC_CONST_IMPL double QwtLogTransform::LogMin = 1.0e-150;
|
||||||
|
|
||||||
|
//! Largest allowed value for logarithmic scales: 1.0e150
|
||||||
|
QT_STATIC_CONST_IMPL double QwtLogTransform::LogMax = 1.0e150;
|
||||||
|
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
//! Constructor
|
||||||
|
QwtTransform::QwtTransform()
|
||||||
|
{
|
||||||
|
Index: src/qwt_transform.h
|
||||||
|
===================================================================
|
||||||
|
--- src/qwt_transform.h (revision 2064)
|
||||||
|
+++ src/qwt_transform.h (revision 2066)
|
||||||
|
@@ -107,8 +107,13 @@
|
||||||
|
|
||||||
|
virtual QwtTransform *copy() const;
|
||||||
|
|
||||||
|
+#if QT_VERSION >= 0x050400
|
||||||
|
+ static const double LogMin;
|
||||||
|
+ static const double LogMax;
|
||||||
|
+#else
|
||||||
|
QT_STATIC_CONST double LogMin;
|
||||||
|
QT_STATIC_CONST double LogMax;
|
||||||
|
+#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
/*!
|
Loading…
Reference in new issue