summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2012-12-11 13:55:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-11 14:43:04 +0100
commitbe2b7a7743549bfdab53229cec2c1c0651b5183c (patch)
tree06368cf6e1f7e53c3afccdecaa20d41815bfd558 /examples
parentb64dcbaa01c6ae9f7fc50245fc51a2cafc09d505 (diff)
QtTools: Doc: Fixing links in designer and assistant.
Change-Id: I98ff1c2dd615cbe3a79f19bada8964082ce8f21f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/designer/containerextension/multipagewidgetplugin.h2
-rw-r--r--examples/designer/doc/src/containerextension.qdoc2
-rw-r--r--examples/designer/doc/src/taskmenuextension.qdoc2
-rw-r--r--examples/designer/taskmenuextension/tictactoeplugin.h2
4 files changed, 6 insertions, 2 deletions
diff --git a/examples/designer/containerextension/multipagewidgetplugin.h b/examples/designer/containerextension/multipagewidgetplugin.h
index abcfe8e57..077361966 100644
--- a/examples/designer/containerextension/multipagewidgetplugin.h
+++ b/examples/designer/containerextension/multipagewidgetplugin.h
@@ -52,7 +52,9 @@ QT_END_NAMESPACE
class MultiPageWidgetPlugin: public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+//! [1]
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidget" FILE "multipagewidget.json")
+//! [1]
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
MultiPageWidgetPlugin(QObject *parent = 0);
diff --git a/examples/designer/doc/src/containerextension.qdoc b/examples/designer/doc/src/containerextension.qdoc
index 07231a624..093993a5f 100644
--- a/examples/designer/doc/src/containerextension.qdoc
+++ b/examples/designer/doc/src/containerextension.qdoc
@@ -344,7 +344,7 @@
page; any inital pages of a multi-page widget must be specified
within this function.
- \snippet containerextension/multipagewidgetplugin.cpp 14
+ \snippet containerextension/multipagewidgetplugin.h 1
Remember to use the Q_PLUGIN_METADATA() macro to export the
MultiPageWidgetPlugin class for use with Qt's plugin handling
diff --git a/examples/designer/doc/src/taskmenuextension.qdoc b/examples/designer/doc/src/taskmenuextension.qdoc
index 7712486be..ee80bad9f 100644
--- a/examples/designer/doc/src/taskmenuextension.qdoc
+++ b/examples/designer/doc/src/taskmenuextension.qdoc
@@ -252,7 +252,7 @@
default settings for the widget in the standard XML format used by
Qt Designer), since no default values are necessary.
- \snippet taskmenuextension/tictactoeplugin.cpp 4
+ \snippet taskmenuextension/tictactoeplugin.h 1
Finally, we use the Q_PLUGIN_METADATA() macro to export the
TicTacToePlugin class for use with Qt's plugin handling classes:
diff --git a/examples/designer/taskmenuextension/tictactoeplugin.h b/examples/designer/taskmenuextension/tictactoeplugin.h
index 70f7552f0..cfbb75482 100644
--- a/examples/designer/taskmenuextension/tictactoeplugin.h
+++ b/examples/designer/taskmenuextension/tictactoeplugin.h
@@ -52,7 +52,9 @@ QT_END_NAMESPACE
class TicTacToePlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
+//! [1]
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "tictactoe.json")
+//! [1]
Q_INTERFACES(QDesignerCustomWidgetInterface)
public: