summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_plugins-howto.qdoc
diff options
context:
space:
mode:
authorEckhart Koppen <eckhart.koppen@nokia.com>2011-04-05 09:05:24 (GMT)
committerEckhart Koppen <eckhart.koppen@nokia.com>2011-04-05 09:05:24 (GMT)
commitc20dbae2860d1ec681be50f161792c6aede08b1b (patch)
treead0082d3fb710ffd20d4c1745f312c1a702b5a16 /doc/src/snippets/code/doc_src_plugins-howto.qdoc
parent9c365ff16abec339c3930444dc1722a419f07dad (diff)
parentc3e903409b96fede96cb4a7b95ba308663c88879 (diff)
downloadQt-c20dbae2860d1ec681be50f161792c6aede08b1b.zip
Qt-c20dbae2860d1ec681be50f161792c6aede08b1b.tar.gz
Qt-c20dbae2860d1ec681be50f161792c6aede08b1b.tar.bz2
Merge remote-tracking branch 'qt-master/master'
Conflicts: src/s60installs/bwins/QtOpenVGu.def
Diffstat (limited to 'doc/src/snippets/code/doc_src_plugins-howto.qdoc')
-rw-r--r--doc/src/snippets/code/doc_src_plugins-howto.qdoc63
1 files changed, 0 insertions, 63 deletions
diff --git a/doc/src/snippets/code/doc_src_plugins-howto.qdoc b/doc/src/snippets/code/doc_src_plugins-howto.qdoc
index e80faee..b03dfed 100644
--- a/doc/src/snippets/code/doc_src_plugins-howto.qdoc
+++ b/doc/src/snippets/code/doc_src_plugins-howto.qdoc
@@ -38,69 +38,6 @@
**
****************************************************************************/
-//! [0]
-class MyStylePlugin : public QStylePlugin
-{
-public:
- QStringList keys() const;
- QStyle *create(const QString &key);
-};
-//! [0]
-
-
-//! [1]
-#include "mystyleplugin.h"
-
-QStringList MyStylePlugin::keys() const
-{
- return QStringList() << "MyStyle";
-}
-
-QStyle *MyStylePlugin::create(const QString &key)
-{
- if (key.toLower() == "mystyle")
- return new MyStyle;
- return 0;
-}
-
-Q_EXPORT_PLUGIN2(pnp_mystyleplugin, MyStylePlugin)
-//! [1]
-
-
-//! [2]
-QApplication::setStyle(QStyleFactory::create("MyStyle"));
-//! [2]
-
-
-//! [3]
-CONFIG += release
-//! [3]
-
-
-//! [4]
-#include <QApplication>
-#include <QtPlugin>
-
-Q_IMPORT_PLUGIN(qjpeg)
-Q_IMPORT_PLUGIN(qgif)
-Q_IMPORT_PLUGIN(qkrcodecs)
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
- ...
- return app.exec();
-}
-//! [4]
-
-
-//! [5]
-QTPLUGIN += qjpeg \
- qgif \
- qkrcodecs
-//! [5]
-
-
//! [6]
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.2.debug
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.2.false