diff options
Diffstat (limited to 'examples/designer/doc/src/worldtimeclockbuilder.qdoc')
-rw-r--r-- | examples/designer/doc/src/worldtimeclockbuilder.qdoc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/designer/doc/src/worldtimeclockbuilder.qdoc b/examples/designer/doc/src/worldtimeclockbuilder.qdoc index 2c0445d7e..721d59e91 100644 --- a/examples/designer/doc/src/worldtimeclockbuilder.qdoc +++ b/examples/designer/doc/src/worldtimeclockbuilder.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \example designer/worldtimeclockbuilder + \example worldtimeclockbuilder \title World Time Clock Builder Example \brief The World Time Clock Builder example shows how forms created with Qt @@ -36,17 +36,17 @@ \image worldtimeclockbuilder-example.png This example uses a form containing the custom widget plugin described in the - \l{designer/worldtimeclockplugin}{World Time Clock Plugin} example, and + \l{worldtimeclockplugin}{World Time Clock Plugin} example, and dynamically generates a user interface using the QUiLoader class, part of the QtUiTools module. \section1 Preparation - As with the \l{designer/calculatorbuilder}{Calculator Builder} example, the + As with the \l{calculatorbuilder}{Calculator Builder} example, the project file for this example needs to include the appropriate definitions to ensure that it is built against the required Qt modules. - \snippet designer/worldtimeclockbuilder/worldtimeclockbuilder.pro 0 + \snippet worldtimeclockbuilder/worldtimeclockbuilder.pro 0 By appending \c form to the \c CONFIG declaration, we instruct \c qmake to generate a dependency on the \c libQtUiTools library containing the QtUiTools @@ -56,7 +56,7 @@ be processed and built into the application. The resource file contains an entry for the particular form that we wish to use: - \quotefile designer/worldtimeclockbuilder/worldtimeclockbuilder.qrc + \quotefile worldtimeclockbuilder/worldtimeclockbuilder.qrc Forms do not need to be included with the application in this way. We only include a form in the application's resources for convenience, and to keep @@ -70,12 +70,12 @@ required to write an application, we must include the appropriate header file: - \snippet designer/worldtimeclockbuilder/main.cpp 0 + \snippet worldtimeclockbuilder/main.cpp 0 The main function initializes the resource system with the Q_INIT_RESOURCE() macro and constructs an QApplication instance in the usual way: - \snippet designer/worldtimeclockbuilder/main.cpp 1 + \snippet worldtimeclockbuilder/main.cpp 1 We construct a QUiLoader object to handle the form we want to use. @@ -83,12 +83,12 @@ defined in the resource file. We use the form loader to load and construct the form: - \snippet designer/worldtimeclockbuilder/main.cpp 2 + \snippet worldtimeclockbuilder/main.cpp 2 Once the form has been loaded, the resource file can be closed and the widget is shown. - \snippet designer/worldtimeclockbuilder/main.cpp 3 + \snippet worldtimeclockbuilder/main.cpp 3 The form loader ensures that all the signal and slot connections between objects in the form are set up correctly when the form is loaded. As a |