summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2009-03-24 21:39:41 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-24 21:39:41 (GMT)
commit1e4402497124f7e2c51793a58f03c2b98512f256 (patch)
treeae8661247b40f4bdfd7958c5535abf0de3fe4f75 /doc
parent4710365249f35556d27e49b56be7fb4a667a096a (diff)
parentdb3c3ca5d4b746bedbc129b647a700df94562192 (diff)
downloadQt-1e4402497124f7e2c51793a58f03c2b98512f256.zip
Qt-1e4402497124f7e2c51793a58f03c2b98512f256.tar.gz
Qt-1e4402497124f7e2c51793a58f03c2b98512f256.tar.bz2
Merge branch '4.5' of git@scm.dev.troll.no:qt/qt
Diffstat (limited to 'doc')
-rw-r--r--doc/src/designer-manual.qdoc64
-rw-r--r--doc/src/tutorials/widgets-tutorial.qdoc27
2 files changed, 5 insertions, 86 deletions
diff --git a/doc/src/designer-manual.qdoc b/doc/src/designer-manual.qdoc
index 0521063..97713b1 100644
--- a/doc/src/designer-manual.qdoc
+++ b/doc/src/designer-manual.qdoc
@@ -2609,71 +2609,9 @@ pixmap property in the property editor.
This library would then be used by the application as well as by the
\QD plugin. Care must be taken to ensure that the plugin can locate
- the library at runtime.
+ the library at run-time.
\endlist
-
-
-\omit
- \section1 Using Qt Script to Aid in Building Forms
-
- Starting with Qt 4.3, \c .ui files may contain
- \l{QtScript}{Qt Script} snippets that are executed by \l uic or QUiLoader
- when building forms.
-
- The snippets are executed per widget. The snippet may modify properties
- or invoke slots on the widget.
-
- Special variables are used to access the widget:
-
- \table
- \header
- \o Name
- \o Value
- \row \o \c widget
- \o The widget being built.
- \row \o \c childWidgets
- \o An array containing the child widgets. This is useful
- for QDesignerContainerExtension subclasses.
- \endtable
-
- If scripts are present in an \c {uic}-generated form, the application
- must be configured with Qt Script support.
-
- \snippet doc/src/snippets/code/doc_src_designer-manual.qdoc 5
-
- For security reasons, the execution of scripts is disabled
- by default in QUiLoader. You can enable it by
- calling the QUiLoader::setScriptingEnabled() method.
-
- The resulting script snippet is concatenated from snippets occurring in
- several places:
-
- \table
- \header
- \o Source
- \o Usage
- \row \o The \c codeTemplate() function of QDesignerCustomWidgetInterface
- \o Allows snippets to be run on a per-class basis; for example, to set up a
- container using the QDesignerContainerExtension.
- \row \o The \c script() method of QDesignerScriptExtension
- \o Allows snippets to be run on a per-widget basis; for example,
- to set up the internal state of a custom widget.
-
- Such an internal state might be, for example, the contents of
- a custom item view container widget, for which an editor
- is provided by an QDesignerTaskMenuExtension object.
-
- \row \o Snippets entered at run-time using the \gui{Change script...}
- option of the form's context menu
- \o Fast prototyping. To get an idea,
- drag a QLineEdit onto the form, enter the script
- \snippet doc/src/snippets/code/doc_src_designer-manual.qdoc 6
- and preview the form.
- \endtable
-\endomit
-
-
\section1 Related Examples
For more information on using custom widgets in \QD, refer to the
diff --git a/doc/src/tutorials/widgets-tutorial.qdoc b/doc/src/tutorials/widgets-tutorial.qdoc
index ce977f3..ead44af 100644
--- a/doc/src/tutorials/widgets-tutorial.qdoc
+++ b/doc/src/tutorials/widgets-tutorial.qdoc
@@ -80,7 +80,7 @@
\raw HTML
<table align="left" width="100%">
- <tr><td>
+ <tr class="qt-code"><td>
\endraw
\snippet snippets/widgets-tutorial/toplevel/main.cpp create, resize and show
\raw HTML
@@ -98,7 +98,7 @@
\raw HTML
<table align="left" width="100%">
- <tr><td>
+ <tr class="qt-code"><td>
\endraw
\snippet snippets/widgets-tutorial/childwidget/main.cpp create, position and show
\raw HTML
@@ -123,7 +123,7 @@
\raw HTML
<table align="left" width="100%">
- <tr><td>
+ <tr class="qt-code"><td>
\endraw
\snippet snippets/widgets-tutorial/windowlayout/main.cpp create, lay out widgets and show
\raw HTML
@@ -157,7 +157,7 @@
\raw HTML
<table align="left" width="100%">
- <tr><td>
+ <tr class="qt-code"><td>
\endraw
\snippet snippets/widgets-tutorial/nestedlayouts/main.cpp create, lay out widgets and show
\raw HTML
@@ -171,23 +171,4 @@
As well as QHBoxLayout and QVBoxLayout, Qt also provides QGridLayout
and QFormLayout classes to help with more complex user interfaces.
-
-
-
- \omit
- In the simple example below, the widget is created on the stack and will
- automatically be deleted when the \c{main()} function exits.
-
- {{{#include <QtGui>
-
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- QWidget window;
- window.resize(480, 360);
- window.show();
- return app.exec();
- }
- }}}
- \endomit
*/