@@ -110,23 +110,14 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
110
110
~QgsProject () override ;
111
111
112
112
/* *
113
- * Set the current project instance to \a project
114
- *
115
- * \note this is used mainly by the server, which caches the projects and (potentially) needs to switch the current instance on every request
116
- * \see instance()
117
- * \since QGIS 3.2
118
- */
119
- static void setInstance ( QgsProject *project ) SIP_SKIP;
120
-
121
- /* *
122
- * Sets the project's title.
123
- * \param title new title
124
- *
125
- * \note Since QGIS 3.2 this is just a shortcut to setting the title in the project's metadata().
126
- *
127
- * \see title()
128
- * \since QGIS 2.4
129
- */
113
+ * Sets the project's title.
114
+ * \param title new title
115
+ *
116
+ * \note Since QGIS 3.2 this is just a shortcut to setting the title in the project's metadata().
117
+ *
118
+ * \see title()
119
+ * \since QGIS 2.4
120
+ */
130
121
void setTitle ( const QString &title );
131
122
132
123
/* *
@@ -1266,6 +1257,16 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
1266
1257
1267
1258
static QgsProject *sProject ;
1268
1259
1260
+ /* *
1261
+ * Set the current project instance to \a project
1262
+ *
1263
+ * \note this is used mainly by the server, which caches the projects and (potentially) needs to switch the current instance on every request
1264
+ * \see instance()
1265
+ * \note not available in Python bindings
1266
+ * \since QGIS 3.2
1267
+ */
1268
+ static void setInstance ( QgsProject *project ) SIP_SKIP;
1269
+
1269
1270
/* *
1270
1271
* Read map layers from project file.
1271
1272
* \param doc DOM document to parse
@@ -1371,6 +1372,9 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
1371
1372
QgsProjectMetadata mMetadata ;
1372
1373
1373
1374
friend class QgsProjectDirtyBlocker ;
1375
+
1376
+ // Required by QGIS Server for switching the current project instance
1377
+ friend class QgsConfigCache ;
1374
1378
};
1375
1379
1376
1380
/* *
0 commit comments