File tree 13 files changed +35
-55
lines changed
13 files changed +35
-55
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,6 @@ FIND_PACKAGE(Qt5Test REQUIRED)
265
265
FIND_PACKAGE (Qt5UiTools REQUIRED)
266
266
FIND_PACKAGE (Qt5Script REQUIRED)
267
267
FIND_PACKAGE (Qt5Sql REQUIRED)
268
- SET (QT5_BUILD TRUE )
269
268
INCLUDE ("cmake/modules/ECMQt4To5Porting.cmake" )
270
269
MESSAGE (STATUS "Found Qt version: ${Qt5Core_VERSION_STRING} " )
271
270
Original file line number Diff line number Diff line change @@ -245,13 +245,9 @@ class QgsComposerScaleBar: QgsComposerItem
245
245
246
246
/** Returns the x - positions of the segment borders (in item coordinates) and the width
247
247
* of the segment
248
- * @note python bindings not available on android
248
+ * @note not available in Python bindings
249
249
*/
250
- %If (!ARM)
251
- %If (!QT5_SUPPORT)
252
- void segmentPositions( QList<QPair<double, double> >& posWidthList ) const;
253
- %End
254
- %End
250
+ // void segmentPositions( QList<QPair<double, double> >& posWidthList ) const;
255
251
256
252
/** Sets box size suitable to content*/
257
253
void adjustBoxSize();
Original file line number Diff line number Diff line change 2
2
version=0,
3
3
keyword_arguments="Optional")
4
4
5
- %Feature QT5_SUPPORT
6
-
7
5
%Import QtXml/QtXmlmod.sip
8
6
%Import QtNetwork/QtNetworkmod.sip
9
7
%Import QtSql/QtSqlmod.sip
10
8
11
- %If (QT5_SUPPORT)
12
- %Import QtPrintSupport/QtPrintSupportmod.sip
13
- %Import QtWidgets/QtWidgetsmod.sip
14
- %End
9
+ %Import QtPrintSupport/QtPrintSupportmod.sip
10
+ %Import QtWidgets/QtWidgetsmod.sip
15
11
16
12
%Include conversions.sip
17
13
%Include qgsexception.sip
69
65
%Include qgsmaptopixelgeometrysimplifier.sip
70
66
%Include qgstransaction.sip
71
67
%Include qgstransactiongroup.sip
72
- %If(!QT5_SUPPORT)
73
- %Include qgshttptransaction.sip
74
- %End
68
+ // TODO - update for Qt5
69
+ // %Include qgshttptransaction.sip
75
70
%Include qgsdartmeasurement.sip
76
71
%Include qgsexpressionfieldbuffer.sip
77
72
%Include qgsfontutils.sip
Original file line number Diff line number Diff line change @@ -323,9 +323,6 @@ class QgsGeometry
323
323
* not disjoint with existing polygons of the feature
324
324
*/
325
325
// TODO QGIS 3.0 returns an enum instead of a magic constant
326
- %If (!QT5_SUPPORT)
327
- int addPart( const QList<QgsPoint> &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry );
328
- %End
329
326
int addPart( const QList<QgsPoint> &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry )/PyName=addPoints/;
330
327
331
328
/** Adds a new part to a the geometry.
@@ -335,9 +332,6 @@ class QgsGeometry
335
332
* not disjoint with existing polygons of the feature
336
333
*/
337
334
// TODO QGIS 3.0 returns an enum instead of a magic constant
338
- %If (!QT5_SUPPORT)
339
- int addPart( const QList<QgsPointV2> &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry );
340
- %End
341
335
int addPart( const QList<QgsPointV2> &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry )/PyName=addPointsV2/;
342
336
343
337
/** Adds a new part to this geometry.
Original file line number Diff line number Diff line change @@ -62,14 +62,14 @@ class QgsMapLayerModel : QAbstractItemModel
62
62
int rowCount( const QModelIndex &parent ) const;
63
63
int columnCount( const QModelIndex &parent ) const;
64
64
QVariant data( const QModelIndex &index, int role ) const;
65
- %If (QT5_SUPPORT)
65
+
66
66
/**
67
67
* Returns strings for all roles supported by this model.
68
68
*
69
69
* @note Available only with Qt5 (python and c++)
70
70
*/
71
71
QHash<int, QByteArray> roleNames() const;
72
- %End
72
+
73
73
bool setData( const QModelIndex &index, const QVariant &value, int role );
74
74
Qt::ItemFlags flags( const QModelIndex &index ) const;
75
75
};
Original file line number Diff line number Diff line change @@ -53,15 +53,13 @@ class QgsProviderRegistry
53
53
QWidget *selectWidget( const QString & providerKey,
54
54
QWidget * parent = 0, const Qt::WindowFlags& fl = 0 );
55
55
56
- %If (!QT5_SUPPORT)
57
56
/** Get pointer to provider function
58
- * @param providerKey identificator of the provider
59
- * @param functionName name of function
60
- * @return pointer to function or NULL on error
57
+ @param providerKey identificator of the provider
58
+ @param functionName name of function
59
+ @return pointer to function or NULL on error
61
60
*/
62
- void *function( const QString & providerKey,
63
- const QString & functionName );
64
- %End
61
+ QFunctionPointer function( const QString & providerKey,
62
+ const QString & functionName );
65
63
66
64
QLibrary *providerLibrary( const QString & providerKey ) const;
67
65
Original file line number Diff line number Diff line change 11
11
%Import QtXml/QtXmlmod.sip
12
12
13
13
%If (HAVE_QSCI_SIP)
14
- %If (!QT5_SUPPORT)
15
- %Import Qsci/qscimod4.sip
16
- %End
17
- %If (QT5_SUPPORT)
18
- %Import Qsci/qscimod5.sip
19
- %End
14
+ %Import Qsci/qscimod5.sip
20
15
%End
21
16
22
17
%Include qgsblendmodecombobox.sip
Original file line number Diff line number Diff line change @@ -394,11 +394,10 @@ IF(ENABLE_MODELTEST)
394
394
)
395
395
ENDIF (ENABLE_MODELTEST)
396
396
397
- IF (NOT QT5_BUILD)
398
- SET (QGIS_CORE_SRCS ${QGIS_CORE_SRCS}
399
- qgshttptransaction.cpp
400
- )
401
- ENDIF (NOT QT5_BUILD)
397
+ # TODO - update for Qt5
398
+ #SET(QGIS_CORE_SRCS ${QGIS_CORE_SRCS}
399
+ # qgshttptransaction.cpp
400
+ #)
402
401
403
402
IF (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
404
403
# spatialindex headers produce warnings
@@ -560,11 +559,10 @@ IF (NOT WITH_QTWEBKIT)
560
559
)
561
560
ENDIF (NOT WITH_QTWEBKIT)
562
561
563
- IF (NOT QT5_BUILD)
564
- SET (QGIS_CORE_MOC_HDRS ${QGIS_CORE_MOC_HDRS}
565
- qgshttptransaction.h
566
- )
567
- ENDIF (NOT QT5_BUILD)
562
+ # TODO - update for Qt5
563
+ #SET(QGIS_CORE_MOC_HDRS ${QGIS_CORE_MOC_HDRS}
564
+ # qgshttptransaction.h
565
+ #)
568
566
569
567
IF (WITH_INTERNAL_QEXTSERIALPORT)
570
568
SET (QGIS_CORE_MOC_HDRS ${QGIS_CORE_MOC_HDRS}
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ class CORE_EXPORT QgsComposerScaleBar: public QgsComposerItem
268
268
269
269
/* * Returns the x - positions of the segment borders (in item coordinates) and the width
270
270
* of the segment
271
- * @note python bindings not available on android
271
+ * @note not available in Python bindings
272
272
*/
273
273
void segmentPositions ( QList<QPair<double , double > >& posWidthList ) const ;
274
274
Original file line number Diff line number Diff line change 17
17
* *
18
18
***************************************************************************/
19
19
20
+ // /@cond PRIVATE
20
21
21
22
#include < fstream>
22
23
29
30
#include < QSettings>
30
31
#include < QTimer>
31
32
33
+
32
34
static int HTTP_PORT_DEFAULT = 80 ;
33
35
34
36
// XXX Set the connection name when creating the provider instance
@@ -568,4 +570,6 @@ void QgsHttpTransaction::abort()
568
570
}
569
571
}
570
572
573
+ // / @endcond
574
+
571
575
// ENDS
Original file line number Diff line number Diff line change 27
27
28
28
class QTimer ;
29
29
30
+ // needs porting to Qt5 - until then don't include in api docs
31
+ // /@cond PRIVATE
32
+
30
33
/* * \ingroup core
31
34
* HTTP request/response manager that is redirect-aware.
32
35
* This class extends the Qt QHttp concept by being able to recognise
@@ -214,6 +217,8 @@ class CORE_EXPORT QgsHttpTransaction : public QObject
214
217
int mNetworkTimeoutMsec ;
215
218
};
216
219
220
+ // /@endcond
221
+
217
222
#endif
218
223
219
224
// ENDS
Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ ADD_DEFINITIONS(-DQT_PLUGIN)
2
2
ADD_DEFINITIONS (-DQT_NO_DEBUG)
3
3
ADD_DEFINITIONS (-DQT_SHARED)
4
4
5
- IF (QT5_BUILD)
6
- FIND_PACKAGE (Qt5UiPlugin REQUIRED)
7
- FIND_PACKAGE (Qt5Designer REQUIRED)
8
- ENDIF (QT5_BUILD)
5
+ FIND_PACKAGE (Qt5UiPlugin REQUIRED)
6
+ FIND_PACKAGE (Qt5Designer REQUIRED)
9
7
10
8
SET (QT_USE_QTDESIGNER ON )
11
9
Original file line number Diff line number Diff line change 1
- IF (QT5_BUILD)
2
- FIND_PACKAGE (Qt5XmlPatterns REQUIRED)
3
- ENDIF ()
1
+ FIND_PACKAGE (Qt5XmlPatterns REQUIRED)
4
2
5
3
6
4
SET (WMS_SRCS
You can’t perform that action at this time.
0 commit comments