summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-02-28 15:40:57 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-03-01 15:52:11 -0300
commitf804d842974b7ddb05fd967cfbc329aebe7da44b (patch)
tree66b008c9871105077e3aa2bc2b2a614d6ab579c0
parent361c887da0875c29d9d7a8c7cf3abc257400e687 (diff)
downloadpyside-f804d842974b7ddb05fd967cfbc329aebe7da44b.tar.gz
pyside-f804d842974b7ddb05fd967cfbc329aebe7da44b.tar.xz
pyside-f804d842974b7ddb05fd967cfbc329aebe7da44b.zip
Removed unused doc snippet files.
-rw-r--r--doc/codesnippets/doc/src/snippets/brush/brush.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/brushstyles/brushstyles.pro12
-rw-r--r--doc/codesnippets/doc/src/snippets/buffer/buffer.pro14
-rw-r--r--doc/codesnippets/doc/src/snippets/clipboard/clipboard.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_activeqt_container_qaxbase.cpp159
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qvariant.cpp99
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_qdbus_qdbusargument.cpp151
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_qt3support_sql_q3sqlcursor.cpp100
-rw-r--r--doc/codesnippets/doc/src/snippets/coordsys/coordsys.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/customstyle/customstyle.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/designer/autoconnection/autoconnection.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/designer/designer.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/designer/imagedialog/imagedialog.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/designer/multipleinheritance/multipleinheritance.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/designer/noautoconnection/noautoconnection.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/designer/singleinheritance/singleinheritance.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/dialogs/dialogs.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/draganddrop/draganddrop.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/dragging/dragging.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/dropactions/dropactions.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/dropevents/dropevents.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/droprectangle/droprectangle.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/eventfilters/eventfilters.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/events/events.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/explicitlysharedemployee/explicitlysharedemployee.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/file/file.pro14
-rw-r--r--doc/codesnippets/doc/src/snippets/fileinfo/fileinfo.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/i18n-non-qt-class/i18n-non-qt-class.pro7
-rw-r--r--doc/codesnippets/doc/src/snippets/image/image.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/inherited-slot/inherited-slot.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/itemselection/itemselection.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/itemselection/model.cpp239
-rw-r--r--doc/codesnippets/doc/src/snippets/layouts/layouts.pro12
-rw-r--r--doc/codesnippets/doc/src/snippets/matrix/matrix.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/moc/moc.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/painterpath/painterpath.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/persistentindexes/model.cpp169
-rw-r--r--doc/codesnippets/doc/src/snippets/persistentindexes/persistentindexes.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/picture/picture.pro12
-rw-r--r--doc/codesnippets/doc/src/snippets/plaintextlayout/plaintextlayout.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/polygon/polygon.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/porting4-dropevents/porting4-dropevents.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/printing-qprinter/printing-qprinter.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/process/process.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qcalendarwidget/qcalendarwidget.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qcolumnview/qcolumnview.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.cpp67
-rw-r--r--doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qdebug/qdebug.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qdir-filepaths/qdir-filepaths.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qdir-listfiles/qdir-listfiles.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qdir-namefilters/qdir-namefilters.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qelapsedtimer/qelapsedtimer.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qfontdatabase/qfontdatabase.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qgl-namespace/qgl-namespace.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qlabel/qlabel.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qlineargradient/qlineargradient.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qlistview-dnd/qlistview-dnd.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/qlistview-using/model.cpp175
-rw-r--r--doc/codesnippets/doc/src/snippets/qlistview-using/qlistview-using.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/qlistwidget-dnd/qlistwidget-dnd.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qlistwidget-using/qlistwidget-using.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qmacnativewidget/qmacnativewidget.pro8
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/comments.pro10
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/configscopes.pro23
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/debug_and_release.pro14
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/dereferencing.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/destdir.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/dirname.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/environment.pro9
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/functions.pro34
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/include.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/other.pro0
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/project_location.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/qtconfiguration.pro19
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/quoting.pro8
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/replace.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/replacefunction.pro46
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/scopes.pro42
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/shared_or_static.pro8
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/specifications.pro7
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/testfunction.pro20
-rw-r--r--doc/codesnippets/doc/src/snippets/qmake/variables.pro7
-rw-r--r--doc/codesnippets/doc/src/snippets/qmetaobject-invokable/qmetaobject-invokable.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qprocess-environment/qprocess-environment.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qprocess/qprocess.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qsignalmapper/qsignalmapper.pro10
-rw-r--r--doc/codesnippets/doc/src/snippets/qsortfilterproxymodel-details/qsortfilterproxymodel-details.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qsortfilterproxymodel/qsortfilterproxymodel.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qsplashscreen/qsplashscreen.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/qsql-namespace/qsql-namespace.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qstack/qstack.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstackedlayout/qstackedlayout.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstackedwidget/qstackedwidget.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstandarditemmodel/qstandarditemmodel.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstatustipevent/qstatustipevent.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstring/main.cpp917
-rw-r--r--doc/codesnippets/doc/src/snippets/qstring/qstring.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstringlist/main.cpp155
-rw-r--r--doc/codesnippets/doc/src/snippets/qstringlist/qstringlist.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstringlistmodel/qstringlistmodel.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstyleoption/qstyleoption.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qstyleplugin/qstyleplugin.pro11
-rw-r--r--doc/codesnippets/doc/src/snippets/qsvgwidget/qsvgwidget.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qt-namespace/qt-namespace.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qtablewidget-dnd/qtablewidget-dnd.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/qtablewidget-resizing/qtablewidget-resizing.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qtablewidget-using/qtablewidget-using.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/qtcast/qtcast.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qtest-namespace/qtest-namespace.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp147
-rw-r--r--doc/codesnippets/doc/src/snippets/qtreeview-dnd/qtreeview-dnd.pro9
-rw-r--r--doc/codesnippets/doc/src/snippets/qtreewidget-using/qtreewidget-using.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qtreewidgetitemiterator-using/qtreewidgetitemiterator-using.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qtscript/evaluation/evaluation.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qtscript/registeringobjects/registeringobjects.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/qtscript/registeringvalues/registeringvalues.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/qtscript/scriptedslot/scriptedslot.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/quiloader/quiloader.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/qxmlstreamwriter/qxmlstreamwriter.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/reading-selections/model.cpp239
-rw-r--r--doc/codesnippets/doc/src/snippets/reading-selections/reading-selections.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/scribe-overview/scribe-overview.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/separations/separations.pro7
-rw-r--r--doc/codesnippets/doc/src/snippets/shareddirmodel/shareddirmodel.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/sharedemployee/sharedemployee.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/sharedtablemodel/model.cpp237
-rw-r--r--doc/codesnippets/doc/src/snippets/sharedtablemodel/sharedtablemodel.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/signalmapper/signalmapper.pro12
-rw-r--r--doc/codesnippets/doc/src/snippets/simplemodel-use/simplemodel-use.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/snippets.pro109
-rw-r--r--doc/codesnippets/doc/src/snippets/splitter/splitter.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/splitterhandle/splitterhandle.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/streaming/streaming.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/stringlistmodel/stringlistmodel.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/textblock-formats/textblock-formats.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/textblock-fragments/textblock-fragments.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-blocks/textdocument-blocks.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-charformats/textdocument-charformats.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-css/textdocument-css.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-cursors/textdocument-cursors.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-find/textdocument-find.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-frames/textdocument-frames.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-imagedrop/textdocument-imagedrop.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-imageformat/textdocument-imageformat.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-images/textdocument-images.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-listitems/textdocument-listitems.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-lists/textdocument-lists.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-printing/textdocument-printing.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-selections/textdocument-selections.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/textdocument-tables/textdocument-tables.pro6
-rw-r--r--doc/codesnippets/doc/src/snippets/timeline/timeline.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/timers/timers.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/transform/transform.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/uitools/calculatorform/calculatorform.pro5
-rw-r--r--doc/codesnippets/doc/src/snippets/updating-selections/model.cpp237
-rw-r--r--doc/codesnippets/doc/src/snippets/updating-selections/updating-selections.pro2
-rw-r--r--doc/codesnippets/doc/src/snippets/whatsthis/whatsthis.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/widget-mask/widget-mask.pro3
-rw-r--r--doc/codesnippets/doc/src/snippets/widgets-tutorial/childwidget/childwidget.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/widgets-tutorial/nestedlayouts/nestedlayouts.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/widgets-tutorial/toplevel/toplevel.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/widgets-tutorial/windowlayout/windowlayout.pro1
-rw-r--r--doc/codesnippets/doc/src/snippets/xml/prettyprint/main.cpp144
-rw-r--r--doc/codesnippets/doc/src/snippets/xml/prettyprint/prettyprint.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/xml/simpleparse/simpleparse.pro4
-rw-r--r--doc/codesnippets/doc/src/snippets/xml/xml.pro8
-rw-r--r--doc/codesnippets/examples/dialogs/licensewizard/licensewizard.pro10
-rw-r--r--doc/codesnippets/examples/dialogs/trivialwizard/trivialwizard.pro7
-rw-r--r--doc/codesnippets/snippets/textdocument-resources/textdocument-resources.pro1
174 files changed, 0 insertions, 4182 deletions
diff --git a/doc/codesnippets/doc/src/snippets/brush/brush.pro b/doc/codesnippets/doc/src/snippets/brush/brush.pro
deleted file mode 100644
index 6a5f0da..0000000
--- a/doc/codesnippets/doc/src/snippets/brush/brush.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += brush.cpp
diff --git a/doc/codesnippets/doc/src/snippets/brushstyles/brushstyles.pro b/doc/codesnippets/doc/src/snippets/brushstyles/brushstyles.pro
deleted file mode 100644
index 80de531..0000000
--- a/doc/codesnippets/doc/src/snippets/brushstyles/brushstyles.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Wed Dec 14 11:46:57 2005
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-HEADERS += renderarea.h stylewidget.h
-SOURCES += main.cpp renderarea.cpp stylewidget.cpp
diff --git a/doc/codesnippets/doc/src/snippets/buffer/buffer.pro b/doc/codesnippets/doc/src/snippets/buffer/buffer.pro
deleted file mode 100644
index 87eab9f..0000000
--- a/doc/codesnippets/doc/src/snippets/buffer/buffer.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-######################################################################
-# Automatically generated by qmake (1.08a) Tue Jan 4 13:19:41 2005
-######################################################################
-
-TEMPLATE = app
-CONFIG -= moc
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += buffer.cpp
-CONFIG += qt warn_on debug create_prl link_prl
-OBJECTS_DIR=.obj/debug-shared
-MOC_DIR=.moc/debug-shared
diff --git a/doc/codesnippets/doc/src/snippets/clipboard/clipboard.pro b/doc/codesnippets/doc/src/snippets/clipboard/clipboard.pro
deleted file mode 100644
index a26fea6..0000000
--- a/doc/codesnippets/doc/src/snippets/clipboard/clipboard.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = clipwindow.h
-SOURCES = clipwindow.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/code/src_activeqt_container_qaxbase.cpp b/doc/codesnippets/doc/src/snippets/code/src_activeqt_container_qaxbase.cpp
deleted file mode 100644
index 94b0da8..0000000
--- a/doc/codesnippets/doc/src/snippets/code/src_activeqt_container_qaxbase.cpp
+++ /dev/null
@@ -1,159 +0,0 @@
-//! [0]
-connect(buttonBack, SIGNAL(clicked()), webBrowser, SLOT(GoBack()));
-//! [0]
-
-
-//! [1]
-activeX->setProperty("text", "some text");
-int value = activeX->property("value");
-//! [1]
-
-
-//! [2]
-webBrowser->dynamicCall("GoHome()");
-//! [2]
-
-
-//! [3]
-connect(webBrowser, SIGNAL(TitleChanged(QString)),
- this, SLOT(setCaption(QString)));
-//! [3]
-
-
-//! [4]
-dispinterface IControl
-{
-properties:
- [id(1)] BSTR text;
- [id(2)] IFontDisp *font;
-
-methods:
- [id(6)] void showColumn([in] int i);
- [id(3)] bool addColumn([in] BSTR t);
- [id(4)] int fillList([in, out] SAFEARRAY(VARIANT) *list);
- [id(5)] IDispatch *item([in] int i);
-};
-//! [4]
-
-
-//! [5]
-QAxObject object("<CLSID>");
-
-QString text = object.property("text").toString();
-object.setProperty("font", QFont("Times New Roman", 12));
-
-connect(this, SIGNAL(clicked(int)), &object, SLOT(showColumn(int)));
-bool ok = object.dynamicCall("addColumn(const QString&)", "Column 1").toBool();
-
-QList<QVariant> varlist;
-QList<QVariant> parameters;
-parameters << QVariant(varlist);
-int n = object.dynamicCall("fillList(QList<QVariant>&)", parameters).toInt();
-
-QAxObject *item = object.querySubItem("item(int)", 5);
-//! [5]
-
-
-//! [6]
-IUnknown *iface = 0;
-activeX->queryInterface(IID_IUnknown, (void**)&iface);
-if (iface) {
- // use the interface
- iface->Release();
-}
-//! [6]
-
-
-//! [7]
-ctrl->setControl("{8E27C92B-1264-101C-8A2F-040224009C02}");
-//! [7]
-
-
-//! [8]
-ctrl->setControl("MSCal.Calendar");
-//! [8]
-
-
-//! [9]
-ctrl->setControl("Calendar Control 9.0");
-//! [9]
-
-
-//! [10]
-ctrl->setControl("c:/files/file.doc");
-//! [10]
-
-
-//! [11]
-<domain/username>:<password>@server/{8E27C92B-1264-101C-8A2F-040224009C02}
-//! [11]
-
-
-//! [12]
-{8E27C92B-1264-101C-8A2F-040224009C02}:<LicenseKey>
-//! [12]
-
-
-//! [13]
-{8E27C92B-1264-101C-8A2F-040224009C02}&
-//! [13]
-
-
-//! [14]
-ctrl->setControl("DOMAIN/user:password@server/{8E27C92B-1264-101C-8A2F-040224009C02}:LicenseKey");
-//! [14]
-
-
-//! [15]
-activeX->dynamicCall("Navigate(const QString&)", "qtsoftware.com");
-//! [15]
-
-
-//! [16]
-activeX->dynamicCall("Navigate(\"qtsoftware.com\")");
-//! [16]
-
-
-//! [17]
-activeX->dynamicCall("Value", 5);
-QString text = activeX->dynamicCall("Text").toString();
-//! [17]
-
-
-//! [18]
-IWebBrowser2 *webBrowser = 0;
-activeX->queryInterface(IID_IWebBrowser2, (void **)&webBrowser);
-if (webBrowser) {
- webBrowser->Navigate2(pvarURL);
- webBrowser->Release();
-}
-//! [18]
-
-
-//! [19]
-QAxWidget outlook("Outlook.Application");
-QAxObject *session = outlook.querySubObject("Session");
-if (session) {
- QAxObject *defFolder = session->querySubObject(
- "GetDefaultFolder(OlDefaultFolders)",
- "olFolderContacts");
- //...
-}
-//! [19]
-
-
-//! [20]
-void Receiver::slot(const QString &name, int argc, void *argv)
-{
- VARIANTARG *params = (VARIANTARG*)argv;
- if (name.startsWith("BeforeNavigate2(")) {
- IDispatch *pDisp = params[argc-1].pdispVal;
- VARIANTARG URL = *params[argc-2].pvarVal;
- VARIANTARG Flags = *params[argc-3].pvarVal;
- VARIANTARG TargetFrameName = *params[argc-4].pvarVal;
- VARIANTARG PostData = *params[argc-5].pvarVal;
- VARIANTARG Headers = *params[argc-6].pvarVal;
- bool *Cancel = params[argc-7].pboolVal;
- }
-}
-//! [20]
diff --git a/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qvariant.cpp b/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qvariant.cpp
deleted file mode 100644
index d03b83e..0000000
--- a/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qvariant.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-//! [0]
-out = QDataStream(...)
-v = QVariant(123) // The variant now contains an int
-x = v.toInt() // x = 123
-out << v // Writes a type tag and an int to out
-v = QVariant("hello") // The variant now contains a QByteArray
-v = QVariant(tr("hello")) // The variant now contains a QString
-y = v.toInt() // y = 0 since v cannot be converted to an int
-s = v.toString() // s = tr("hello") (see QObject::tr())
-out << v // Writes a type tag and a QString to out
-...
-in = QDataStream(...) // (opening the previously written stream)
-in >> v // Reads an Int variant
-z = v.toInt() // z = 123
-print ("Type is %s", a v.typeName()) // prints "Type is int"
-v = v.toInt() + 100 // The variant now hold the value 223
-v = QVariant(QStringList())
-//! [0]
-
-
-//! [1]
-x = QVariant()
-y = QVariant(QString())
-z = QVariant(QString(""))
-x.convert(QVariant.Int)
-// x.isNull() == true
-// y.isNull() == true, z.isNull() == false
-// y.isEmpty() == true, z.isEmpty() == true
-//! [1]
-
-
-//! [2]
-variant = QVariant(some_qcolor)
-...
-color = QColor(variant)
-//! [2]
-
-
-//! [3]
-color = palette().background().color()
-variant = QVariant(color)
-//! [3]
-
-
-//! [4]
-v = QVariant()
-
-v.setValue(5) // Not supported by PySide
-int i = v.toInt() // i is now 5
-QString s = v.toString() // s is now "5"
-
-MyCustomStruct c
-v.setValue(c)
-
-...
-
-MyCustomStruct c2 = v.value<MyCustomStruct>()
-//! [4]
-
-
-//! [5]
-QVariant v
-
-MyCustomStruct c // canConvert not supported by PySide
-if (v.canConvert<MyCustomStruct>())
- c = v.value<MyCustomStruct>(v)
-
-v = 7
-int i = v.value<int>() // same as v.toInt()
-QString s = v.value<QString>() // same as v.toString(), s is now "7"
-MyCustomStruct c2 = v.value<MyCustomStruct>() // conversion failed, c2 is empty
-//! [5]
-
-
-//! [6]
-QVariant v = 42
-
-// canConvert not supported by PySide
-v.canConvert<int>() // returns true
-v.canConvert<QString>() // returns true
-
-MyCustomStruct s
-v.setValue(s)
-
-v.canConvert<int>() // returns false
-v.canConvert<MyCustomStruct>() // returns true
-//! [6]
-
-
-//! [7]
-MyCustomStruct s // fromValue not supported by PySide
-return QVariant::fromValue(s)
-//! [7]
-
-
-//! [8]
-QObject *object = getObjectFromSomewhere()
-QVariant data = qVariantFromValue(object) // not supported by PySide.
-//! [8]
diff --git a/doc/codesnippets/doc/src/snippets/code/src_qdbus_qdbusargument.cpp b/doc/codesnippets/doc/src/snippets/code/src_qdbus_qdbusargument.cpp
deleted file mode 100644
index efd54ac..0000000
--- a/doc/codesnippets/doc/src/snippets/code/src_qdbus_qdbusargument.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-//! [0]
-struct MyStructure
-{
- int count;
- QString name;
-};
-Q_DECLARE_METATYPE(MyStructure)
-
-// Marshall the MyStructure data into a D-Bus argument
-QDBusArgument &operator<<(QDBusArgument &argument, const MyStructure &mystruct)
-{
- argument.beginStructure();
- argument << mystruct.count << mystruct.name;
- argument.endStructure();
- return argument;
-}
-
-// Retrieve the MyStructure data from the D-Bus argument
-const QDBusArgument &operator>>(const QDBusArgument &argument, MyStructure &mystruct)
-{
- argument.beginStructure();
- argument >> mystruct.count >> mystruct.name;
- argument.endStructure();
- return argument;
-}
-//! [0]
-
-
-//! [1]
-qDBusRegisterMetaType<MyStructure>();
-//! [1]
-
-
-//! [2]
-MyType item = qdbus_cast<Type>(argument);
-//! [2]
-
-
-//! [3]
-MyType item;
-argument >> item;
-//! [3]
-
-
-//! [4]
-QDBusArgument &operator<<(QDBusArgument &argument, const MyStructure &mystruct)
-{
- argument.beginStructure();
- argument << mystruct.member1 << mystruct.member2 << ... ;
- argument.endStructure();
- return argument;
-}
-//! [4]
-
-
-//! [5]
-QDBusArgument &operator<<(QDBusArgument &argument, const MyStructure &mystruct)
-{
- argument.beginStructure();
- argument << mystruct.member1 << mystruct.member2;
-
- argument.beginStructure();
- argument << mystruct.member3.subMember1 << mystruct.member3.subMember2;
- argument.endStructure();
-
- argument << mystruct.member4;
- argument.endStructure();
- return argument;
-}
-//! [5]
-
-
-//! [6]
-// append an array of MyElement types
-QDBusArgument &operator<<(QDBusArgument &argument, const MyArray &myarray)
-{
- argument.beginArray( qMetaTypeId<MyElement>() );
- for ( int i = 0; i < myarray.length; ++i )
- argument << myarray.elements[i];
- argument.endArray();
- return argument;
-}
-//! [6]
-
-
-//! [7]
-// append a dictionary that associates ints to MyValue types
-QDBusArgument &operator<<(QDBusArgument &argument, const MyDictionary &mydict)
-{
- argument.beginMap( QVariant::Int, qMetaTypeId<MyValue>() );
- for ( int i = 0; i < mydict.length; ++i ) {
- argument.beginMapEntry();
- argument << mydict.data[i].key << mydict.data[i].value;
- argument.endMapEntry();
- }
- argument.endMap();
- return argument;
-}
-//! [7]
-
-
-//! [8]
-const QDBusArgument &operator>>(const QDBusArgument &argument, MyStructure &mystruct)
-{
- argument.beginStructure()
- argument >> mystruct.member1 >> mystruct.member2 >> mystruct.member3 >> ...;
- argument.endStructure();
- return argument;
-}
-//! [8]
-
-
-//! [9]
-// extract a MyArray array of MyElement elements
-const QDBusArgument &operator>>(const QDBusArgument &argument, MyArray &myarray)
-{
- argument.beginArray();
- myarray.clear();
-
- while ( !argument.atEnd() ) {
- MyElement element;
- argument >> element;
- myarray.append( element );
- }
-
- argument.endArray();
- return argument;
-}
-//! [9]
-
-
-//! [10]
-// extract a MyDictionary map that associates ints to MyValue elements
-const QDBusArgument &operator>>(const QDBusArgument &argument, MyDictionary &mydict)
-{
- argument.beginMap();
- mydict.clear();
-
- while ( !argMap.atEnd() ) {
- int key;
- MyValue value;
- argument.beginMapEntry();
- argument >> key >> value;
- argument.endMapEntry();
- mydict.append( key, value );
- }
-
- argument.endMap();
- return argument;
-}
-//! [10]
diff --git a/doc/codesnippets/doc/src/snippets/code/src_qt3support_sql_q3sqlcursor.cpp b/doc/codesnippets/doc/src/snippets/code/src_qt3support_sql_q3sqlcursor.cpp
deleted file mode 100644
index b3b643d..0000000
--- a/doc/codesnippets/doc/src/snippets/code/src_qt3support_sql_q3sqlcursor.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-//! [0]
-Q3SqlCursor cur( "staff" ); // Specify the table/view name
-cur.select(); // We'll retrieve every record
-while ( cur.next() ) {
- qDebug( cur.value( "id" ).toString() + ": " +
- cur.value( "surname" ).toString() + ' ' +
- cur.value( "salary" ).toString() );
-}
-//! [0]
-
-
-//! [1]
-Q3SqlCursor cur( "prices" );
-cur.select( "id=202" );
-if ( cur.next() ) {
- QSqlRecord *buffer = cur.primeUpdate();
- double price = buffer->value( "price" ).toDouble();
- double newprice = price * 1.05;
- buffer->setValue( "price", newprice );
- cur.update();
-}
-//! [1]
-
-
-//! [2]
-Q3SqlCursor cur("Employee"); // Use the Employee table or view
-cur.select("deptno=10"); // select all records in department 10
-while(cur.next()) {
- ... // process data
-}
-...
-// select records in other departments, ordered by department number
-cur.select("deptno>10", cur.index("deptno"));
-...
-//! [2]
-
-
-//! [3]
-Q3SqlCursor cur("Employee");
-cur.select("deptno=10"); // select all records in department 10
-while(cur.next()) {
- ... // process data
-}
-...
-cur.select(); // re-selects all records in department 10
-...
-//! [3]
-
-
-//! [4]
-Q3SqlCursor cur("Employee");
-QSqlIndex pk = cur.primaryIndex();
-cur.setValue("id", 10);
-cur.select(pk, pk); // generates "SELECT ... FROM Employee WHERE id=10 ORDER BY id"
-...
-//! [4]
-
-
-//! [5]
-Q3SqlCursor cur("Employee");
-cur.setMode(Q3SqlCursor::Writable); // allow insert/update/delete
-...
-cur.setMode(Q3SqlCursor::Insert | Q3SqlCursor::Update); // allow inserts and updates only
-...
-cur.setMode(Q3SqlCursor::ReadOnly); // no inserts/updates/deletes allowed
-
-//! [5]
-
-
-//! [6]
-Q3SqlCursor cur("prices");
-QSqlRecord *buffer = cur.primeInsert();
-buffer->setValue("id", 53981);
-buffer->setValue("name", "Thingy");
-buffer->setValue("price", 105.75);
-cur.insert();
-//! [6]
-
-
-//! [7]
-Q3SqlCursor cur("prices");
-cur.select("id=202");
-if (cur.next()) {
- QSqlRecord *buffer = cur.primeUpdate();
- double price = buffer->value("price").toDouble();
- double newprice = price * 1.05;
- buffer->setValue("price", newprice);
- cur.update();
-}
-//! [7]
-
-
-//! [8]
-Q3SqlCursor cur("prices");
-cur.select("id=999");
-if (cur.next()) {
- cur.primeDelete();
- cur.del();
-}
-//! [8]
diff --git a/doc/codesnippets/doc/src/snippets/coordsys/coordsys.pro b/doc/codesnippets/doc/src/snippets/coordsys/coordsys.pro
deleted file mode 100644
index b6aac7c..0000000
--- a/doc/codesnippets/doc/src/snippets/coordsys/coordsys.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += coordsys.cpp
diff --git a/doc/codesnippets/doc/src/snippets/customstyle/customstyle.pro b/doc/codesnippets/doc/src/snippets/customstyle/customstyle.pro
deleted file mode 100644
index af0ee4e..0000000
--- a/doc/codesnippets/doc/src/snippets/customstyle/customstyle.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS += customstyle.h
-SOURCES += customstyle.cpp main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/designer/autoconnection/autoconnection.pro b/doc/codesnippets/doc/src/snippets/designer/autoconnection/autoconnection.pro
deleted file mode 100644
index fba94de..0000000
--- a/doc/codesnippets/doc/src/snippets/designer/autoconnection/autoconnection.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-TEMPLATE = app
-FORMS = imagedialog.ui
-HEADERS = imagedialog.h
-SOURCES = imagedialog.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/designer/designer.pro b/doc/codesnippets/doc/src/snippets/designer/designer.pro
deleted file mode 100644
index 1445ca5..0000000
--- a/doc/codesnippets/doc/src/snippets/designer/designer.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS = autoconnection \
- imagedialog \
- multipleinheritance \
- noautoconnection \
- singleinheritance
diff --git a/doc/codesnippets/doc/src/snippets/designer/imagedialog/imagedialog.pro b/doc/codesnippets/doc/src/snippets/designer/imagedialog/imagedialog.pro
deleted file mode 100644
index 164a7b2..0000000
--- a/doc/codesnippets/doc/src/snippets/designer/imagedialog/imagedialog.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-TEMPLATE = app
-FORMS = imagedialog.ui
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/designer/multipleinheritance/multipleinheritance.pro b/doc/codesnippets/doc/src/snippets/designer/multipleinheritance/multipleinheritance.pro
deleted file mode 100644
index fba94de..0000000
--- a/doc/codesnippets/doc/src/snippets/designer/multipleinheritance/multipleinheritance.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-TEMPLATE = app
-FORMS = imagedialog.ui
-HEADERS = imagedialog.h
-SOURCES = imagedialog.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/designer/noautoconnection/noautoconnection.pro b/doc/codesnippets/doc/src/snippets/designer/noautoconnection/noautoconnection.pro
deleted file mode 100644
index fba94de..0000000
--- a/doc/codesnippets/doc/src/snippets/designer/noautoconnection/noautoconnection.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-TEMPLATE = app
-FORMS = imagedialog.ui
-HEADERS = imagedialog.h
-SOURCES = imagedialog.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/designer/singleinheritance/singleinheritance.pro b/doc/codesnippets/doc/src/snippets/designer/singleinheritance/singleinheritance.pro
deleted file mode 100644
index fba94de..0000000
--- a/doc/codesnippets/doc/src/snippets/designer/singleinheritance/singleinheritance.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-TEMPLATE = app
-FORMS = imagedialog.ui
-HEADERS = imagedialog.h
-SOURCES = imagedialog.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/dialogs/dialogs.pro b/doc/codesnippets/doc/src/snippets/dialogs/dialogs.pro
deleted file mode 100644
index fd5d363..0000000
--- a/doc/codesnippets/doc/src/snippets/dialogs/dialogs.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += dialogs.cpp
diff --git a/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.pro b/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.pro
deleted file mode 100644
index 11d80f3..0000000
--- a/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-HEADERS = mainwindow.h
-RESOURCES = dockwidgets.qrc
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/draganddrop/draganddrop.pro b/doc/codesnippets/doc/src/snippets/draganddrop/draganddrop.pro
deleted file mode 100644
index 67bc32b..0000000
--- a/doc/codesnippets/doc/src/snippets/draganddrop/draganddrop.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-HEADERS = dragwidget.h \
- mainwindow.h
-SOURCES = dragwidget.cpp \
- main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/dragging/dragging.pro b/doc/codesnippets/doc/src/snippets/dragging/dragging.pro
deleted file mode 100644
index bedfc76..0000000
--- a/doc/codesnippets/doc/src/snippets/dragging/dragging.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-HEADERS = mainwindow.h
-RESOURCES = images.qrc
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/dropactions/dropactions.pro b/doc/codesnippets/doc/src/snippets/dropactions/dropactions.pro
deleted file mode 100644
index 6283406..0000000
--- a/doc/codesnippets/doc/src/snippets/dropactions/dropactions.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = window.h
-SOURCES = main.cpp \
- window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/dropevents/dropevents.pro b/doc/codesnippets/doc/src/snippets/dropevents/dropevents.pro
deleted file mode 100644
index 6283406..0000000
--- a/doc/codesnippets/doc/src/snippets/dropevents/dropevents.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = window.h
-SOURCES = main.cpp \
- window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/droprectangle/droprectangle.pro b/doc/codesnippets/doc/src/snippets/droprectangle/droprectangle.pro
deleted file mode 100644
index 6283406..0000000
--- a/doc/codesnippets/doc/src/snippets/droprectangle/droprectangle.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = window.h
-SOURCES = main.cpp \
- window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/eventfilters/eventfilters.pro b/doc/codesnippets/doc/src/snippets/eventfilters/eventfilters.pro
deleted file mode 100644
index b569a33..0000000
--- a/doc/codesnippets/doc/src/snippets/eventfilters/eventfilters.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = filterobject.h
-SOURCES = filterobject.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/events/events.pro b/doc/codesnippets/doc/src/snippets/events/events.pro
deleted file mode 100644
index 9c40874..0000000
--- a/doc/codesnippets/doc/src/snippets/events/events.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += events.cpp
diff --git a/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/explicitlysharedemployee.pro b/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/explicitlysharedemployee.pro
deleted file mode 100644
index 536a77d..0000000
--- a/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/explicitlysharedemployee.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = employee.h
-SOURCES = employee.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/file/file.pro b/doc/codesnippets/doc/src/snippets/file/file.pro
deleted file mode 100644
index bda6a94..0000000
--- a/doc/codesnippets/doc/src/snippets/file/file.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-######################################################################
-# Automatically generated by qmake (1.08a) Tue Jan 4 17:11:37 2005
-######################################################################
-
-TEMPLATE = app
-CONFIG -= moc
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += file.cpp
-CONFIG += qt warn_on debug create_prl link_prl
-OBJECTS_DIR=.obj/debug-shared
-MOC_DIR=.moc/debug-shared
diff --git a/doc/codesnippets/doc/src/snippets/fileinfo/fileinfo.pro b/doc/codesnippets/doc/src/snippets/fileinfo/fileinfo.pro
deleted file mode 100644
index 2705d1f..0000000
--- a/doc/codesnippets/doc/src/snippets/fileinfo/fileinfo.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Thu Apr 3 11:48:36 2008
-######################################################################
-
-TEMPLATE = app
-TARGET =
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/i18n-non-qt-class.pro b/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/i18n-non-qt-class.pro
deleted file mode 100644
index 9abd1e8..0000000
--- a/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/i18n-non-qt-class.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-HEADERS = myclass.h
-RESOURCES = resources.qrc
-SOURCES = main.cpp \
- myclass.cpp
-TRANSLATIONS = translations/i18n-non-qt-class_en.ts \
- translations/i18n-non-qt-class_fr.ts
-QT -= gui
diff --git a/doc/codesnippets/doc/src/snippets/image/image.pro b/doc/codesnippets/doc/src/snippets/image/image.pro
deleted file mode 100644
index 0df436a..0000000
--- a/doc/codesnippets/doc/src/snippets/image/image.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += image.cpp
diff --git a/doc/codesnippets/doc/src/snippets/inherited-slot/inherited-slot.pro b/doc/codesnippets/doc/src/snippets/inherited-slot/inherited-slot.pro
deleted file mode 100644
index 702e9cc..0000000
--- a/doc/codesnippets/doc/src/snippets/inherited-slot/inherited-slot.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = button.h
-SOURCES = main.cpp \
- button.cpp
diff --git a/doc/codesnippets/doc/src/snippets/itemselection/itemselection.pro b/doc/codesnippets/doc/src/snippets/itemselection/itemselection.pro
deleted file mode 100644
index b1126bf..0000000
--- a/doc/codesnippets/doc/src/snippets/itemselection/itemselection.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = model.h
-SOURCES = main.cpp \
- model.cpp
diff --git a/doc/codesnippets/doc/src/snippets/itemselection/model.cpp b/doc/codesnippets/doc/src/snippets/itemselection/model.cpp
deleted file mode 100644
index e759c5a..0000000
--- a/doc/codesnippets/doc/src/snippets/itemselection/model.cpp
+++ /dev/null
@@ -1,239 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*
- model.cpp
-
- Provides a table model for use in various examples.
-*/
-
-#include <QtGui>
-
-#include "model.h"
-
-/*!
- Constructs a table model with at least one row and one column.
-*/
-
-TableModel::TableModel(int rows, int columns, QObject *parent)
- : QAbstractTableModel(parent)
-{
- QStringList newList;
-
- for (int column = 0; column < qMax(1, columns); ++column) {
- newList.append("");
- }
-
- for (int row = 0; row < qMax(1, rows); ++row) {
- rowList.append(newList);
- }
-}
-
-
-/*!
- Returns the number of items in the row list as the number of rows
- in the model.
-*/
-
-int TableModel::rowCount(const QModelIndex &/*parent*/) const
-{
- return rowList.size();
-}
-
-/*!
- Returns the number of items in the first list item as the number of
- columns in the model. All rows should have the same number of columns.
-*/
-
-int TableModel::columnCount(const QModelIndex &/*parent*/) const
-{
- return rowList[0].size();
-}
-
-/*!
- Returns an appropriate value for the requested data.
- If the view requests an invalid index, an invalid variant is returned.
- Any valid index that corresponds to a string in the list causes that
- string to be returned for the display role; otherwise an invalid variant
- is returned.
-*/
-
-QVariant TableModel::data(const QModelIndex &index, int role) const
-{
- if (!index.isValid())
- return QVariant();
-
- if (role == Qt::DisplayRole)
- return rowList[index.row()][index.column()];
- else
- return QVariant();
-}
-
-/*!
- Returns the appropriate header string depending on the orientation of
- the header and the section. If anything other than the display role is
- requested, we return an invalid variant.
-*/
-
-QVariant TableModel::headerData(int section, Qt::Orientation orientation,
- int role) const
-{
- if (role != Qt::DisplayRole)
- return QVariant();
-
- if (orientation == Qt::Horizontal)
- return QString("Column %1").arg(section);
- else
- return QString("Row %1").arg(section);
-}
-
-/*!
- Returns an appropriate value for the item's flags. Valid items are
- enabled, selectable, and editable.
-*/
-
-Qt::ItemFlags TableModel::flags(const QModelIndex &index) const
-{
- if (!index.isValid())
- return Qt::ItemIsEnabled;
-
- return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;
-}
-
-/*!
- Changes an item in the model, but only if the following conditions
- are met:
-
- * The index supplied is valid.
- * The role associated with editing text is specified.
-
- The dataChanged() signal is emitted if the item is changed.
-*/
-
-bool TableModel::setData(const QModelIndex &index,
- const QVariant &value, int role)
-{
- if (!index.isValid() || role != Qt::EditRole)
- return false;
-
- rowList[index.row()][index.column()] = value.toString();
- emit dataChanged(index, index);
- return true;
-}
-
-/*!
- Inserts a number of rows into the model at the specified position.
-*/
-
-bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)
-{
- int columns = columnCount();
- beginInsertRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- QStringList items;
- for (int column = 0; column < columns; ++column)
- items.append("");
- rowList.insert(position, items);
- }
-
- endInsertRows();
- return true;
-}
-
-/*!
- Inserts a number of columns into the model at the specified position.
- Each entry in the list is extended in turn with the required number of
- empty strings.
-*/
-
-bool TableModel::insertColumns(int position, int columns,
- const QModelIndex &parent)
-{
- int rows = rowCount();
- beginInsertColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = position; column < columns; ++column) {
- rowList[row].insert(position, "");
- }
- }
-
- endInsertColumns();
- return true;
-}
-
-/*!
- Removes a number of rows from the model at the specified position.
-*/
-
-bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)
-{
- beginRemoveRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- rowList.removeAt(position);
- }
-
- endRemoveRows();
- return true;
-}
-
-/*!
- Removes a number of columns from the model at the specified position.
- Each row is shortened by the number of columns specified.
-*/
-
-bool TableModel::removeColumns(int position, int columns,
- const QModelIndex &parent)
-{
- int rows = rowCount();
- beginRemoveColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = 0; column < columns; ++column) {
- rowList[row].removeAt(position);
- }
- }
-
- endRemoveColumns();
- return true;
-}
diff --git a/doc/codesnippets/doc/src/snippets/layouts/layouts.pro b/doc/codesnippets/doc/src/snippets/layouts/layouts.pro
deleted file mode 100644
index 79dd54c..0000000
--- a/doc/codesnippets/doc/src/snippets/layouts/layouts.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Wed May 4 15:30:40 2005
-######################################################################
-
-TEMPLATE = app
-INCLUDEPATH += .
-
-# Input
-SOURCES += layouts.cpp
-CONFIG += qt warn_on debug create_prl link_prl
-OBJECTS_DIR=.obj/debug-shared
-MOC_DIR=.moc/debug-shared
diff --git a/doc/codesnippets/doc/src/snippets/matrix/matrix.pro b/doc/codesnippets/doc/src/snippets/matrix/matrix.pro
deleted file mode 100644
index 91c307d..0000000
--- a/doc/codesnippets/doc/src/snippets/matrix/matrix.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Fri Jan 6 16:44:56 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += matrix.cpp
diff --git a/doc/codesnippets/doc/src/snippets/moc/moc.pro b/doc/codesnippets/doc/src/snippets/moc/moc.pro
deleted file mode 100644
index f199abe..0000000
--- a/doc/codesnippets/doc/src/snippets/moc/moc.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS += myclass1.h myclass2.h myclass3.h
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/painterpath/painterpath.pro b/doc/codesnippets/doc/src/snippets/painterpath/painterpath.pro
deleted file mode 100644
index 0a6ad46..0000000
--- a/doc/codesnippets/doc/src/snippets/painterpath/painterpath.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += painterpath.cpp
diff --git a/doc/codesnippets/doc/src/snippets/persistentindexes/model.cpp b/doc/codesnippets/doc/src/snippets/persistentindexes/model.cpp
deleted file mode 100644
index a60c095..0000000
--- a/doc/codesnippets/doc/src/snippets/persistentindexes/model.cpp
+++ /dev/null
@@ -1,169 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*
- model.cpp
-
- A simple model that uses a QStringList as its data source.
-*/
-
-#include <qdebug.h>
-
-#include "model.h"
-
-/*!
- Returns the number of items in the string list as the number of rows
- in the model.
-*/
-
-int StringListModel::rowCount(const QModelIndex &parent) const
-{
- return stringList.count();
-}
-
-/*!
- Returns an appropriate value for the requested data.
- If the view requests an invalid index, an invalid variant is returned.
- If a header is requested then we just return the column or row number,
- depending on the orientation of the header.
- Any valid index that corresponds to a string in the list causes that
- string to be returned.
-*/
-
-QVariant StringListModel::data(const QModelIndex &index, int role) const
-{
- if (!index.isValid())
- return QVariant();
-
- if (index.row() < 0 || index.row() >= stringList.size())
- return QVariant();
-
- if (role == Qt::DisplayRole)
- return stringList.at(index.row());
- else
- return QVariant();
-}
-
-/*!
- Returns the appropriate header string depending on the orientation of
- the header and the section. If anything other than the display role is
- requested, we return an invalid variant.
-*/
-
-QVariant StringListModel::headerData(int section, Qt::Orientation orientation,
- int role) const
-{
- if (role != Qt::DisplayRole)
- return QVariant();
-
- if (orientation == Qt::Horizontal)
- return QString("Column %1").arg(section);
- else
- return QString("Row %1").arg(section);
-}
-
-/*!
- Returns an appropriate value for the item's flags. Valid items are
- enabled, selectable, and editable.
-*/
-
-Qt::ItemFlags StringListModel::flags(const QModelIndex &index) const
-{
- if (!index.isValid())
- return Qt::ItemIsEnabled;
-
- return QAbstractItemModel::flags(index) | Qt::ItemIsEditable;
-}
-
-/*!
- Changes an item in the string list, but only if the following conditions
- are met:
-
- * The index supplied is valid.
- * The index corresponds to an item to be shown in a view.
- * The role associated with editing text is specified.
-
- The dataChanged() signal is emitted if the item is changed.
-*/
-
-bool StringListModel::setData(const QModelIndex &index,
- const QVariant &value, int role)
-{
- if (index.isValid() && role == Qt::EditRole) {
-
- stringList.replace(index.row(), value.toString());
- emit dataChanged(index, index);
- return true;
- }
- return false;
-}
-
-/*!
- Inserts a number of rows into the model at the specified position.
-*/
-
-bool StringListModel::insertRows(int position, int rows, const QModelIndex &parent)
-{
- beginInsertRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- stringList.insert(position, "");
- }
-
- endInsertRows();
- return true;
-}
-
-/*!
- Removes a number of rows from the model at the specified position.
-*/
-
-bool StringListModel::removeRows(int position, int rows, const QModelIndex &parent)
-{
- beginRemoveRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- stringList.removeAt(position);
- }
-
- endRemoveRows();
- return true;
-}
diff --git a/doc/codesnippets/doc/src/snippets/persistentindexes/persistentindexes.pro b/doc/codesnippets/doc/src/snippets/persistentindexes/persistentindexes.pro
deleted file mode 100644
index aaf41bd..0000000
--- a/doc/codesnippets/doc/src/snippets/persistentindexes/persistentindexes.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-HEADERS = mainwindow.h \
- model.h
-SOURCES = main.cpp \
- mainwindow.cpp \
- model.cpp
diff --git a/doc/codesnippets/doc/src/snippets/picture/picture.pro b/doc/codesnippets/doc/src/snippets/picture/picture.pro
deleted file mode 100644
index b46019f..0000000
--- a/doc/codesnippets/doc/src/snippets/picture/picture.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Sun Jun 26 15:25:59 2005
-######################################################################
-
-TEMPLATE = app
-INCLUDEPATH += .
-
-# Input
-SOURCES += picture.cpp
-OBJECTS_DIR=.obj/debug-shared
-MOC_DIR=.moc/debug-shared
-CONFIG += qt warn_on debug create_prl link_prl
diff --git a/doc/codesnippets/doc/src/snippets/plaintextlayout/plaintextlayout.pro b/doc/codesnippets/doc/src/snippets/plaintextlayout/plaintextlayout.pro
deleted file mode 100644
index 6283406..0000000
--- a/doc/codesnippets/doc/src/snippets/plaintextlayout/plaintextlayout.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = window.h
-SOURCES = main.cpp \
- window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/polygon/polygon.pro b/doc/codesnippets/doc/src/snippets/polygon/polygon.pro
deleted file mode 100644
index 39841a5..0000000
--- a/doc/codesnippets/doc/src/snippets/polygon/polygon.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += polygon.cpp
diff --git a/doc/codesnippets/doc/src/snippets/porting4-dropevents/porting4-dropevents.pro b/doc/codesnippets/doc/src/snippets/porting4-dropevents/porting4-dropevents.pro
deleted file mode 100644
index 6283406..0000000
--- a/doc/codesnippets/doc/src/snippets/porting4-dropevents/porting4-dropevents.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = window.h
-SOURCES = main.cpp \
- window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/printing-qprinter/printing-qprinter.pro b/doc/codesnippets/doc/src/snippets/printing-qprinter/printing-qprinter.pro
deleted file mode 100644
index c50fc19..0000000
--- a/doc/codesnippets/doc/src/snippets/printing-qprinter/printing-qprinter.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp \
- object.cpp
-HEADERS = object.h
diff --git a/doc/codesnippets/doc/src/snippets/process/process.pro b/doc/codesnippets/doc/src/snippets/process/process.pro
deleted file mode 100644
index f96847d..0000000
--- a/doc/codesnippets/doc/src/snippets/process/process.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += process.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qcalendarwidget/qcalendarwidget.pro b/doc/codesnippets/doc/src/snippets/qcalendarwidget/qcalendarwidget.pro
deleted file mode 100644
index 88c5e24..0000000
--- a/doc/codesnippets/doc/src/snippets/qcalendarwidget/qcalendarwidget.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qcolumnview/qcolumnview.pro b/doc/codesnippets/doc/src/snippets/qcolumnview/qcolumnview.pro
deleted file mode 100644
index 5254077..0000000
--- a/doc/codesnippets/doc/src/snippets/qcolumnview/qcolumnview.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp \ No newline at end of file
diff --git a/doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.cpp b/doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.cpp
deleted file mode 100644
index 6f13707..0000000
--- a/doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore>
-#include <QtDBus>
-
-static QVariant callMyDBusFunction() { return QVariant(); }
-
-int main()
-{
- QDBusMessage myDBusMessage;
-
-//! [0]
- QList<QVariant> arguments;
- arguments << QVariant(42) << QVariant::fromValue(QDBusVariant(43)) << QVariant("hello");
- myDBusMessage.setArguments(arguments);
-//! [0]
-
-//! [1]
- // call a D-Bus function that returns a D-Bus variant
- QVariant v = callMyDBusFunction();
- // retrieve the D-Bus variant
- QDBusVariant dbusVariant = qvariant_cast<QDBusVariant>(v);
- // retrieve the actual value stored in the D-Bus variant
- QVariant result = dbusVariant.variant();
-//! [1]
-
- return 0;
-}
diff --git a/doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.pro b/doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.pro
deleted file mode 100644
index e31e8d9..0000000
--- a/doc/codesnippets/doc/src/snippets/qdbusextratypes/qdbusextratypes.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES += qdbusextratypes.cpp
-QT = core dbus
diff --git a/doc/codesnippets/doc/src/snippets/qdebug/qdebug.pro b/doc/codesnippets/doc/src/snippets/qdebug/qdebug.pro
deleted file mode 100644
index e62a71c..0000000
--- a/doc/codesnippets/doc/src/snippets/qdebug/qdebug.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = qdebugsnippet.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qdir-filepaths/qdir-filepaths.pro b/doc/codesnippets/doc/src/snippets/qdir-filepaths/qdir-filepaths.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qdir-filepaths/qdir-filepaths.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qdir-listfiles/qdir-listfiles.pro b/doc/codesnippets/doc/src/snippets/qdir-listfiles/qdir-listfiles.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qdir-listfiles/qdir-listfiles.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qdir-namefilters/qdir-namefilters.pro b/doc/codesnippets/doc/src/snippets/qdir-namefilters/qdir-namefilters.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qdir-namefilters/qdir-namefilters.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qelapsedtimer/qelapsedtimer.pro b/doc/codesnippets/doc/src/snippets/qelapsedtimer/qelapsedtimer.pro
deleted file mode 100644
index b0a8f66..0000000
--- a/doc/codesnippets/doc/src/snippets/qelapsedtimer/qelapsedtimer.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-QT -= gui
diff --git a/doc/codesnippets/doc/src/snippets/qfontdatabase/qfontdatabase.pro b/doc/codesnippets/doc/src/snippets/qfontdatabase/qfontdatabase.pro
deleted file mode 100644
index ce12e3b..0000000
--- a/doc/codesnippets/doc/src/snippets/qfontdatabase/qfontdatabase.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qgl-namespace/qgl-namespace.pro b/doc/codesnippets/doc/src/snippets/qgl-namespace/qgl-namespace.pro
deleted file mode 100644
index 9be6edc..0000000
--- a/doc/codesnippets/doc/src/snippets/qgl-namespace/qgl-namespace.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-QT += opengl
diff --git a/doc/codesnippets/doc/src/snippets/qlabel/qlabel.pro b/doc/codesnippets/doc/src/snippets/qlabel/qlabel.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qlabel/qlabel.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qlineargradient/qlineargradient.pro b/doc/codesnippets/doc/src/snippets/qlineargradient/qlineargradient.pro
deleted file mode 100644
index 48c7d9e..0000000
--- a/doc/codesnippets/doc/src/snippets/qlineargradient/qlineargradient.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = paintwidget.h
-SOURCES = main.cpp \
- paintwidget.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qlistview-dnd/qlistview-dnd.pro b/doc/codesnippets/doc/src/snippets/qlistview-dnd/qlistview-dnd.pro
deleted file mode 100644
index 71fa273..0000000
--- a/doc/codesnippets/doc/src/snippets/qlistview-dnd/qlistview-dnd.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp \
- model.cpp
-HEADERS = mainwindow.h \
- model.h
diff --git a/doc/codesnippets/doc/src/snippets/qlistview-using/model.cpp b/doc/codesnippets/doc/src/snippets/qlistview-using/model.cpp
deleted file mode 100644
index 7344b51..0000000
--- a/doc/codesnippets/doc/src/snippets/qlistview-using/model.cpp
+++ /dev/null
@@ -1,175 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of an example program for Qt.
-** EDITIONS: NOLIMITS
-**
-****************************************************************************/
-
-/*
- model.cpp
-
- A simple model that uses a QStringList as its data source.
-*/
-
-#include "model.h"
-
-/*!
- Returns the number of items in the string list as the number of rows
- in the model.
-*/
-
-int StringListModel::rowCount(const QModelIndex &parent) const
-{
- return stringList.count();
-}
-
-/*!
- Returns an appropriate value for the requested data.
- If the view requests an invalid index, an invalid variant is returned.
- Any valid index that corresponds to a string in the list causes that
- string to be returned.
-*/
-
-QVariant StringListModel::data(const QModelIndex &index, int role) const
-{
- if (!index.isValid())
- return QVariant();
-
- if (index.row() >= stringList.size())
- return QVariant();
-
- if (role == Qt::DisplayRole)
- return stringList.at(index.row());
- else
- return QVariant();
-}
-
-/*!
- Returns the appropriate header string depending on the orientation of
- the header and the section. If anything other than the display role is
- requested, we return an invalid variant.
-*/
-
-QVariant StringListModel::headerData(int section, Qt::Orientation orientation,
- int role) const
-{
- if (role != Qt::DisplayRole)
- return QVariant();
-
- if (orientation == Qt::Horizontal)
- return QString("Column %1").arg(section);
- else
- return QString("Row %1").arg(section);
-}
-
-/*!
- Returns an appropriate value for the item's flags. Valid items are
- enabled, selectable, and editable.
-*/
-
-Qt::ItemFlags StringListModel::flags(const QModelIndex &index) const
-{
- if (!index.isValid())
- return Qt::ItemIsEnabled;
-
- return QAbstractItemModel::flags(index) | Qt::ItemIsEditable;
-}
-
-/*!
- Changes an item in the string list, but only if the following conditions
- are met:
-
- * The index supplied is valid.
- * The index corresponds to an item to be shown in a view.
- * The role associated with editing text is specified.
-
- The dataChanged() signal is emitted if the item is changed.
-*/
-
-bool StringListModel::setData(const QModelIndex &index,
- const QVariant &value, int role)
-{
- if (index.isValid() && role == Qt::EditRole) {
-
- stringList.replace(index.row(), value.toString());
- emit dataChanged(index, index);
- return true;
- }
- return false;
-}
-
-/*!
- Inserts a number of rows into the model at the specified position.
-*/
-
-bool StringListModel::insertRows(int position, int rows, const QModelIndex &parent)
-{
- beginInsertRows(QModelIndex(), position, position+rows-1);
-
- for (int row = 0; row < rows; ++row) {
- stringList.insert(position, "");
- }
-
- endInsertRows();
- return true;
-}
-
-/*!
- Removes a number of rows from the model at the specified position.
-*/
-
-bool StringListModel::removeRows(int position, int rows, const QModelIndex &parent)
-{
- beginRemoveRows(QModelIndex(), position, position+rows-1);
-
- for (int row = 0; row < rows; ++row) {
- stringList.removeAt(position);
- }
-
- endRemoveRows();
- return true;
-}
diff --git a/doc/codesnippets/doc/src/snippets/qlistview-using/qlistview-using.pro b/doc/codesnippets/doc/src/snippets/qlistview-using/qlistview-using.pro
deleted file mode 100644
index 71fa273..0000000
--- a/doc/codesnippets/doc/src/snippets/qlistview-using/qlistview-using.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp \
- model.cpp
-HEADERS = mainwindow.h \
- model.h
diff --git a/doc/codesnippets/doc/src/snippets/qlistwidget-dnd/qlistwidget-dnd.pro b/doc/codesnippets/doc/src/snippets/qlistwidget-dnd/qlistwidget-dnd.pro
deleted file mode 100644
index 12a900a..0000000
--- a/doc/codesnippets/doc/src/snippets/qlistwidget-dnd/qlistwidget-dnd.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
diff --git a/doc/codesnippets/doc/src/snippets/qlistwidget-using/qlistwidget-using.pro b/doc/codesnippets/doc/src/snippets/qlistwidget-using/qlistwidget-using.pro
deleted file mode 100644
index 12a900a..0000000
--- a/doc/codesnippets/doc/src/snippets/qlistwidget-using/qlistwidget-using.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
diff --git a/doc/codesnippets/doc/src/snippets/qmacnativewidget/qmacnativewidget.pro b/doc/codesnippets/doc/src/snippets/qmacnativewidget/qmacnativewidget.pro
deleted file mode 100644
index 15176e1..0000000
--- a/doc/codesnippets/doc/src/snippets/qmacnativewidget/qmacnativewidget.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Thu Sep 4 15:50:09 2008
-######################################################################
-
-CONFIG+=x86_64
-
-OBJECTIVE_SOURCES += main.mm
-LIBS += -framework Cocoa -framework Carbon
diff --git a/doc/codesnippets/doc/src/snippets/qmake/comments.pro b/doc/codesnippets/doc/src/snippets/qmake/comments.pro
deleted file mode 100644
index 189d271..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/comments.pro
+++ /dev/null
@@ -1,10 +0,0 @@
-#! [0]
-# Comments usually start at the beginning of a line, but they
-# can also follow other content on the same line.
-#! [0]
-
-#! [1]
-# To include a literal hash character, use the $$LITERAL_HASH variable:
-urlPieces = http://doc.trolltech.com/4.0/qtextdocument.html pageCount
-message($$join(urlPieces, $$LITERAL_HASH))
-#! [1]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/configscopes.pro b/doc/codesnippets/doc/src/snippets/qmake/configscopes.pro
deleted file mode 100644
index 6ab7f7c..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/configscopes.pro
+++ /dev/null
@@ -1,23 +0,0 @@
-SOURCES = main.cpp
-#! [0]
-CONFIG += opengl
-#! [0]
-
-#! [1]
-opengl {
- TARGET = application-gl
-} else {
-#! [1] #! [2]
- TARGET = application
-#! [2] #! [3]
-}
-#! [3]
-
-#! [4]
-CONFIG(opengl) {
- message(Building with OpenGL support.)
-} else {
-#! [4] #! [5]
- message(OpenGL support is not available.)
-}
-#! [5]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/debug_and_release.pro b/doc/codesnippets/doc/src/snippets/qmake/debug_and_release.pro
deleted file mode 100644
index 92e8dbf..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/debug_and_release.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-#! [0]
-CONFIG += debug_and_release
-
-CONFIG(debug, debug|release) {
- TARGET = debug_binary
-} else {
-#! [0] #! [1]
- TARGET = release_binary
-}
-#! [1]
-
-#! [2]
-CONFIG += build_all
-#! [2]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/dereferencing.pro b/doc/codesnippets/doc/src/snippets/qmake/dereferencing.pro
deleted file mode 100644
index ff0c979..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/dereferencing.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-#! [0]
-TEMP_SOURCES = $$SOURCES
-#! [0]
-# Do something with the SOURCES variable then restore its old value.
-SOURCES = $$TEMP_SOURCES
diff --git a/doc/codesnippets/doc/src/snippets/qmake/destdir.pro b/doc/codesnippets/doc/src/snippets/qmake/destdir.pro
deleted file mode 100644
index b2f9439..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/destdir.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-DESTDIR = output
diff --git a/doc/codesnippets/doc/src/snippets/qmake/dirname.pro b/doc/codesnippets/doc/src/snippets/qmake/dirname.pro
deleted file mode 100644
index 59e1f20..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/dirname.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-#! [0]
-FILE = /etc/X11R6/XF86Config
-DIRNAME = $$dirname(FILE) #/etc/X11R6
-#! [0]
-message($$FILE)
-message($$DIRNAME)
diff --git a/doc/codesnippets/doc/src/snippets/qmake/environment.pro b/doc/codesnippets/doc/src/snippets/qmake/environment.pro
deleted file mode 100644
index 808bdeb..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/environment.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-#! [0] #! [1]
-DESTDIR = $$(PWD)
-message(The project will be installed in $$DESTDIR)
-#! [0]
-
-DESTDIR = $(PWD)
-message(The project will be installed in the value of PWD)
-message(when the Makefile is processed.)
-#! [1]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/functions.pro b/doc/codesnippets/doc/src/snippets/qmake/functions.pro
deleted file mode 100644
index 2766120..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/functions.pro
+++ /dev/null
@@ -1,34 +0,0 @@
-#! [0]
-EXTRAS = handlers tests docs
-for(dir, EXTRAS) {
- exists($$dir) {
- SUBDIRS += $$dir
- }
-}
-#! [0]
-
-SOURCES = paintwidget_mac.cpp paintwidget_unix.cpp paintwidget_win.cpp
-macx {
- SOURCES = $$find(SOURCES, "_mac")
-}
-
-#! [1]
-HEADERS = model.h
-HEADERS += $$OTHER_HEADERS
-HEADERS = $$unique(HEADERS)
-#! [1]
-
-CONFIG += debug
-#! [2]
-options = $$find(CONFIG, "debug") $$find(CONFIG, "release")
-#! [3]
-count(options, 2) {
- message(Both release and debug specified.)
-}
-#! [2] #! [3]
-
-#! [4]
-eval(TARGET = myapp) {
- message($$TARGET)
-}
-#! [4]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/include.pro b/doc/codesnippets/doc/src/snippets/qmake/include.pro
deleted file mode 100644
index 37e7156..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/include.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-#! [0]
-include(other.pro)
-#! [0]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/other.pro b/doc/codesnippets/doc/src/snippets/qmake/other.pro
deleted file mode 100644
index e69de29..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/other.pro
+++ /dev/null
diff --git a/doc/codesnippets/doc/src/snippets/qmake/project_location.pro b/doc/codesnippets/doc/src/snippets/qmake/project_location.pro
deleted file mode 100644
index 09d9b3d..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/project_location.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-#! [project file]
-message($$_PRO_FILE_)
-#! [project file]
-#! [project file directory]
-message($$_PRO_FILE_PWD_)
-#! [project file directory]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/qtconfiguration.pro b/doc/codesnippets/doc/src/snippets/qmake/qtconfiguration.pro
deleted file mode 100644
index 0c854d9..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/qtconfiguration.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-# Show information about the Qt installation.
-#! [0]
-message(Qt version: $$[QT_VERSION])
-message(Qt is installed in $$[QT_INSTALL_PREFIX])
-message(Qt resources can be found in the following locations:)
-message(Documentation: $$[QT_INSTALL_DOCS])
-message(Header files: $$[QT_INSTALL_HEADERS])
-message(Libraries: $$[QT_INSTALL_LIBS])
-message(Binary files (executables): $$[QT_INSTALL_BINS])
-message(Plugins: $$[QT_INSTALL_PLUGINS])
-message(Data files: $$[QT_INSTALL_DATA])
-message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
-message(Settings: $$[QT_INSTALL_SETTINGS])
-message(Examples: $$[QT_INSTALL_EXAMPLES])
-message(Demonstrations: $$[QT_INSTALL_DEMOS])
-#! [0]
-
-# Show configuration information.
-message(CONFIG = $$CONFIG)
diff --git a/doc/codesnippets/doc/src/snippets/qmake/quoting.pro b/doc/codesnippets/doc/src/snippets/qmake/quoting.pro
deleted file mode 100644
index 62efb20..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/quoting.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-#! [0]
-DEST = "Program Files"
-#! [0]
-count(DEST, 1) {
- message(Only one item found in DEST.)
-} else {
- message(More than one item found in DEST.)
-}
diff --git a/doc/codesnippets/doc/src/snippets/qmake/replace.pro b/doc/codesnippets/doc/src/snippets/qmake/replace.pro
deleted file mode 100644
index 504e01a..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/replace.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-#! [0]
-MESSAGE = This is a tent.
-message($$replace(MESSAGE, tent, test))
-#! [0]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/replacefunction.pro b/doc/codesnippets/doc/src/snippets/qmake/replacefunction.pro
deleted file mode 100644
index 98013ba..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/replacefunction.pro
+++ /dev/null
@@ -1,46 +0,0 @@
-#! [0]
-defineReplace(headersAndSources) {
- variable = $$1
- names = $$eval($$variable)
- headers =
- sources =
-
- for(name, names) {
- header = $${name}.h
- exists($$header) {
- headers += $$header
- }
- source = $${name}.cpp
- exists($$source) {
- sources += $$source
- }
- }
- return($$headers $$sources)
-}
-#! [0]
-
-defineReplace(matchingFiles) {
- names = $$ARGS
- files =
-
- for(name, names) {
- header = $${name}.h
- source = $${name}.cpp
- exists($$header):exists($$source) {
- files += $$header
- files += $$source
- }
- }
- return($$files)
-}
-
-names = delegate model view main
-message(Finding all headers and sources from the following list of names:)
-message($$names)
-allFiles = $$headersAndSources(names)
-message(Found: $$allFiles)
-
-message(Finding only matching headers and sources from the following list of names:)
-message($$names)
-matching = $$matchingFiles($$names)
-message(Found: $$matching)
diff --git a/doc/codesnippets/doc/src/snippets/qmake/scopes.pro b/doc/codesnippets/doc/src/snippets/qmake/scopes.pro
deleted file mode 100644
index 4e59afb..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/scopes.pro
+++ /dev/null
@@ -1,42 +0,0 @@
-#! [syntax]
-<condition> {
- <command or definition>
- ...
-}
-#! [syntax]
-
-#! [0]
-win32 {
- SOURCES += paintwidget_win.cpp
-}
-#! [0]
-
-#! [1]
-!win32 {
- SOURCES -= paintwidget_win.cpp
-}
-#! [1]
-
-unix {
- SOURCES += paintwidget_unix.cpp
-}
-
-#! [2]
-macx {
- debug {
- HEADERS += debugging.h
- }
-}
-#! [2]
-
-#! [3]
-macx:debug {
- HEADERS += debugging.h
-}
-#! [3]
-
-#! [4]
-win32|macx {
- HEADERS += debugging.h
-}
-#! [4]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/shared_or_static.pro b/doc/codesnippets/doc/src/snippets/qmake/shared_or_static.pro
deleted file mode 100644
index 31c25ea..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/shared_or_static.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-TEMPLIBS = $$[QT_INSTALL_LIBS] libQtGui.prl
-include($$join(TEMPLIBS, "/"))
-
-contains(QMAKE_PRL_CONFIG, shared) {
- message(Shared Qt)
-} else {
- message(Static Qt)
-}
diff --git a/doc/codesnippets/doc/src/snippets/qmake/specifications.pro b/doc/codesnippets/doc/src/snippets/qmake/specifications.pro
deleted file mode 100644
index f9a0d0a..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/specifications.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-#! [0]
-message($$QMAKESPEC)
-
-linux-g++ {
- message(Linux)
-}
-#! [0]
diff --git a/doc/codesnippets/doc/src/snippets/qmake/testfunction.pro b/doc/codesnippets/doc/src/snippets/qmake/testfunction.pro
deleted file mode 100644
index 785ffed..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/testfunction.pro
+++ /dev/null
@@ -1,20 +0,0 @@
-#! [0]
-defineTest(allFiles) {
- files = $$ARGS
-
- for(file, files) {
- !exists($$file) {
- return(false)
- }
- }
- return(true)
-}
-#! [0]
-
-files = delegate.h model.h view.h
-
-allFiles($$files) {
- message(All files are present: $$files)
-} else {
- message(Not all files are present: $$files)
-}
diff --git a/doc/codesnippets/doc/src/snippets/qmake/variables.pro b/doc/codesnippets/doc/src/snippets/qmake/variables.pro
deleted file mode 100644
index bba5d9f..0000000
--- a/doc/codesnippets/doc/src/snippets/qmake/variables.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-#! [0]
-HEADERS = mainwindow.h paintwidget.h
-#! [0] #! [1]
-SOURCES = main.cpp mainwindow.cpp \
- paintwidget.cpp
-CONFIG += qt
-#! [1]
diff --git a/doc/codesnippets/doc/src/snippets/qmetaobject-invokable/qmetaobject-invokable.pro b/doc/codesnippets/doc/src/snippets/qmetaobject-invokable/qmetaobject-invokable.pro
deleted file mode 100644
index 4df1921..0000000
--- a/doc/codesnippets/doc/src/snippets/qmetaobject-invokable/qmetaobject-invokable.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = window.h
-SOURCES = main.cpp \
- window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qprocess-environment/qprocess-environment.pro b/doc/codesnippets/doc/src/snippets/qprocess-environment/qprocess-environment.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qprocess-environment/qprocess-environment.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qprocess/qprocess.pro b/doc/codesnippets/doc/src/snippets/qprocess/qprocess.pro
deleted file mode 100644
index 4dbc429..0000000
--- a/doc/codesnippets/doc/src/snippets/qprocess/qprocess.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Mon Mar 20 17:17:02 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += qprocess-simpleexecution.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qsignalmapper/qsignalmapper.pro b/doc/codesnippets/doc/src/snippets/qsignalmapper/qsignalmapper.pro
deleted file mode 100644
index 7c31402..0000000
--- a/doc/codesnippets/doc/src/snippets/qsignalmapper/qsignalmapper.pro
+++ /dev/null
@@ -1,10 +0,0 @@
-######################################################################
-# Automatically generated by qmake (1.08a) Wed Mar 10 15:35:05 2004
-######################################################################
-
-TEMPLATE = app
-INCLUDEPATH += .
-
-# Input
-HEADERS += buttonwidget.h mainwindow.h
-SOURCES += buttonwidget.cpp main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel-details/qsortfilterproxymodel-details.pro b/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel-details/qsortfilterproxymodel-details.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel-details/qsortfilterproxymodel-details.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel/qsortfilterproxymodel.pro b/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel/qsortfilterproxymodel.pro
deleted file mode 100644
index 16181f2..0000000
--- a/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel/qsortfilterproxymodel.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qsplashscreen/qsplashscreen.pro b/doc/codesnippets/doc/src/snippets/qsplashscreen/qsplashscreen.pro
deleted file mode 100644
index c798079..0000000
--- a/doc/codesnippets/doc/src/snippets/qsplashscreen/qsplashscreen.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-HEADERS = mainwindow.h
-RESOURCES = qsplashscreen.qrc
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qsql-namespace/qsql-namespace.pro b/doc/codesnippets/doc/src/snippets/qsql-namespace/qsql-namespace.pro
deleted file mode 100644
index e8183d3..0000000
--- a/doc/codesnippets/doc/src/snippets/qsql-namespace/qsql-namespace.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-QT += sql
diff --git a/doc/codesnippets/doc/src/snippets/qstack/qstack.pro b/doc/codesnippets/doc/src/snippets/qstack/qstack.pro
deleted file mode 100644
index 721ae4b..0000000
--- a/doc/codesnippets/doc/src/snippets/qstack/qstack.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Wed Apr 5 15:41:54 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstackedlayout/qstackedlayout.pro b/doc/codesnippets/doc/src/snippets/qstackedlayout/qstackedlayout.pro
deleted file mode 100644
index 89c757c..0000000
--- a/doc/codesnippets/doc/src/snippets/qstackedlayout/qstackedlayout.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Thu Apr 6 10:47:18 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstackedwidget/qstackedwidget.pro b/doc/codesnippets/doc/src/snippets/qstackedwidget/qstackedwidget.pro
deleted file mode 100644
index 227dd36..0000000
--- a/doc/codesnippets/doc/src/snippets/qstackedwidget/qstackedwidget.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Thu Apr 6 10:33:16 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstandarditemmodel/qstandarditemmodel.pro b/doc/codesnippets/doc/src/snippets/qstandarditemmodel/qstandarditemmodel.pro
deleted file mode 100644
index 421ee59..0000000
--- a/doc/codesnippets/doc/src/snippets/qstandarditemmodel/qstandarditemmodel.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Mon Apr 10 11:16:20 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstatustipevent/qstatustipevent.pro b/doc/codesnippets/doc/src/snippets/qstatustipevent/qstatustipevent.pro
deleted file mode 100644
index f4fe6ba..0000000
--- a/doc/codesnippets/doc/src/snippets/qstatustipevent/qstatustipevent.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Tue Apr 11 12:09:28 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstring/main.cpp b/doc/codesnippets/doc/src/snippets/qstring/main.cpp
deleted file mode 100644
index e41cf3e..0000000
--- a/doc/codesnippets/doc/src/snippets/qstring/main.cpp
+++ /dev/null
@@ -1,917 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtGui>
-#include <QApplication>
-#include <stdio.h>
-
-class Widget : public QWidget
-{
-public:
- Widget(QWidget *parent = 0)
-
- void constCharPointer()
- void constCharArray()
- void characterReference()
- void atFunction()
- void stringLiteral()
- void modify()
- void index()
- QString boolToString(bool b)
- void nullVsEmpty()
-
- void appendFunction()
- void argFunction()
- void chopFunction()
- void compareFunction()
- void compareSensitiveFunction()
- void containsFunction()
- void countFunction()
- void dataFunction()
- void endsWithFunction()
- void fillFunction()
- void fromRawDataFunction()
-
- void indexOfFunction()
- void firstIndexOfFunction()
- void insertFunction()
- void isNullFunction()
- void isEmptyFunction()
- void lastIndexOfFunction()
- void leftFunction()
- void leftJustifiedFunction()
- void leftRefFunction()
- void midFunction()
- void midRefFunction()
- void numberFunction()
-
- void prependFunction()
- void removeFunction()
- void replaceFunction()
- void reserveFunction()
- void resizeFunction()
- void rightFunction()
- void rightJustifiedFunction()
- void rightRefFunction()
- void sectionFunction()
- void setNumFunction()
- void simplifiedFunction()
-
- void sizeFunction()
- void splitFunction()
- void splitCaseSensitiveFunction()
- void sprintfFunction()
- void startsWithFunction()
- void toDoubleFunction()
- void toFloatFunction()
- void toIntFunction()
- void toLongFunction()
- void toLongLongFunction()
-
- void toLowerFunction()
- void toShortFunction()
- void toUIntFunction()
- void toULongFunction()
- void toULongLongFunction()
- void toUShortFunction()
- void toUpperFunction()
- void trimmedFunction()
- void truncateFunction()
-
- void plusEqualOperator()
- void arrayOperator()
-}
-
-Widget.Widget(QWidget *parent)
- : QWidget(parent)
-{
-}
-
-void Widget.constCharPointer()
-{
-//! [0]
- str = QString("Hello")
-//! [0]
-}
-
-void Widget.constCharArray()
-{
-//! [1]
- # NOT USED IN PYSIDE
- static const QChar data[4] = { 0x0055, 0x006e, 0x10e3, 0x03a3 }
- QString str(data, 4)
-//! [1]
-}
-
-void Widget.characterReference()
-{
-//! [2]
- str = QString()
- str.resize(2)
-
- str[0] = 'U')
- str[1] = 'n')
-//! [2]
-}
-
-void Widget.atFunction()
-{
-//! [3]
- str = QString()
-
- for i in range(str.size()):
- print str.at(i)
-//! [3]
-}
-
-void Widget.stringLiteral()
-{
-//! [4]
- str = QString()
- ...
- if str == "auto" or str == "extern" \
- or str == "static" or str == "register":
- # ...
-//! [4]
-}
-
-void Widget.modify()
-{
-//! [5]
- str = QString("and")
- str.prepend("rock ") # str == "rock and"
- str.append(" roll") # str == "rock and roll"
- str.replace(5, 3, "&") # str == "rock & roll"
-//! [5]
-}
-
-void Widget.index()
-{
-//! [6]
- str = QString("We must be <b>bold</b>, very <b>bold</b>")
- j = str.indexOf("<b>", 0)
- while j != -1:
- print "Found <b> tag at index position", j
- j = str.indexOf("<b>", j+1)
-//! [6]
-}
-
-//! [7]
- # Not needed in pyside
- QString Widget.boolToString(bool b)
- {
- QString result
- if (b)
- result = "True"
- else
- result = "False"
- return result
- }
-//! [7]
-
-
-void Widget.nullVsEmpty()
-{
-//! [8]
- QString().isNull() # returns true
- QString().isEmpty() # returns true
-
- QString("").isNull() # returns false
- QString("").isEmpty() # returns true
-
- QString("abc").isNull() # returns false
- QString("abc").isEmpty() # returns false
-//! [8]
-}
-
-void Widget.appendFunction()
-{
-//! [9]
- x = QString("free")
- y = QString("dom")
-
- x.append(y)
- # x == "freedom"
-//! [9]
-
-//! [10]
- x.insert(x.size(), y)
-//! [10]
-}
-
-void Widget.argFunction()
-{
-//! [11]
- i = QString(...) # current file's number
- total = QString(...) # number of files to process
- fileName = QString(...) # current file's name
-
- status = QString("Processing file %1 of %2: %3")
- .arg(i).arg(total).arg(fileName)
-//! [11]
-
-//! [12] //! [13]
- str QString()
-//! [12]
- str = QString("%1 %2")
-
- str.arg("%1f", "Hello") # returns "%1f Hello"
- str.arg("%1f").arg("Hello") # returns "Hellof %2"
-//! [13]
-
-//! [14]
- str = QString("Decimal 63 is %1 in hexadecimal")
- .arg(63, 0, 16)
- # str == "Decimal 63 is 3f in hexadecimal"
-
- QLocale.setDefault(QLocale(QLocale.English, QLocale.UnitedStates))
- str = QString("%1 %L2 %L3")
- .arg(12345)
- .arg(12345)
- .arg(12345, 0, 16)
- # str == "12345 12,345 3039"
-//! [14]
-}
-
-void Widget.chopFunction()
-{
-//! [15]
- str = QString("LOGOUT\r\n")
- str.chop(2)
- # str == "LOGOUT"
-//! [15]
-}
-
-void Widget.compareFunction()
-{
- x = QString.compare("auto", "auto") # x == 0
- y = QString.compare("auto", "car") # y < 0
- z = QString.compare("car", "auto") # z > 0
-}
-
-void Widget.compareSensitiveFunction()
-{
-//! [16]
- x = QString.compare("aUtO", "AuTo", Qt.CaseInsensitive); # x == 0
- y = QString.compare("auto", "Car", Qt.CaseSensitive); # y > 0
- z = QString.compare("auto", "Car", Qt.CaseInsensitive); # z < 0
-//! [16]
-}
-
-void Widget.containsFunction()
-{
-//! [17]
- str = QString("Peter Pan")
- str.contains("peter", Qt.CaseInsensitive) # returns true
-//! [17]
-}
-
-void Widget.countFunction()
-{
-//! [18]
- str = QString("banana and panama")
- str.count(QRegExp("a[nm]a")) # returns 4
-//! [18]
-}
-
-void Widget.dataFunction()
-{
-//! [19]
-// Not Needed
- str = QString"Hello world"
- QChar *data = str.data()
- while (!data->isNull()) {
- qDebug() << data->unicode()
- ++data
- }
-//! [19]
-}
-
-void Widget.endsWithFunction()
-{
-//! [20]
- str = QString("Bananas")
- str.endsWith("anas") # returns true
- str.endsWith("pple") # returns false
-//! [20]
-}
-
-void Widget.fillFunction()
-{
-//! [21]
- str = QString("Berlin")
- str.fill('z')
- # str == "zzzzzz"
-
- str.fill('A', 2)
- # str == "AA"
-//! [21]
-}
-
-void Widget.fromRawDataFunction()
-{
-//! [22]
- QRegExp pattern
- static const QChar unicode[] = {
- 0x005A, 0x007F, 0x00A4, 0x0060,
- 0x1009, 0x0020, 0x0020}
- int size = sizeof(unicode) / sizeof(QChar)
-
- QString str = QString.fromRawData(unicode, size)
- if (str.contains(QRegExp(pattern))) {
- # ...
-//! [22] //! [23]
- }
-//! [23]
-}
-
-void Widget.indexOfFunction()
-{
-//! [24]
- QString x = "sticky question"
- QString y = "sti"
- x.indexOf(y); # returns 0
- x.indexOf(y, 1); # returns 10
- x.indexOf(y, 10); # returns 10
- x.indexOf(y, 11); # returns -1
-//! [24]
-}
-
-void Widget.firstIndexOfFunction()
-{
-//! [25]
- str = QString("the minimum")
- str.indexOf(QRegExp("m[aeiou]"), 0) # returns 4
-//! [25]
-}
-
-void Widget.insertFunction()
-{
-//! [26]
- str = QString("Meal")
- str.insert(1, QString("ontr"))
- # str == "Montreal"
-//! [26]
-}
-
-void Widget.isEmptyFunction()
-{
-//! [27]
- QString().isEmpty() # returns true
- QString("").isEmpty() # returns true
- QString("x").isEmpty() # returns false
- QString("abc").isEmpty() # returns false
-//! [27]
-}
-
-void Widget.isNullFunction()
-{
-//! [28]
- QString().isNull() # returns true
- QString("").isNull() # returns false
- QString("abc").isNull() # returns false
-//! [28]
-}
-
-void Widget.lastIndexOfFunction()
-{
-//! [29]
- QString x = "crazy azimuths"
- QString y = "az"
- x.lastIndexOf(y); # returns 6
- x.lastIndexOf(y, 6); # returns 6
- x.lastIndexOf(y, 5); # returns 2
- x.lastIndexOf(y, 1); # returns -1
-//! [29]
-
-//! [30]
- str = QString("the minimum")
- str.lastIndexOf(QRegExp("m[aeiou]")) # returns 8
-//! [30]
-}
-
-void Widget.leftFunction()
-{
-//! [31]
- x = QString("Pineapple")
- y = QString(x.left(4)) # y == "Pine"
-//! [31]
-}
-
-void Widget.leftJustifiedFunction()
-{
-//! [32]
- s = QString("apple")
- t = QString(s.leftJustified(8, '.')) # t == "apple..."
-//! [32]
-
-//! [33]
- str = QString("Pineapple")
- str = str.leftJustified(5, '.', True) # str == "Pinea"
-//! [33]
-}
-
-void Widget.midFunction()
-{
-//! [34]
- x = QString("Nine pineapples")
- y = QString(x.mid(5, 4)) # y == "pine"
- z = QString(x.mid(5)) # z == "pineapples"
-//! [34]
-}
-
-void Widget.numberFunction()
-{
-//! [35]
- a = 63
- s = QString.number(a, 16) # s == "3f"
- t = QString.number(a, 16).toUpper() # t == "3F"
-//! [35]
-}
-
-void Widget.prependFunction()
-{
-//! [36]
- x = QString("ship")
- y = QString("air")
- x.prepend(y)
- # x == "airship"
-//! [36]
-}
-
-void Widget.removeFunction()
-{
-//! [37]
- s = QString("Montreal")
- s.remove(1, 4)
- # s == "Meal"
-//! [37]
-
-//! [38]
- QString t = "Ali Baba"
- t.remove(QChar('a'), Qt.CaseInsensitive)
- # t == "li Bb"
-//! [38]
-
-//! [39]
- r = QString("Telephone")
- r.remove(QRegExp("[aeiou]."))
- # r == "The"
-//! [39]
-}
-
-void Widget.replaceFunction()
-{
-//! [40]
- x = QString("Say yes!")
- y = QString("no")
- x.replace(4, 3, y)
- # x == "Say no!"
-//! [40]
-
-//! [41]
- QString str = "colour behaviour flavour neighbour"
- str.replace(QString("ou"), QString("o"))
- # str == "color behavior flavor neighbor"
-//! [41]
-
-//! [42]
- s = QString("Banana")
- s.replace(QRegExp("a[mn]"), "ox")
- # s == "Boxoxa"
-//! [42]
-
-//! [43]
- t = QString("A <i>bon mot</i>.")
- t.replace(QRegExp("<i>([^<]*)</i>"), "\\emph{\\1}")
- # t == "A \\emph{bon mot}."
-//! [43]
-
-//! [86]
- QString equis = "xxxxxx"
- equis.replace("xx", "x")
- # equis == "xxx"
-//! [86]
-}
-
-void Widget.reserveFunction()
-{
-//! [44]
- result = QString()
- maxSize = 44
-
- result.reserve(maxSize)
- while condition:
- result.append(nextChar)
-
- result.squeeze()
-//! [44]
-}
-
-void Widget.resizeFunction()
-{
-//! [45]
- s = QString("Hello world")
- s.resize(5)
- # s == "Hello"
-
- s.resize(8)
- # s == "Hello???" (where ? stands for any character)
-//! [45]
-
-//! [46]
- t = QString("Hello")
- t += QString(10, 'X')
- # t == "HelloXXXXXXXXXX"
-//! [46]
-
-//! [47]
- r = QString("Hello")
- r = r.leftJustified(10, ' ')
- # r == "Hello "
-//! [47]
-}
-
-void Widget.rightFunction()
-{
-//! [48]
- x = QString("Pineapple")
- y = x.right(5) # y == "apple"
-//! [48]
-}
-
-void Widget.rightJustifiedFunction()
-{
-//! [49]
- s = QString("apple")
- t = s.rightJustified(8, '.') # t == "...apple"
-//! [49]
-
-//! [50]
- str = QString("Pineapple")
- str = str.rightJustified(5, '.', True) # str == "Pinea"
-//! [50]
-}
-
-void Widget.sectionFunction()
-{ // NOT NEEDED
-//! [51] //! [52]
- QString str
-//! [51]
- QString csv = "forename,middlename,surname,phone"
- QString path = "/usr/local/bin/myapp"; # First field is empty
- QString.SectionFlag flag = QString.SectionSkipEmpty
-
-
- str = csv.section(',', 2, 2); # str == "surname"
- str = path.section('/', 3, 4); # str == "bin/myapp"
- str = path.section('/', 3, 3, flag); # str == "myapp"
-//! [52]
-
-//! [53]
- str = csv.section(',', -3, -2); # str == "middlename,surname"
- str = path.section('/', -1); # str == "myapp"
-//! [53]
-
-//! [54]
- QString data = "forename**middlename**surname**phone"
-
- str = data.section("**", 2, 2); # str == "surname"
- str = data.section("**", -3, -2); # str == "middlename**surname"
-//! [54]
-
-//! [55]
- QString line = "forename\tmiddlename surname \t \t phone"
- QRegExp sep("\\s+")
- str = line.section(sep, 2, 2); # s == "surname"
- str = line.section(sep, -3, -2); # s == "middlename surname"
-//! [55]
-}
-
-void Widget.setNumFunction()
-{
-//! [56]
- str = QString()
- str.setNum(1234) # str == "1234"
-//! [56]
-}
-
-void Widget.simplifiedFunction()
-{
-//! [57]
- str = QString(" lots\t of\nwhitespace\r\n ")
- str = str.simplified()
- # str == "lots of whitespace"
-//! [57]
-}
-
-void Widget.sizeFunction()
-{
-//! [58]
- str = QString("World")
- n = str.size() # n == 5
-//! [58]
-}
-
-void Widget.splitFunction()
-{
-//! [59]
- str = QString("Some text\n\twith strange whitespace.")
- list = str.split(QRegExp("\\s+")) # A QStringList
- # list: [ "Some", "text", "with", "strange", "whitespace." ]
-//! [59]
-
-//! [60]
- str = QString("This time, a normal English sentence.")
- list = str.split(QRegExp("\\W+"), QString.SkipEmptyParts)
- # list: [ "This", "time", "a", "normal", "English", "sentence" ]
-//! [60]
-
-//! [61]
- str = QString("Now: this sentence fragment.")
- list = str.split(QRegExp("\\b"))
- # list: [ "", "Now", ": ", "this", " ", "sentence", " ", "fragment", "." ]
-//! [61]
-}
-
-void Widget.splitCaseSensitiveFunction()
-{
-//! [62]
- str = QString("a,,b,c")
-
- list1 = str.split(",")
- # list1: [ "a", "", "b", "c" ]
-
- list2 = str.split(",", QString.SkipEmptyParts)
- # list2: [ "a", "b", "c" ]
-//! [62]
-}
-
-void Widget.sprintfFunction()
-{
-//! [63]
- size_t BufSize
- char buf[BufSize]
-
- .snprintf(buf, BufSize, "%lld", 123456789LL)
- QString str = QString.fromAscii(buf)
-//! [63]
-
-//! [64]
- QString result
- QTextStream(&result) << "pi = " << 3.14
- # result == "pi = 3.14"
-//! [64]
-}
-
-void Widget.startsWithFunction()
-{
-//! [65]
- QString str = "Bananas"
- str.startsWith("Ban") # returns true
- str.startsWith("Car") # returns false
-//! [65]
-}
-
-void Widget.toDoubleFunction()
-{
-//! [66]
- str = QString("1234.56")
- val = str.toDouble()[0] # val == 1234.56
-//! [66]
-
-//! [67]
- d, ok = QString( "1234.56e-02" ).toDouble() # ok == true, d == 12.3456
-//! [67]
-
-//! [68] //! [69]
- QLocale.setDefault(QLocale.C)
- d, ok = QString( "1234,56" ).toDouble() # ok == false
-//! [68]
- d, ok = QString( "1234.56" ).toDouble() # ok == true, d == 1234.56
-
-//! [69] //! [70]
- QLocale.setDefault(QLocale.German)
- d, ok = QString( "1234,56" ).toDouble() # ok == true, d == 1234.56
- d, ok = QString( "1234.56" ).toDouble() # ok == true, d == 1234.56
-
-//! [70]
- QLocale.setDefault(QLocale.C)
- d, ok = QString( "1,234,567.89" ).toDouble() # ok == false
-}
-
-void Widget.toFloatFunction()
-{
-//! [71]
- str1 = QString("1234.56")
- str1.toFloat() # returns (1234.56, True)
-
- str2 = QString("R2D2")
- str2.toFloat() # returns (0.0, False)
-//! [71]
-}
-
-void Widget.toIntFunction()
-{
-//! [72]
- str = QString("FF")
- hex, ok = str.toInt(16) # hex == 255, ok == true
- dec, ok = str.toInt(10) # dec == 0, ok == false
-//! [72]
-}
-
-void Widget.toLongFunction()
-{
-//! [73]
- str = QString("FF")
-
- hex, ok = str.toLong(16) # hex == 255, ok == true
- dec, ok = str.toLong(10) # dec == 0, ok == false
-//! [73]
-}
-
-void Widget.toLongLongFunction()
-{
-//! [74]
- str = QString("FF")
-
- hex, ok = str.toLongLong(16) # hex == 255, ok == true
- dec, ok = str.toLongLong(10) # dec == 0, ok == false
-//! [74]
-}
-
-void Widget.toLowerFunction()
-{
-//! [75]
- str = QString("TROlltECH")
- str = str.toLower() # str == "trolltech"
-//! [75]
-}
-
-void Widget.toShortFunction()
-{
-//! [76]
- str = QString("FF")
-
- hex, ok = str.toShort(16) # hex == 255, ok == true
- dec, ok = str.toShort(10) # dec == 0, ok == false
-//! [76]
-}
-
-void Widget.toUIntFunction()
-{
-//! [77]
- str = QString("FF")
-
- hex, ok = str.toUInt(16) # hex == 255, ok == true
- dec, ok = str.toUInt(10) # dec == 0, ok == false
-//! [77]
-}
-
-void Widget.toULongFunction()
-{
-//! [78]
- str = QString("FF")
-
- hex, ok = str.toULong(16) # hex == 255, ok == true
- dec, ok = str.toULong(10) # dec == 0, ok == false
-//! [78]
-}
-
-void Widget.toULongLongFunction()
-{
-//! [79]
- QString str = "FF"
-
- hex, ok = str.toULongLong(16) # hex == 255, ok == true
- dec, ok = str.toULongLong(10) # dec == 0, ok == false
-//! [79]
-}
-
-void Widget.toUShortFunction()
-{
-//! [80]
- str = QString("FF")
-
- hex, ok = str.toUShort(16) # hex == 255, ok == true
- dec, ok = str.toUShort(10) # dec == 0, ok == false
-//! [80]
-}
-
-void Widget.toUpperFunction()
-{
-//! [81]
- str = QString("TeXt")
- str = str.toUpper() # str == "TEXT"
-//! [81]
-}
-
-void Widget.trimmedFunction()
-{
-//! [82]
- str = QString(" lots\t of\nwhitespace\r\n ")
- str = str.trimmed()
- # str == "lots\t of\nwhitespace"
-//! [82]
-}
-
-void Widget.truncateFunction()
-{
-//! [83]
- str = QString("Vladivostok")
- str.truncate(4)
- # str == "Vlad"
-//! [83]
-}
-
-void Widget.plusEqualOperator()
-{
-//! [84]
- x = QString("free")
- y = QString("dom")
- x += y
- # x == "freedom"
-//! [84]
-}
-
-void Widget.arrayOperator()
-{
-//! [85]
- str = QString(...)
-
- if (str[0] == QChar('?'))
- str[0] = QChar('_')
-//! [85]
-}
-
-void Widget.midRefFunction()
-{
-//! [midRef]
- x = QString("Nine pineapples")
- y = x.midRef(5, 4) # y == "pine"
- z = x.midRef(5) # z == "pineapples"
-//! [midRef]
-}
-
-void Widget.leftRefFunction()
-{
-//! [leftRef]
- x = QString("Pineapple")
- y = x.leftRef(4) # y == "Pine"
-//! [leftRef]
-}
-
-void Widget.rightRefFunction()
-{
-//! [rightRef]
- x = QString("Pineapple")
- y = x.rightRef(5) # y == "apple"
-//! [rightRef]
-}
-
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv)
- Widget widget
- widget.show()
- return app.exec()
-}
diff --git a/doc/codesnippets/doc/src/snippets/qstring/qstring.pro b/doc/codesnippets/doc/src/snippets/qstring/qstring.pro
deleted file mode 100644
index 71039d1..0000000
--- a/doc/codesnippets/doc/src/snippets/qstring/qstring.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Wed Apr 12 11:28:45 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstringlist/main.cpp b/doc/codesnippets/doc/src/snippets/qstringlist/main.cpp
deleted file mode 100644
index c80b50e..0000000
--- a/doc/codesnippets/doc/src/snippets/qstringlist/main.cpp
+++ /dev/null
@@ -1,155 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtGui>
-#include <iostream>
-using namespace std
-
-class Widget : public QWidget
-{
-public:
- Widget(QWidget *parent = 0)
-}
-
-Widget::Widget(QWidget *parent)
- : QWidget(parent)
-{
-//! [0]
- fonts = QStringList()
- fonts << "Arial" << "Helvetica" << "Times" << "Courier"
-//! [0]
-
-//! [1]
- for i in range(fonts.size()):
- print fonts.at(i)
-//! [1]
-
-//! [2]
- QStringListIterator javaStyleIterator(fonts)
- while (javaStyleIterator.hasNext())
- cout << javaStyleIterator.next().toLocal8Bit().constData() << endl
-//! [2]
-
-//! [3]
- QStringList::const_iterator constIterator
- for (constIterator = fonts.constBegin(); constIterator != fonts.constEnd()
- ++constIterator)
- cout << (*constIterator).toLocal8Bit().constData() << endl
-//! [3]
-
-//! [4]
- str = fonts.join(",")
- # str == "Arial,Helvetica,Times,Courier"
-//! [4]
-
-//! [5] //! [6]
- list = QStringList()
-//! [5]
- list = str.split(",")
- # list: ["Arial", "Helvetica", "Times", "Courier"]
-//! [6]
-
-//! [7]
- monospacedFonts = fonts.filter(QRegExp("Courier|Fixed"))
-//! [7]
-
-//! [8]
- files = QStringList()
- files << "$QTDIR/src/moc/moc.y" \
- << "$QTDIR/src/moc/moc.l" \
- << "$QTDIR/include/qconfig.h" \
-
- files.replaceInStrings("$QTDIR", "/usr/lib/qt")
- # files: [ "/usr/lib/qt/src/moc/moc.y", ...]
-//! [8]
-
- QString str1, str2, str3
-//! [9]
- longerList = (QStringList() << str1 << str2 << str3)
-//! [9]
-
- list.clear()
-//! [10]
- list << "Bill Murray" << "John Doe" << "Bill Clinton"
-
-//! [11]
- result = QStringList()
-//! [11]
- result = list.filter("Bill")
- # result: ["Bill Murray", "Bill Clinton"]
-//! [10]
-
- result.clear()
-//! [12]
- for string in list:
- if string.contains("Bill")
- result += string
-//! [12]
-
- list.clear()
-//! [13]
- list << "alpha" << "beta" << "gamma" << "epsilon"
- list.replaceInStrings("a", "o")
- # list == ["olpho", "beto", "gommo", "epsilon"]
-//! [13]
-
- list.clear()
-//! [14]
- list << "alpha" << "beta" << "gamma" << "epsilon"
- list.replaceInStrings(QRegExp("^a"), "o")
- # list == ["olpha", "beta", "gamma", "epsilon"]
-//! [14]
-
- list.clear()
-//! [15]
- list << "Bill Clinton" << "Murray, Bill"
- list.replaceInStrings(QRegExp("^(.*), (.*)$"), "\\2 \\1")
- # list == ["Bill Clinton", "Bill Murray"]
-//! [15]
-}
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv)
- Widget widget
- widget.show()
- return app.exec()
-}
diff --git a/doc/codesnippets/doc/src/snippets/qstringlist/qstringlist.pro b/doc/codesnippets/doc/src/snippets/qstringlist/qstringlist.pro
deleted file mode 100644
index adb2f9e..0000000
--- a/doc/codesnippets/doc/src/snippets/qstringlist/qstringlist.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Wed May 3 11:08:01 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstringlistmodel/qstringlistmodel.pro b/doc/codesnippets/doc/src/snippets/qstringlistmodel/qstringlistmodel.pro
deleted file mode 100644
index aaa359c..0000000
--- a/doc/codesnippets/doc/src/snippets/qstringlistmodel/qstringlistmodel.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Wed May 3 15:25:22 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstyleoption/qstyleoption.pro b/doc/codesnippets/doc/src/snippets/qstyleoption/qstyleoption.pro
deleted file mode 100644
index 2f17f03..0000000
--- a/doc/codesnippets/doc/src/snippets/qstyleoption/qstyleoption.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Thu Apr 20 16:22:46 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qstyleplugin/qstyleplugin.pro b/doc/codesnippets/doc/src/snippets/qstyleplugin/qstyleplugin.pro
deleted file mode 100644
index d17c20f..0000000
--- a/doc/codesnippets/doc/src/snippets/qstyleplugin/qstyleplugin.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.00a) Tue May 2 15:31:16 2006
-######################################################################
-
-TEMPLATE = app
-TARGET +=
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qsvgwidget/qsvgwidget.pro b/doc/codesnippets/doc/src/snippets/qsvgwidget/qsvgwidget.pro
deleted file mode 100644
index d7e3698..0000000
--- a/doc/codesnippets/doc/src/snippets/qsvgwidget/qsvgwidget.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-QT += svg
-RESOURCES = qsvgwidget.qrc
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qt-namespace/qt-namespace.pro b/doc/codesnippets/doc/src/snippets/qt-namespace/qt-namespace.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qt-namespace/qt-namespace.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/qtablewidget-dnd.pro b/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/qtablewidget-dnd.pro
deleted file mode 100644
index ffe134c..0000000
--- a/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/qtablewidget-dnd.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
-RESOURCES += images.qrc
diff --git a/doc/codesnippets/doc/src/snippets/qtablewidget-resizing/qtablewidget-resizing.pro b/doc/codesnippets/doc/src/snippets/qtablewidget-resizing/qtablewidget-resizing.pro
deleted file mode 100644
index 12a900a..0000000
--- a/doc/codesnippets/doc/src/snippets/qtablewidget-resizing/qtablewidget-resizing.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
diff --git a/doc/codesnippets/doc/src/snippets/qtablewidget-using/qtablewidget-using.pro b/doc/codesnippets/doc/src/snippets/qtablewidget-using/qtablewidget-using.pro
deleted file mode 100644
index ffe134c..0000000
--- a/doc/codesnippets/doc/src/snippets/qtablewidget-using/qtablewidget-using.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
-RESOURCES += images.qrc
diff --git a/doc/codesnippets/doc/src/snippets/qtcast/qtcast.pro b/doc/codesnippets/doc/src/snippets/qtcast/qtcast.pro
deleted file mode 100644
index 6476162..0000000
--- a/doc/codesnippets/doc/src/snippets/qtcast/qtcast.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS = qtcast.h
-SOURCES = qtcast.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qtest-namespace/qtest-namespace.pro b/doc/codesnippets/doc/src/snippets/qtest-namespace/qtest-namespace.pro
deleted file mode 100644
index 0dfaf99..0000000
--- a/doc/codesnippets/doc/src/snippets/qtest-namespace/qtest-namespace.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-CONFIG += qtestlib
diff --git a/doc/codesnippets/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp b/doc/codesnippets/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp
deleted file mode 100644
index 9ae2f38..0000000
--- a/doc/codesnippets/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp
+++ /dev/null
@@ -1,147 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of an example program for Qt.
-** EDITIONS: NOLIMITS
-**
-****************************************************************************/
-
-#include <QtGui>
-
-#include "dragdropmodel.h"
-
-DragDropModel::DragDropModel(const QStringList &strings, QObject *parent)
- : TreeModel(strings, parent)
-{
-}
-
-bool DragDropModel::dropMimeData(const QMimeData *data,
- Qt::DropAction action, int row, int column, const QModelIndex &parent)
-{
- if (action == Qt::IgnoreAction)
- return true;
-
- if (!data->hasFormat("text/plain"))
- return false;
-
- int beginRow;
-
- if (row != -1)
- beginRow = row;
- else if (parent.isValid())
- beginRow = 0;
- else
- beginRow = rowCount(QModelIndex());
-
- QByteArray encodedData = data->data("text/plain");
- QDataStream stream(&encodedData, QIODevice::ReadOnly);
- QHash<qint64, QMap<int,QHash<int,QString> > > newItems;
-
- while (!stream.atEnd()) {
- qint64 id;
- int row;
- int column;
- QString text;
- stream >> id >> row >> column >> text;
- newItems[id][row][column] = text;
- }
- int rows = newItems.count();
-
- insertRows(beginRow, rows, parent);
- QMap<int,QHash<int,QString> > childItems;
- foreach (childItems, newItems.values()) {
- QHash<int,QString> rowItems;
- foreach (rowItems, childItems.values()) {
- foreach (int column, rowItems.keys()) {
- QModelIndex idx = index(beginRow, column, parent);
- setData(idx, rowItems[column]);
- }
- ++beginRow;
- }
- }
-
- return true;
-}
-
-Qt::ItemFlags DragDropModel::flags(const QModelIndex &index) const
-{
- Qt::ItemFlags defaultFlags = TreeModel::flags(index);
-
- if (index.isValid())
- return Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | defaultFlags;
- else
- return Qt::ItemIsDropEnabled | defaultFlags;
-}
-
-QMimeData *DragDropModel::mimeData(const QModelIndexList &indexes) const
-{
- QMimeData *mimeData = new QMimeData();
- QByteArray encodedData;
-
- QDataStream stream(&encodedData, QIODevice::WriteOnly);
-
- foreach (QModelIndex index, indexes) {
- if (index.isValid()) {
- QString text = data(index, Qt::DisplayRole).toString();
- stream << index.internalId() << index.row() << index.column() << text;
- }
- }
-
- mimeData->setData("text/plain", encodedData);
- return mimeData;
-}
-
-QStringList DragDropModel::mimeTypes() const
-{
- QStringList types;
- types << "text/plain";
- return types;
-}
-
-Qt::DropActions DragDropModel::supportedDropActions() const
-{
- return Qt::CopyAction | Qt::MoveAction;
-}
diff --git a/doc/codesnippets/doc/src/snippets/qtreeview-dnd/qtreeview-dnd.pro b/doc/codesnippets/doc/src/snippets/qtreeview-dnd/qtreeview-dnd.pro
deleted file mode 100644
index 5dfabfc..0000000
--- a/doc/codesnippets/doc/src/snippets/qtreeview-dnd/qtreeview-dnd.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-SOURCES = dragdropmodel.cpp \
- main.cpp \
- mainwindow.cpp \
- treeitem.cpp \
- treemodel.cpp
-HEADERS = dragdropmodel.h \
- mainwindow.h \
- treeitem.h \
- treemodel.h
diff --git a/doc/codesnippets/doc/src/snippets/qtreewidget-using/qtreewidget-using.pro b/doc/codesnippets/doc/src/snippets/qtreewidget-using/qtreewidget-using.pro
deleted file mode 100644
index 12a900a..0000000
--- a/doc/codesnippets/doc/src/snippets/qtreewidget-using/qtreewidget-using.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
diff --git a/doc/codesnippets/doc/src/snippets/qtreewidgetitemiterator-using/qtreewidgetitemiterator-using.pro b/doc/codesnippets/doc/src/snippets/qtreewidgetitemiterator-using/qtreewidgetitemiterator-using.pro
deleted file mode 100644
index 12a900a..0000000
--- a/doc/codesnippets/doc/src/snippets/qtreewidgetitemiterator-using/qtreewidgetitemiterator-using.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp
-HEADERS = mainwindow.h
diff --git a/doc/codesnippets/doc/src/snippets/qtscript/evaluation/evaluation.pro b/doc/codesnippets/doc/src/snippets/qtscript/evaluation/evaluation.pro
deleted file mode 100644
index a495c02..0000000
--- a/doc/codesnippets/doc/src/snippets/qtscript/evaluation/evaluation.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-QT += script
diff --git a/doc/codesnippets/doc/src/snippets/qtscript/registeringobjects/registeringobjects.pro b/doc/codesnippets/doc/src/snippets/qtscript/registeringobjects/registeringobjects.pro
deleted file mode 100644
index 0a755e2..0000000
--- a/doc/codesnippets/doc/src/snippets/qtscript/registeringobjects/registeringobjects.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-SOURCES = main.cpp \
- myobject.cpp
-HEADERS = myobject.h
-QT += script
diff --git a/doc/codesnippets/doc/src/snippets/qtscript/registeringvalues/registeringvalues.pro b/doc/codesnippets/doc/src/snippets/qtscript/registeringvalues/registeringvalues.pro
deleted file mode 100644
index a495c02..0000000
--- a/doc/codesnippets/doc/src/snippets/qtscript/registeringvalues/registeringvalues.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-QT += script
diff --git a/doc/codesnippets/doc/src/snippets/qtscript/scriptedslot/scriptedslot.pro b/doc/codesnippets/doc/src/snippets/qtscript/scriptedslot/scriptedslot.pro
deleted file mode 100644
index a10f06e..0000000
--- a/doc/codesnippets/doc/src/snippets/qtscript/scriptedslot/scriptedslot.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-RESOURCES = scriptedslot.qrc
-SOURCES = main.cpp
-QT += script
diff --git a/doc/codesnippets/doc/src/snippets/quiloader/quiloader.pro b/doc/codesnippets/doc/src/snippets/quiloader/quiloader.pro
deleted file mode 100644
index c82d0e5..0000000
--- a/doc/codesnippets/doc/src/snippets/quiloader/quiloader.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-HEADERS = mywidget.h
-SOURCES = main.cpp mywidget.cpp
-RESOURCES = mywidget.qrc
-CONFIG += uitools
diff --git a/doc/codesnippets/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro b/doc/codesnippets/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro b/doc/codesnippets/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro
deleted file mode 100644
index b72e0ad..0000000
--- a/doc/codesnippets/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = embedwidget.h
-SOURCES = embedwidget.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/qxmlstreamwriter/qxmlstreamwriter.pro b/doc/codesnippets/doc/src/snippets/qxmlstreamwriter/qxmlstreamwriter.pro
deleted file mode 100644
index 8f74a5d..0000000
--- a/doc/codesnippets/doc/src/snippets/qxmlstreamwriter/qxmlstreamwriter.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-QT += xml
diff --git a/doc/codesnippets/doc/src/snippets/reading-selections/model.cpp b/doc/codesnippets/doc/src/snippets/reading-selections/model.cpp
deleted file mode 100644
index 2c5c81a..0000000
--- a/doc/codesnippets/doc/src/snippets/reading-selections/model.cpp
+++ /dev/null
@@ -1,239 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*
- model.cpp
-
- Provides a table model for use in various examples.
-*/
-
-#include <QtGui>
-
-#include "model.h"
-
-/*!
- Constructs a table model with at least one row and one column.
-*/
-
-TableModel::TableModel(int rows, int columns, QObject *parent)
- : QAbstractTableModel(parent)
-{
- QStringList newList;
-
- for (int column = 0; column < qMax(1, columns); ++column) {
- newList.append("");
- }
-
- for (int row = 0; row < qMax(1, rows); ++row) {
- rowList.append(newList);
- }
-}
-
-
-/*!
- Returns the number of items in the row list as the number of rows
- in the model.
-*/
-
-int TableModel::rowCount(const QModelIndex &/*parent*/) const
-{
- return rowList.size();
-}
-
-/*!
- Returns the number of items in the first list item as the number of
- columns in the model. All rows should have the same number of columns.
-*/
-
-int TableModel::columnCount(const QModelIndex &/*parent*/) const
-{
- return rowList[0].size();
-}
-
-/*!
- Returns an appropriate value for the requested data.
- If the view requests an invalid index, an invalid variant is returned.
- Any valid index that corresponds to a string in the list causes that
- string to be returned for the display role; otherwise an invalid variant
- is returned.
-*/
-
-QVariant TableModel::data(const QModelIndex &index, int role) const
-{
- if (!index.isValid())
- return QVariant();
-
- if (role == Qt::DisplayRole)
- return rowList[index.row()][index.column()];
- else
- return QVariant();
-}
-
-/*!
- Returns the appropriate header string depending on the orientation of
- the header and the section. If anything other than the display role is
- requested, we return an invalid variant.
-*/
-
-QVariant TableModel::headerData(int section, Qt::Orientation orientation,
- int role) const
-{
- if (role != Qt::DisplayRole)
- return QVariant();
-
- if (orientation == Qt::Horizontal)
- return QString("Column %1").arg(section);
- else
- return QString("Row %1").arg(section);
-}
-
-/*!
- Returns an appropriate value for the item's flags. Valid items are
- enabled, selectable, and editable.
-*/
-
-Qt::ItemFlags TableModel::flags(const QModelIndex &index) const
-{
- if (!index.isValid())
- return Qt::ItemIsEnabled;
-
- return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
-}
-
-/*!
- Changes an item in the model, but only if the following conditions
- are met:
-
- * The index supplied is valid.
- * The role associated with editing text is specified.
-
- The dataChanged() signal is emitted if the item is changed.
-*/
-
-bool TableModel::setData(const QModelIndex &index,
- const QVariant &value, int role)
-{
- if (!index.isValid() || role != Qt::EditRole)
- return false;
-
- rowList[index.row()][index.column()] = value.toString();
- emit dataChanged(index, index);
- return true;
-}
-
-/*!
- Inserts a number of rows into the model at the specified position.
-*/
-
-bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)
-{
- int columns = columnCount();
- beginInsertRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- QStringList items;
- for (int column = 0; column < columns; ++column)
- items.append("");
- rowList.insert(position, items);
- }
-
- endInsertRows();
- return true;
-}
-
-/*!
- Inserts a number of columns into the model at the specified position.
- Each entry in the list is extended in turn with the required number of
- empty strings.
-*/
-
-bool TableModel::insertColumns(int position, int columns,
- const QModelIndex &parent)
-{
- int rows = rowCount();
- beginInsertColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = position; column < columns; ++column) {
- rowList[row].insert(position, "");
- }
- }
-
- endInsertColumns();
- return true;
-}
-
-/*!
- Removes a number of rows from the model at the specified position.
-*/
-
-bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)
-{
- beginRemoveRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- rowList.removeAt(position);
- }
-
- endRemoveRows();
- return true;
-}
-
-/*!
- Removes a number of columns from the model at the specified position.
- Each row is shortened by the number of columns specified.
-*/
-
-bool TableModel::removeColumns(int position, int columns,
- const QModelIndex &parent)
-{
- int rows = rowCount();
- beginRemoveColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = 0; column < columns; ++column) {
- rowList[row].removeAt(position);
- }
- }
-
- endRemoveColumns();
- return true;
-}
diff --git a/doc/codesnippets/doc/src/snippets/reading-selections/reading-selections.pro b/doc/codesnippets/doc/src/snippets/reading-selections/reading-selections.pro
deleted file mode 100644
index 91ebd3e..0000000
--- a/doc/codesnippets/doc/src/snippets/reading-selections/reading-selections.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS += model.h window.h
-SOURCES += main.cpp model.cpp window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/scribe-overview/scribe-overview.pro b/doc/codesnippets/doc/src/snippets/scribe-overview/scribe-overview.pro
deleted file mode 100644
index 16181f2..0000000
--- a/doc/codesnippets/doc/src/snippets/scribe-overview/scribe-overview.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/separations/separations.pro b/doc/codesnippets/doc/src/snippets/separations/separations.pro
deleted file mode 100644
index 48af2c8..0000000
--- a/doc/codesnippets/doc/src/snippets/separations/separations.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-HEADERS = finalwidget.h \
- screenwidget.h \
- viewer.h
-SOURCES = finalwidget.cpp \
- main.cpp \
- screenwidget.cpp \
- viewer.cpp
diff --git a/doc/codesnippets/doc/src/snippets/shareddirmodel/shareddirmodel.pro b/doc/codesnippets/doc/src/snippets/shareddirmodel/shareddirmodel.pro
deleted file mode 100644
index 28dcadc..0000000
--- a/doc/codesnippets/doc/src/snippets/shareddirmodel/shareddirmodel.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/sharedemployee/sharedemployee.pro b/doc/codesnippets/doc/src/snippets/sharedemployee/sharedemployee.pro
deleted file mode 100644
index 536a77d..0000000
--- a/doc/codesnippets/doc/src/snippets/sharedemployee/sharedemployee.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = employee.h
-SOURCES = employee.cpp \
- main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/sharedtablemodel/model.cpp b/doc/codesnippets/doc/src/snippets/sharedtablemodel/model.cpp
deleted file mode 100644
index 0fe0249..0000000
--- a/doc/codesnippets/doc/src/snippets/sharedtablemodel/model.cpp
+++ /dev/null
@@ -1,237 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*
- model.cpp
-
- Provides a table model for use in various examples.
-*/
-
-#include <QtGui>
-
-#include "model.h"
-
-/*!
- Constructs a table model with at least one row and one column.
-*/
-
-TableModel::TableModel(int rows, int columns, QObject *parent)
- : QAbstractTableModel(parent)
-{
- QStringList newList;
-
- for (int column = 0; column < qMax(1, columns); ++column) {
- newList.append("");
- }
-
- for (int row = 0; row < qMax(1, rows); ++row) {
- rowList.append(newList);
- }
-}
-
-
-/*!
- Returns the number of items in the row list as the number of rows
- in the model.
-*/
-
-int TableModel::rowCount(const QModelIndex &/*parent*/) const
-{
- return rowList.size();
-}
-
-/*!
- Returns the number of items in the first list item as the number of
- columns in the model. All rows should have the same number of columns.
-*/
-
-int TableModel::columnCount(const QModelIndex &/*parent*/) const
-{
- return rowList[0].size();
-}
-
-/*!
- Returns an appropriate value for the requested data.
- If the view requests an invalid index, an invalid variant is returned.
- Any valid index that corresponds to a string in the list causes that
- string to be returned for the display role; otherwise an invalid variant
- is returned.
-*/
-
-QVariant TableModel::data(const QModelIndex &index, int role) const
-{
- if (!index.isValid())
- return QVariant();
-
- if (role == Qt::DisplayRole)
- return rowList[index.row()][index.column()];
- else
- return QVariant();
-}
-
-/*!
- Returns the appropriate header string depending on the orientation of
- the header and the section. If anything other than the display role is
- requested, we return an invalid variant.
-*/
-
-QVariant TableModel::headerData(int section, Qt::Orientation orientation,
- int role) const
-{
- if (role != Qt::DisplayRole)
- return QVariant();
-
- if (orientation == Qt::Horizontal)
- return QString("Column %1").arg(section);
- else
- return QString("Row %1").arg(section);
-}
-
-/*!
- Returns an appropriate value for the item's flags. Valid items are
- enabled, selectable, and editable.
-*/
-
-Qt::ItemFlags TableModel::flags(const QModelIndex &index) const
-{
- if (!index.isValid())
- return Qt::ItemIsEnabled;
-
- return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;
-}
-
-/*!
- Changes an item in the model, but only if the following conditions
- are met:
-
- * The index supplied is valid.
- * The role associated with editing text is specified.
-
- The dataChanged() signal is emitted if the item is changed.
-*/
-
-bool TableModel::setData(const QModelIndex &index,
- const QVariant &value, int role)
-{
- if (!index.isValid() || role != Qt::EditRole)
- return false;
-
- rowList[index.row()][index.column()] = value.toString();
- emit dataChanged(index, index);
- return true;
-}
-
-/*!
- Inserts a number of rows into the model at the specified position.
-*/
-
-bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)
-{
- int columns = columnCount();
- beginInsertRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- QStringList items;
- for (int column = 0; column < columns; ++column)
- items.append("");
- rowList.insert(position, items);
- }
-
- endInsertRows();
- return true;
-}
-
-/*!
- Inserts a number of columns into the model at the specified position.
- Each entry in the list is extended in turn with the required number of
- empty strings.
-*/
-
-bool TableModel::insertColumns(int position, int columns, const QModelIndex &parent)
-{
- int rows = rowCount();
- beginInsertColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = position; column < columns; ++column) {
- rowList[row].insert(position, "");
- }
- }
-
- endInsertColumns();
- return true;
-}
-
-/*!
- Removes a number of rows from the model at the specified position.
-*/
-
-bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)
-{
- beginRemoveRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- rowList.removeAt(position);
- }
-
- endRemoveRows();
- return true;
-}
-
-/*!
- Removes a number of columns from the model at the specified position.
- Each row is shortened by the number of columns specified.
-*/
-
-bool TableModel::removeColumns(int position, int columns, const QModelIndex &parent)
-{
- int rows = rowCount();
- beginRemoveColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = 0; column < columns; ++column) {
- rowList[row].removeAt(position);
- }
- }
-
- endRemoveColumns();
- return true;
-}
diff --git a/doc/codesnippets/doc/src/snippets/sharedtablemodel/sharedtablemodel.pro b/doc/codesnippets/doc/src/snippets/sharedtablemodel/sharedtablemodel.pro
deleted file mode 100644
index 10671e6..0000000
--- a/doc/codesnippets/doc/src/snippets/sharedtablemodel/sharedtablemodel.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS += model.h
-SOURCES += main.cpp model.cpp
diff --git a/doc/codesnippets/doc/src/snippets/signalmapper/signalmapper.pro b/doc/codesnippets/doc/src/snippets/signalmapper/signalmapper.pro
deleted file mode 100644
index 9a9d669..0000000
--- a/doc/codesnippets/doc/src/snippets/signalmapper/signalmapper.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Jul 2 14:50:56 2008
-######################################################################
-
-TEMPLATE = app
-TARGET =
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-HEADERS += filereader.h
-SOURCES += filereader.cpp main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/simplemodel-use/simplemodel-use.pro b/doc/codesnippets/doc/src/snippets/simplemodel-use/simplemodel-use.pro
deleted file mode 100644
index 28dcadc..0000000
--- a/doc/codesnippets/doc/src/snippets/simplemodel-use/simplemodel-use.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/snippets.pro b/doc/codesnippets/doc/src/snippets/snippets.pro
deleted file mode 100644
index 50e33b3..0000000
--- a/doc/codesnippets/doc/src/snippets/snippets.pro
+++ /dev/null
@@ -1,109 +0,0 @@
-### A qmake file for the snippets. *** This is not for distribution. ***
-#
-# Snippets that don't work are commented out and marked with "broken";
-# other commented out snippets were probably not designed to be built.
-
-TEMPLATE = subdirs
-SUBDIRS = brush \
- buffer \
-# clipboard \ # broken
- coordsys \
-# customstyle \
- designer \
- dialogs \
- dockwidgets \
- draganddrop \
- dragging \
- dropactions \
- dropevents \
- droprectangle \
- events \
-# file \
- image \
- inherited-slot \
- itemselection \
- layouts \
- matrix \
- moc \
-# modelview-subclasses \ # broken
- painterpath \
- persistentindexes \
- picture \
- plaintextlayout \
-# pointer \
- polygon \
- process \
- qdbusextratypes \
- qcalendarwidget \
- qdir-filepaths \
- qdir-listfiles \
- qdir-namefilters \
- qfontdatabase \
- qlabel \
- qlineargradient \
- qlistview-dnd \
- qlistview-using \
- qlistwidget-dnd \
- qlistwidget-using \
-# qmake \ # not designed to be built
- qmetaobject-invokable \
- qprocess \
- qprocess-environment \
-# qsignalmapper \
- qsortfilterproxymodel-details \
- qsplashscreen \
- qstack \
- qstackedlayout \
- qstackedwidget \
- qstandarditemmodel \
- qstatustipevent \
- qstring \
- qstringlist \
- qstringlistmodel \
- qstyleoption \
- qstyleplugin \
- qsvgwidget \
- qtablewidget-dnd \
- qtablewidget-resizing \
- qtablewidget-using \
- qtcast \
- qtreeview-dnd \
- qtreewidgetitemiterator-using \
- qtreewidget-using \
- quiloader \
- qx11embedcontainer \
- qx11embedwidget \
- reading-selections \
- scribe-overview \
- separations \
-# settings \ # not designed to be built
- shareddirmodel \
- sharedemployee \
- sharedtablemodel \
-# signalsandslots \
- simplemodel-use \
-# splitter \
- sqldatabase \
- stringlistmodel \
-# styles \
- textblock-formats \
- textblock-fragments \
- textdocument-blocks \
- textdocument-charformats \
- textdocument-cursors \
- textdocument-find \
- textdocument-frames \
- textdocument-imageformat \
- textdocument-images \
- textdocument-listitems \
- textdocument-lists \
- textdocument-printing \
-# textdocument-resources \
- textdocument-selections \
- textdocument-tables \
-# threads \
- timers \
- updating-selections \
-# whatsthis \
- widget-mask \
- xml
diff --git a/doc/codesnippets/doc/src/snippets/splitter/splitter.pro b/doc/codesnippets/doc/src/snippets/splitter/splitter.pro
deleted file mode 100644
index 2414a91..0000000
--- a/doc/codesnippets/doc/src/snippets/splitter/splitter.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += splitter.cpp
diff --git a/doc/codesnippets/doc/src/snippets/splitterhandle/splitterhandle.pro b/doc/codesnippets/doc/src/snippets/splitterhandle/splitterhandle.pro
deleted file mode 100644
index 0c2a999..0000000
--- a/doc/codesnippets/doc/src/snippets/splitterhandle/splitterhandle.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = splitter.h
-SOURCES = main.cpp \
- splitter.cpp
diff --git a/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.pro b/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.pro
deleted file mode 100644
index 4399695..0000000
--- a/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES += sqldatabase.cpp
-QT += sql
diff --git a/doc/codesnippets/doc/src/snippets/streaming/streaming.pro b/doc/codesnippets/doc/src/snippets/streaming/streaming.pro
deleted file mode 100644
index 8c5eb91..0000000
--- a/doc/codesnippets/doc/src/snippets/streaming/streaming.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-CONFIG += CONSOLE \ No newline at end of file
diff --git a/doc/codesnippets/doc/src/snippets/stringlistmodel/stringlistmodel.pro b/doc/codesnippets/doc/src/snippets/stringlistmodel/stringlistmodel.pro
deleted file mode 100644
index b1126bf..0000000
--- a/doc/codesnippets/doc/src/snippets/stringlistmodel/stringlistmodel.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = model.h
-SOURCES = main.cpp \
- model.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textblock-formats/textblock-formats.pro b/doc/codesnippets/doc/src/snippets/textblock-formats/textblock-formats.pro
deleted file mode 100644
index d664835..0000000
--- a/doc/codesnippets/doc/src/snippets/textblock-formats/textblock-formats.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-QT += xml
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textblock-fragments/textblock-fragments.pro b/doc/codesnippets/doc/src/snippets/textblock-fragments/textblock-fragments.pro
deleted file mode 100644
index 83ed78e..0000000
--- a/doc/codesnippets/doc/src/snippets/textblock-fragments/textblock-fragments.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-QT += xml
-HEADERS = mainwindow.h \
- xmlwriter.h
-SOURCES = main.cpp \
- mainwindow.cpp \
- xmlwriter.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-blocks/textdocument-blocks.pro b/doc/codesnippets/doc/src/snippets/textdocument-blocks/textdocument-blocks.pro
deleted file mode 100644
index 83ed78e..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-blocks/textdocument-blocks.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-QT += xml
-HEADERS = mainwindow.h \
- xmlwriter.h
-SOURCES = main.cpp \
- mainwindow.cpp \
- xmlwriter.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-charformats/textdocument-charformats.pro b/doc/codesnippets/doc/src/snippets/textdocument-charformats/textdocument-charformats.pro
deleted file mode 100644
index 16181f2..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-charformats/textdocument-charformats.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-css/textdocument-css.pro b/doc/codesnippets/doc/src/snippets/textdocument-css/textdocument-css.pro
deleted file mode 100644
index 28dcadc..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-css/textdocument-css.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-cursors/textdocument-cursors.pro b/doc/codesnippets/doc/src/snippets/textdocument-cursors/textdocument-cursors.pro
deleted file mode 100644
index 16181f2..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-cursors/textdocument-cursors.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-find/textdocument-find.pro b/doc/codesnippets/doc/src/snippets/textdocument-find/textdocument-find.pro
deleted file mode 100644
index 16181f2..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-find/textdocument-find.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-frames/textdocument-frames.pro b/doc/codesnippets/doc/src/snippets/textdocument-frames/textdocument-frames.pro
deleted file mode 100644
index 91ae50f..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-frames/textdocument-frames.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp \
- xmlwriter.cpp
-HEADERS = mainwindow.h \
- xmlwriter.h
-QT += xml
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-imagedrop/textdocument-imagedrop.pro b/doc/codesnippets/doc/src/snippets/textdocument-imagedrop/textdocument-imagedrop.pro
deleted file mode 100644
index 96d3038..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-imagedrop/textdocument-imagedrop.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = textedit.cpp main.cpp
-HEADERS = textedit.h \ No newline at end of file
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-imageformat/textdocument-imageformat.pro b/doc/codesnippets/doc/src/snippets/textdocument-imageformat/textdocument-imageformat.pro
deleted file mode 100644
index 1c64370..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-imageformat/textdocument-imageformat.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-RESOURCES += images.qrc
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-images/textdocument-images.pro b/doc/codesnippets/doc/src/snippets/textdocument-images/textdocument-images.pro
deleted file mode 100644
index 1c64370..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-images/textdocument-images.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES = main.cpp
-RESOURCES += images.qrc
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-listitems/textdocument-listitems.pro b/doc/codesnippets/doc/src/snippets/textdocument-listitems/textdocument-listitems.pro
deleted file mode 100644
index 5da8d6e..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-listitems/textdocument-listitems.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = mainwindow.h
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-lists/textdocument-lists.pro b/doc/codesnippets/doc/src/snippets/textdocument-lists/textdocument-lists.pro
deleted file mode 100644
index 5da8d6e..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-lists/textdocument-lists.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = mainwindow.h
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-printing/textdocument-printing.pro b/doc/codesnippets/doc/src/snippets/textdocument-printing/textdocument-printing.pro
deleted file mode 100644
index 5da8d6e..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-printing/textdocument-printing.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS = mainwindow.h
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-selections/textdocument-selections.pro b/doc/codesnippets/doc/src/snippets/textdocument-selections/textdocument-selections.pro
deleted file mode 100644
index 253c452..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-selections/textdocument-selections.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-QT += xml
-HEADERS = mainwindow.h
-SOURCES = main.cpp \
- mainwindow.cpp
diff --git a/doc/codesnippets/doc/src/snippets/textdocument-tables/textdocument-tables.pro b/doc/codesnippets/doc/src/snippets/textdocument-tables/textdocument-tables.pro
deleted file mode 100644
index 91ae50f..0000000
--- a/doc/codesnippets/doc/src/snippets/textdocument-tables/textdocument-tables.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-SOURCES = main.cpp \
- mainwindow.cpp \
- xmlwriter.cpp
-HEADERS = mainwindow.h \
- xmlwriter.h
-QT += xml
diff --git a/doc/codesnippets/doc/src/snippets/timeline/timeline.pro b/doc/codesnippets/doc/src/snippets/timeline/timeline.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/timeline/timeline.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/timers/timers.pro b/doc/codesnippets/doc/src/snippets/timers/timers.pro
deleted file mode 100644
index 8cb4eec..0000000
--- a/doc/codesnippets/doc/src/snippets/timers/timers.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += timers.cpp
diff --git a/doc/codesnippets/doc/src/snippets/transform/transform.pro b/doc/codesnippets/doc/src/snippets/transform/transform.pro
deleted file mode 100644
index 5254077..0000000
--- a/doc/codesnippets/doc/src/snippets/transform/transform.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp \ No newline at end of file
diff --git a/doc/codesnippets/doc/src/snippets/uitools/calculatorform/calculatorform.pro b/doc/codesnippets/doc/src/snippets/uitools/calculatorform/calculatorform.pro
deleted file mode 100644
index 1a18378..0000000
--- a/doc/codesnippets/doc/src/snippets/uitools/calculatorform/calculatorform.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-#! [0]
-TEMPLATE = app
-FORMS = calculatorform.ui
-SOURCES = main.cpp
-#! [0]
diff --git a/doc/codesnippets/doc/src/snippets/updating-selections/model.cpp b/doc/codesnippets/doc/src/snippets/updating-selections/model.cpp
deleted file mode 100644
index 0fe0249..0000000
--- a/doc/codesnippets/doc/src/snippets/updating-selections/model.cpp
+++ /dev/null
@@ -1,237 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*
- model.cpp
-
- Provides a table model for use in various examples.
-*/
-
-#include <QtGui>
-
-#include "model.h"
-
-/*!
- Constructs a table model with at least one row and one column.
-*/
-
-TableModel::TableModel(int rows, int columns, QObject *parent)
- : QAbstractTableModel(parent)
-{
- QStringList newList;
-
- for (int column = 0; column < qMax(1, columns); ++column) {
- newList.append("");
- }
-
- for (int row = 0; row < qMax(1, rows); ++row) {
- rowList.append(newList);
- }
-}
-
-
-/*!
- Returns the number of items in the row list as the number of rows
- in the model.
-*/
-
-int TableModel::rowCount(const QModelIndex &/*parent*/) const
-{
- return rowList.size();
-}
-
-/*!
- Returns the number of items in the first list item as the number of
- columns in the model. All rows should have the same number of columns.
-*/
-
-int TableModel::columnCount(const QModelIndex &/*parent*/) const
-{
- return rowList[0].size();
-}
-
-/*!
- Returns an appropriate value for the requested data.
- If the view requests an invalid index, an invalid variant is returned.
- Any valid index that corresponds to a string in the list causes that
- string to be returned for the display role; otherwise an invalid variant
- is returned.
-*/
-
-QVariant TableModel::data(const QModelIndex &index, int role) const
-{
- if (!index.isValid())
- return QVariant();
-
- if (role == Qt::DisplayRole)
- return rowList[index.row()][index.column()];
- else
- return QVariant();
-}
-
-/*!
- Returns the appropriate header string depending on the orientation of
- the header and the section. If anything other than the display role is
- requested, we return an invalid variant.
-*/
-
-QVariant TableModel::headerData(int section, Qt::Orientation orientation,
- int role) const
-{
- if (role != Qt::DisplayRole)
- return QVariant();
-
- if (orientation == Qt::Horizontal)
- return QString("Column %1").arg(section);
- else
- return QString("Row %1").arg(section);
-}
-
-/*!
- Returns an appropriate value for the item's flags. Valid items are
- enabled, selectable, and editable.
-*/
-
-Qt::ItemFlags TableModel::flags(const QModelIndex &index) const
-{
- if (!index.isValid())
- return Qt::ItemIsEnabled;
-
- return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;
-}
-
-/*!
- Changes an item in the model, but only if the following conditions
- are met:
-
- * The index supplied is valid.
- * The role associated with editing text is specified.
-
- The dataChanged() signal is emitted if the item is changed.
-*/
-
-bool TableModel::setData(const QModelIndex &index,
- const QVariant &value, int role)
-{
- if (!index.isValid() || role != Qt::EditRole)
- return false;
-
- rowList[index.row()][index.column()] = value.toString();
- emit dataChanged(index, index);
- return true;
-}
-
-/*!
- Inserts a number of rows into the model at the specified position.
-*/
-
-bool TableModel::insertRows(int position, int rows, const QModelIndex &parent)
-{
- int columns = columnCount();
- beginInsertRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- QStringList items;
- for (int column = 0; column < columns; ++column)
- items.append("");
- rowList.insert(position, items);
- }
-
- endInsertRows();
- return true;
-}
-
-/*!
- Inserts a number of columns into the model at the specified position.
- Each entry in the list is extended in turn with the required number of
- empty strings.
-*/
-
-bool TableModel::insertColumns(int position, int columns, const QModelIndex &parent)
-{
- int rows = rowCount();
- beginInsertColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = position; column < columns; ++column) {
- rowList[row].insert(position, "");
- }
- }
-
- endInsertColumns();
- return true;
-}
-
-/*!
- Removes a number of rows from the model at the specified position.
-*/
-
-bool TableModel::removeRows(int position, int rows, const QModelIndex &parent)
-{
- beginRemoveRows(parent, position, position + rows - 1);
-
- for (int row = 0; row < rows; ++row) {
- rowList.removeAt(position);
- }
-
- endRemoveRows();
- return true;
-}
-
-/*!
- Removes a number of columns from the model at the specified position.
- Each row is shortened by the number of columns specified.
-*/
-
-bool TableModel::removeColumns(int position, int columns, const QModelIndex &parent)
-{
- int rows = rowCount();
- beginRemoveColumns(parent, position, position + columns - 1);
-
- for (int row = 0; row < rows; ++row) {
- for (int column = 0; column < columns; ++column) {
- rowList[row].removeAt(position);
- }
- }
-
- endRemoveColumns();
- return true;
-}
diff --git a/doc/codesnippets/doc/src/snippets/updating-selections/updating-selections.pro b/doc/codesnippets/doc/src/snippets/updating-selections/updating-selections.pro
deleted file mode 100644
index 91ebd3e..0000000
--- a/doc/codesnippets/doc/src/snippets/updating-selections/updating-selections.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS += model.h window.h
-SOURCES += main.cpp model.cpp window.cpp
diff --git a/doc/codesnippets/doc/src/snippets/whatsthis/whatsthis.pro b/doc/codesnippets/doc/src/snippets/whatsthis/whatsthis.pro
deleted file mode 100644
index 1310a4f..0000000
--- a/doc/codesnippets/doc/src/snippets/whatsthis/whatsthis.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += whatsthis.cpp
diff --git a/doc/codesnippets/doc/src/snippets/widget-mask/widget-mask.pro b/doc/codesnippets/doc/src/snippets/widget-mask/widget-mask.pro
deleted file mode 100644
index f0807a5..0000000
--- a/doc/codesnippets/doc/src/snippets/widget-mask/widget-mask.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = main.cpp
-RESOURCES = mask.qrc
-CONFIG += qt
diff --git a/doc/codesnippets/doc/src/snippets/widgets-tutorial/childwidget/childwidget.pro b/doc/codesnippets/doc/src/snippets/widgets-tutorial/childwidget/childwidget.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/widgets-tutorial/childwidget/childwidget.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/widgets-tutorial/nestedlayouts/nestedlayouts.pro b/doc/codesnippets/doc/src/snippets/widgets-tutorial/nestedlayouts/nestedlayouts.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/widgets-tutorial/nestedlayouts/nestedlayouts.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/widgets-tutorial/toplevel/toplevel.pro b/doc/codesnippets/doc/src/snippets/widgets-tutorial/toplevel/toplevel.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/widgets-tutorial/toplevel/toplevel.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/widgets-tutorial/windowlayout/windowlayout.pro b/doc/codesnippets/doc/src/snippets/widgets-tutorial/windowlayout/windowlayout.pro
deleted file mode 100644
index bba41b9..0000000
--- a/doc/codesnippets/doc/src/snippets/widgets-tutorial/windowlayout/windowlayout.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/xml/prettyprint/main.cpp b/doc/codesnippets/doc/src/snippets/xml/prettyprint/main.cpp
deleted file mode 100644
index 33875ae..0000000
--- a/doc/codesnippets/doc/src/snippets/xml/prettyprint/main.cpp
+++ /dev/null
@@ -1,144 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial Usage
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
-** package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://www.qtsoftware.com/contact.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QCoreApplication>
-#include <QFile>
-#include <QHash>
-#include <QPair>
-#include <QStringList>
-#include <QTextStream>
-#include <QXmlStreamReader>
-
-/*
- This class exists for the sole purpose of creating a translation context.
- */
-class PrettyPrint
-{
- Q_DECLARE_TR_FUNCTIONS(PrettyPrint)
-};
-
-int main(int argc, char *argv[])
-{
- enum ExitCode
- {
- Success,
- ParseFailure,
- ArgumentError,
- WriteError,
- FileFailure
- };
-
- QCoreApplication app(argc, argv);
-
- QTextStream errorStream(stderr);
-
- if (argc != 2)
- {
- errorStream << PrettyPrint::tr(
- "Usage: prettyprint <path to XML file>\n");
- return ArgumentError;
- }
-
- QString inputFilePath(QCoreApplication::arguments().at(1));
- QFile inputFile(inputFilePath);
-
- if (!QFile::exists(inputFilePath))
- {
- errorStream << PrettyPrint::tr(
- "File %1 does not exist.\n").arg(inputFilePath);
- return FileFailure;
-
- } else if (!inputFile.open(QIODevice::ReadOnly)) {
- errorStream << PrettyPrint::tr(
- "Failed to open file %1.\n").arg(inputFilePath);
- return FileFailure;
- }
-
- QFile outputFile;
- if (!outputFile.open(stdout, QIODevice::WriteOnly))
- {
- QTextStream(stderr) << PrettyPrint::tr("Failed to open stdout.");
- return WriteError;
- }
-
- QXmlStreamReader reader(&inputFile);
- int indentation = 0;
- QHash<int,QPair<int, int> > indentationStack;
-
- while (!reader.atEnd())
- {
- reader.readNext();
- if (reader.isStartElement()) {
- indentationStack[indentation] = QPair<int,int>(
- reader.lineNumber(), reader.columnNumber());
- indentation += 1;
- } else if (reader.isEndElement()) {
- indentationStack.remove(indentation);
- indentation -= 1;
- }
-
- if (reader.error())
- {
- errorStream << PrettyPrint::tr(
- "Error: %1 in file %2 at line %3, column %4.\n").arg(
- reader.errorString(), inputFilePath,
- QString::number(reader.lineNumber()),
- QString::number(reader.columnNumber()));
- if (indentationStack.contains(indentation-1)) {
- int line = indentationStack[indentation-1].first;
- int column = indentationStack[indentation-1].second;
- errorStream << PrettyPrint::tr(
- "Opened at line %1, column %2.\n").arg(
- QString::number(line),
- QString::number(column));
- }
- return ParseFailure;
-
- } else if (reader.isStartElement() && !reader.name().isEmpty()) {
- outputFile.write(QByteArray().fill(' ', indentation));
- outputFile.write(reader.name().toString().toLocal8Bit());
- outputFile.write(QString(" line %1, column %2\n").arg(
- reader.lineNumber()).arg(reader.columnNumber()).toLocal8Bit());
- }
- }
-
- return Success;
-}
diff --git a/doc/codesnippets/doc/src/snippets/xml/prettyprint/prettyprint.pro b/doc/codesnippets/doc/src/snippets/xml/prettyprint/prettyprint.pro
deleted file mode 100644
index 61945e0..0000000
--- a/doc/codesnippets/doc/src/snippets/xml/prettyprint/prettyprint.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-CONFIG += console
-QT -= gui
-QT += xml
-SOURCES += main.cpp
diff --git a/doc/codesnippets/doc/src/snippets/xml/simpleparse/simpleparse.pro b/doc/codesnippets/doc/src/snippets/xml/simpleparse/simpleparse.pro
deleted file mode 100644
index fbea770..0000000
--- a/doc/codesnippets/doc/src/snippets/xml/simpleparse/simpleparse.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-HEADERS = handler.h
-SOURCES = handler.cpp \
- main.cpp
-QT += xml
diff --git a/doc/codesnippets/doc/src/snippets/xml/xml.pro b/doc/codesnippets/doc/src/snippets/xml/xml.pro
deleted file mode 100644
index a321bad..0000000
--- a/doc/codesnippets/doc/src/snippets/xml/xml.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-### A qmake file for the snippets. *** This is not for distribution. ***
-#
-# The snippets that don't work are commented out.
-
-TEMPLATE = subdirs
-SUBDIRS = prettyprint
-# rsslisting
-# simpleparse
diff --git a/doc/codesnippets/examples/dialogs/licensewizard/licensewizard.pro b/doc/codesnippets/examples/dialogs/licensewizard/licensewizard.pro
deleted file mode 100644
index fd5e37c..0000000
--- a/doc/codesnippets/examples/dialogs/licensewizard/licensewizard.pro
+++ /dev/null
@@ -1,10 +0,0 @@
-HEADERS = licensewizard.h
-SOURCES = licensewizard.cpp \
- main.cpp
-RESOURCES = licensewizard.qrc
-
-# install
-target.path = $$[QT_INSTALL_EXAMPLES]/dialogs/licensewizard
-sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro images
-sources.path = $$[QT_INSTALL_EXAMPLES]/dialogs/licensewizard
-INSTALLS += target sources
diff --git a/doc/codesnippets/examples/dialogs/trivialwizard/trivialwizard.pro b/doc/codesnippets/examples/dialogs/trivialwizard/trivialwizard.pro
deleted file mode 100644
index 970e12f..0000000
--- a/doc/codesnippets/examples/dialogs/trivialwizard/trivialwizard.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-SOURCES = trivialwizard.cpp
-
-# install
-target.path = $$[QT_INSTALL_EXAMPLES]/dialogs/trivialwizard
-sources.files = $$SOURCES $$HEADERS *.pro
-sources.path = $$[QT_INSTALL_EXAMPLES]/dialogs/trivialwizard
-INSTALLS += target sources
diff --git a/doc/codesnippets/snippets/textdocument-resources/textdocument-resources.pro b/doc/codesnippets/snippets/textdocument-resources/textdocument-resources.pro
deleted file mode 100644
index 16181f2..0000000
--- a/doc/codesnippets/snippets/textdocument-resources/textdocument-resources.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES = main.cpp