From 1be80e9e6315e96262de838821a43eae3fbeb6f5 Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Thu, 28 Jun 2018 10:27:52 +0200 Subject: Doc: Exclude parts of QtUiTools documentation based on the qdoc config Change-Id: I4b0257108498efa2e10a1c4fa5deda3acb74187f Reviewed-by: Friedemann Kleint --- src/designer/src/uitools/doc/src/qtuitools-module.qdoc | 2 ++ src/designer/src/uitools/quiloader.cpp | 2 ++ 2 files changed, 4 insertions(+) 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 -- cgit v1.2.1