summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2018-06-28 10:27:52 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2018-07-24 13:38:30 +0000
commit1be80e9e6315e96262de838821a43eae3fbeb6f5 (patch)
treef9037707fd25e6fac8e325ffb3845a248d423fdd
parent3ecb48a25ae72c918c6d8c4486254aeb418e4828 (diff)
downloadqttools-1be80e9e6315e96262de838821a43eae3fbeb6f5.tar.gz
Doc: Exclude parts of QtUiTools documentation based on the qdoc config
Change-Id: I4b0257108498efa2e10a1c4fa5deda3acb74187f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--src/designer/src/uitools/doc/src/qtuitools-module.qdoc2
-rw-r--r--src/designer/src/uitools/quiloader.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/designer/src/uitools/doc/src/qtuitools-module.qdoc b/src/designer/src/uitools/doc/src/qtuitools-module.qdoc
index df44f5271..2820ac475 100644
--- a/src/designer/src/uitools/doc/src/qtuitools-module.qdoc
+++ b/src/designer/src/uitools/doc/src/qtuitools-module.qdoc
@@ -42,7 +42,9 @@
in a \c qmake project file to ensure that the application is compiled
and linked appropriately.
+ \if !defined(qtforpython)
\snippet quiloader/doc_src_qtuiloader.pro 0
+ \endif
A form loader object, provided by the QUiLoader class, is used to
construct the user interface. This user interface can
diff --git a/src/designer/src/uitools/quiloader.cpp b/src/designer/src/uitools/quiloader.cpp
index 5786f5ced..d8a883c9f 100644
--- a/src/designer/src/uitools/quiloader.cpp
+++ b/src/designer/src/uitools/quiloader.cpp
@@ -620,10 +620,12 @@ void QUiLoaderPrivate::setupWidgetMap() const
\snippet quiloader/mywidget.cpp 0
+ \if !defined(qtforpython)
By including the user interface in the form's resources (\c myform.qrc), we
ensure that it will be present at run-time:
\quotefile quiloader/mywidget.qrc
+ \endif
The availableWidgets() function returns a QStringList with the class names
of the widgets available in the specified plugin paths. To create these