Doc: Modularize QtGui documentation.
authorCasper van Donderen <casper.vandonderen@nokia.com>
Mon, 7 May 2012 13:50:31 +0000 (15:50 +0200)
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>
Wed, 9 May 2012 06:36:34 +0000 (08:36 +0200)
This change moves the snippets and images to the modularized
directories.

Change-Id: I5f86f598fbe7c47d632c613b85d94ced89ba2c29
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
221 files changed:
src/gui/accessible/qaccessible.cpp
src/gui/doc/images/brush-outline.png [moved from doc/src/images/brush-outline.png with 100% similarity]
src/gui/doc/images/brush-styles.png [new file with mode: 0644]
src/gui/doc/images/coordinatesystem-analogclock.png [moved from doc/src/images/coordinatesystem-analogclock.png with 100% similarity]
src/gui/doc/images/coordinatesystem-line-antialias.png [moved from doc/src/images/coordinatesystem-line-antialias.png with 100% similarity]
src/gui/doc/images/coordinatesystem-line-raster.png [moved from doc/src/images/coordinatesystem-line-raster.png with 100% similarity]
src/gui/doc/images/coordinatesystem-line.png [moved from doc/src/images/coordinatesystem-line.png with 100% similarity]
src/gui/doc/images/coordinatesystem-rect-antialias.png [moved from doc/src/images/coordinatesystem-rect-antialias.png with 100% similarity]
src/gui/doc/images/coordinatesystem-rect-raster.png [moved from doc/src/images/coordinatesystem-rect-raster.png with 100% similarity]
src/gui/doc/images/coordinatesystem-rect.png [moved from doc/src/images/coordinatesystem-rect.png with 100% similarity]
src/gui/doc/images/coordinatesystem-transformations.png [moved from doc/src/images/coordinatesystem-transformations.png with 100% similarity]
src/gui/doc/images/cursor-arrow.png [new file with mode: 0644]
src/gui/doc/images/cursor-busy.png [new file with mode: 0644]
src/gui/doc/images/cursor-closedhand.png [new file with mode: 0644]
src/gui/doc/images/cursor-cross.png [new file with mode: 0644]
src/gui/doc/images/cursor-forbidden.png [new file with mode: 0644]
src/gui/doc/images/cursor-hand.png [new file with mode: 0644]
src/gui/doc/images/cursor-hsplit.png [new file with mode: 0644]
src/gui/doc/images/cursor-ibeam.png [new file with mode: 0644]
src/gui/doc/images/cursor-openhand.png [new file with mode: 0644]
src/gui/doc/images/cursor-sizeall.png [new file with mode: 0644]
src/gui/doc/images/cursor-sizeb.png [new file with mode: 0644]
src/gui/doc/images/cursor-sizef.png [new file with mode: 0644]
src/gui/doc/images/cursor-sizeh.png [new file with mode: 0644]
src/gui/doc/images/cursor-sizev.png [new file with mode: 0644]
src/gui/doc/images/cursor-uparrow.png [new file with mode: 0644]
src/gui/doc/images/cursor-vsplit.png [new file with mode: 0644]
src/gui/doc/images/cursor-wait.png [new file with mode: 0644]
src/gui/doc/images/cursor-whatsthis.png [new file with mode: 0644]
src/gui/doc/images/hoverevents.png [moved from doc/src/images/hoverevents.png with 100% similarity]
src/gui/doc/images/paintsystem-antialiasing.png [moved from doc/src/images/paintsystem-antialiasing.png with 100% similarity]
src/gui/doc/images/paintsystem-core.png [moved from doc/src/images/paintsystem-core.png with 100% similarity]
src/gui/doc/images/paintsystem-devices.png [moved from doc/src/images/paintsystem-devices.png with 100% similarity]
src/gui/doc/images/paintsystem-fancygradient.png [moved from doc/src/images/paintsystem-fancygradient.png with 100% similarity]
src/gui/doc/images/paintsystem-gradients.png [moved from doc/src/images/paintsystem-gradients.png with 100% similarity]
src/gui/doc/images/paintsystem-icon.png [moved from doc/src/images/paintsystem-icon.png with 100% similarity]
src/gui/doc/images/paintsystem-movie.png [moved from doc/src/images/paintsystem-movie.png with 100% similarity]
src/gui/doc/images/paintsystem-painterpath.png [moved from doc/src/images/paintsystem-painterpath.png with 100% similarity]
src/gui/doc/images/paintsystem-stylepainter.png [moved from doc/src/images/paintsystem-stylepainter.png with 100% similarity]
src/gui/doc/images/paintsystem-svg.png [moved from doc/src/images/paintsystem-svg.png with 100% similarity]
src/gui/doc/images/qcolor-cmyk.png [moved from doc/src/images/qcolor-cmyk.png with 100% similarity]
src/gui/doc/images/qcolor-hsv.png [moved from doc/src/images/qcolor-hsv.png with 100% similarity]
src/gui/doc/images/qcolor-hue.png [moved from doc/src/images/qcolor-hue.png with 100% similarity]
src/gui/doc/images/qcolor-rgb.png [moved from doc/src/images/qcolor-rgb.png with 100% similarity]
src/gui/doc/images/qcolor-saturation.png [moved from doc/src/images/qcolor-saturation.png with 100% similarity]
src/gui/doc/images/qcolor-value.png [moved from doc/src/images/qcolor-value.png with 100% similarity]
src/gui/doc/images/qconicalgradient.png [moved from doc/src/images/qconicalgradient.png with 100% similarity]
src/gui/doc/images/qgradient-conical.png [moved from doc/src/images/qgradient-conical.png with 100% similarity]
src/gui/doc/images/qgradient-linear.png [moved from doc/src/images/qgradient-linear.png with 100% similarity]
src/gui/doc/images/qgradient-radial.png [moved from doc/src/images/qgradient-radial.png with 100% similarity]
src/gui/doc/images/qimage-32bit_scaled.png [moved from doc/src/images/qimage-32bit_scaled.png with 100% similarity]
src/gui/doc/images/qimage-8bit_scaled.png [moved from doc/src/images/qimage-8bit_scaled.png with 100% similarity]
src/gui/doc/images/qimage-scaling.png [new file with mode: 0644]
src/gui/doc/images/qlineargradient-pad.png [moved from doc/src/images/qlineargradient-pad.png with 100% similarity]
src/gui/doc/images/qlineargradient-reflect.png [moved from doc/src/images/qlineargradient-reflect.png with 100% similarity]
src/gui/doc/images/qlineargradient-repeat.png [moved from doc/src/images/qlineargradient-repeat.png with 100% similarity]
src/gui/doc/images/qmatrix-combinedtransformation.png [moved from doc/src/images/qmatrix-combinedtransformation.png with 100% similarity]
src/gui/doc/images/qmatrix-representation.png [moved from doc/src/images/qmatrix-representation.png with 100% similarity]
src/gui/doc/images/qmatrix-simpletransformation.png [moved from doc/src/images/qmatrix-simpletransformation.png with 100% similarity]
src/gui/doc/images/qpainter-affinetransformations.png [moved from doc/src/images/qpainter-affinetransformations.png with 100% similarity]
src/gui/doc/images/qpainter-arc.png [moved from doc/src/images/qpainter-arc.png with 100% similarity]
src/gui/doc/images/qpainter-basicdrawing.png [moved from doc/src/images/qpainter-basicdrawing.png with 100% similarity]
src/gui/doc/images/qpainter-chord.png [moved from doc/src/images/qpainter-chord.png with 100% similarity]
src/gui/doc/images/qpainter-clock.png [moved from doc/src/images/qpainter-clock.png with 100% similarity]
src/gui/doc/images/qpainter-compositiondemo.png [moved from doc/src/images/qpainter-compositiondemo.png with 100% similarity]
src/gui/doc/images/qpainter-compositionmode1.png [moved from doc/src/images/qpainter-compositionmode1.png with 100% similarity]
src/gui/doc/images/qpainter-compositionmode2.png [moved from doc/src/images/qpainter-compositionmode2.png with 100% similarity]
src/gui/doc/images/qpainter-concentriccircles.png [moved from doc/src/images/qpainter-concentriccircles.png with 100% similarity]
src/gui/doc/images/qpainter-ellipse.png [moved from doc/src/images/qpainter-ellipse.png with 100% similarity]
src/gui/doc/images/qpainter-gradients.png [moved from doc/src/images/qpainter-gradients.png with 100% similarity]
src/gui/doc/images/qpainter-line.png [moved from doc/src/images/qpainter-line.png with 100% similarity]
src/gui/doc/images/qpainter-painterpaths.png [moved from doc/src/images/qpainter-painterpaths.png with 100% similarity]
src/gui/doc/images/qpainter-path.png [moved from doc/src/images/qpainter-path.png with 100% similarity]
src/gui/doc/images/qpainter-pathstroking.png [moved from doc/src/images/qpainter-pathstroking.png with 100% similarity]
src/gui/doc/images/qpainter-pie.png [moved from doc/src/images/qpainter-pie.png with 100% similarity]
src/gui/doc/images/qpainter-polygon.png [moved from doc/src/images/qpainter-polygon.png with 100% similarity]
src/gui/doc/images/qpainter-rectangle.png [moved from doc/src/images/qpainter-rectangle.png with 100% similarity]
src/gui/doc/images/qpainter-rotation.png [moved from doc/src/images/qpainter-rotation.png with 100% similarity]
src/gui/doc/images/qpainter-roundrect.png [moved from doc/src/images/qpainter-roundrect.png with 100% similarity]
src/gui/doc/images/qpainter-scale.png [moved from doc/src/images/qpainter-scale.png with 100% similarity]
src/gui/doc/images/qpainter-text.png [moved from doc/src/images/qpainter-text.png with 100% similarity]
src/gui/doc/images/qpainter-translation.png [moved from doc/src/images/qpainter-translation.png with 100% similarity]
src/gui/doc/images/qpainter-vectordeformation.png [moved from doc/src/images/qpainter-vectordeformation.png with 100% similarity]
src/gui/doc/images/qpainterpath-addellipse.png [moved from doc/src/images/qpainterpath-addellipse.png with 100% similarity]
src/gui/doc/images/qpainterpath-addpolygon.png [moved from doc/src/images/qpainterpath-addpolygon.png with 100% similarity]
src/gui/doc/images/qpainterpath-addrectangle.png [moved from doc/src/images/qpainterpath-addrectangle.png with 100% similarity]
src/gui/doc/images/qpainterpath-addtext.png [moved from doc/src/images/qpainterpath-addtext.png with 100% similarity]
src/gui/doc/images/qpainterpath-arcto.png [moved from doc/src/images/qpainterpath-arcto.png with 100% similarity]
src/gui/doc/images/qpainterpath-construction.png [moved from doc/src/images/qpainterpath-construction.png with 100% similarity]
src/gui/doc/images/qpainterpath-cubicto.png [moved from doc/src/images/qpainterpath-cubicto.png with 100% similarity]
src/gui/doc/images/qpainterpath-demo.png [moved from doc/src/images/qpainterpath-demo.png with 100% similarity]
src/gui/doc/images/qpainterpath-example.png [moved from doc/src/images/qpainterpath-example.png with 100% similarity]
src/gui/doc/images/qpen-bevel.png [new file with mode: 0644]
src/gui/doc/images/qpen-custom.png [new file with mode: 0644]
src/gui/doc/images/qpen-dash.png [new file with mode: 0644]
src/gui/doc/images/qpen-dashdot.png [new file with mode: 0644]
src/gui/doc/images/qpen-dashdotdot.png [new file with mode: 0644]
src/gui/doc/images/qpen-dashpattern.png [moved from doc/src/images/qpen-dashpattern.png with 100% similarity]
src/gui/doc/images/qpen-demo.png [moved from doc/src/images/qpen-demo.png with 100% similarity]
src/gui/doc/images/qpen-dot.png [new file with mode: 0644]
src/gui/doc/images/qpen-flat.png [new file with mode: 0644]
src/gui/doc/images/qpen-miter.png [new file with mode: 0644]
src/gui/doc/images/qpen-miterlimit.png [moved from doc/src/images/qpen-miterlimit.png with 100% similarity]
src/gui/doc/images/qpen-roundcap.png [new file with mode: 0644]
src/gui/doc/images/qpen-roundjoin.png [new file with mode: 0644]
src/gui/doc/images/qpen-solid.png [new file with mode: 0644]
src/gui/doc/images/qpen-square.png [new file with mode: 0644]
src/gui/doc/images/qradialgradient-pad.png [moved from doc/src/images/qradialgradient-pad.png with 100% similarity]
src/gui/doc/images/qradialgradient-reflect.png [moved from doc/src/images/qradialgradient-reflect.png with 100% similarity]
src/gui/doc/images/qradialgradient-repeat.png [moved from doc/src/images/qradialgradient-repeat.png with 100% similarity]
src/gui/doc/images/qstatustipevent-action.png [moved from doc/src/images/qstatustipevent-action.png with 100% similarity]
src/gui/doc/images/qstatustipevent-widget.png [moved from doc/src/images/qstatustipevent-widget.png with 100% similarity]
src/gui/doc/images/qt-fillrule-oddeven.png [moved from doc/src/images/qt-fillrule-oddeven.png with 100% similarity]
src/gui/doc/images/qt-fillrule-winding.png [moved from doc/src/images/qt-fillrule-winding.png with 100% similarity]
src/gui/doc/images/qtexttableformat-cell.png [moved from doc/src/images/qtexttableformat-cell.png with 100% similarity]
src/gui/doc/images/qtransform-combinedtransformation.png [moved from doc/src/images/qtransform-combinedtransformation.png with 100% similarity]
src/gui/doc/images/qtransform-combinedtransformation2.png [moved from doc/src/images/qtransform-combinedtransformation2.png with 100% similarity]
src/gui/doc/images/qtransform-representation.png [moved from doc/src/images/qtransform-representation.png with 100% similarity]
src/gui/doc/images/qtransform-simpletransformation.png [moved from doc/src/images/qtransform-simpletransformation.png with 100% similarity]
src/gui/doc/images/texttable-merge.png [moved from doc/src/images/texttable-merge.png with 100% similarity]
src/gui/doc/images/texttable-split.png [moved from doc/src/images/texttable-split.png with 100% similarity]
src/gui/doc/qtgui.qdocconf [new file with mode: 0644]
src/gui/doc/snippets/brush/brush.cpp [moved from doc/src/snippets/brush/brush.cpp with 100% similarity]
src/gui/doc/snippets/brush/gradientcreationsnippet.cpp [moved from doc/src/snippets/brush/gradientcreationsnippet.cpp with 100% similarity]
src/gui/doc/snippets/code/doc_src_qtgui.pro [moved from doc/src/snippets/code/doc_src_qtgui.pro with 100% similarity]
src/gui/doc/snippets/code/src_gui_accessible_qaccessible.cpp [moved from doc/src/snippets/code/src_gui_accessible_qaccessible.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_image_qimage.cpp [moved from doc/src/snippets/code/src_gui_image_qimage.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_image_qimagereader.cpp [moved from doc/src/snippets/code/src_gui_image_qimagereader.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_image_qimagewriter.cpp [moved from doc/src/snippets/code/src_gui_image_qimagewriter.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_image_qmovie.cpp [moved from doc/src/snippets/code/src_gui_image_qmovie.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_image_qpixmap.cpp [moved from doc/src/snippets/code/src_gui_image_qpixmap.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_image_qpixmapcache.cpp [moved from doc/src/snippets/code/src_gui_image_qpixmapcache.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_kernel_qapplication.cpp [moved from doc/src/snippets/code/src_gui_kernel_qapplication.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_kernel_qapplication_x11.cpp [moved from doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_kernel_qclipboard.cpp [moved from doc/src/snippets/code/src_gui_kernel_qclipboard.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_kernel_qevent.cpp [moved from doc/src/snippets/code/src_gui_kernel_qevent.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_kernel_qkeysequence.cpp [moved from doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_kernel_qshortcutmap.cpp [moved from doc/src/snippets/code/src_gui_kernel_qshortcutmap.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qbrush.cpp [moved from doc/src/snippets/code/src_gui_painting_qbrush.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qcolor.cpp [moved from doc/src/snippets/code/src_gui_painting_qcolor.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qmatrix.cpp [moved from doc/src/snippets/code/src_gui_painting_qmatrix.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp [moved from doc/src/snippets/code/src_gui_painting_qpainter.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qpainterpath.cpp [moved from doc/src/snippets/code/src_gui_painting_qpainterpath.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qpen.cpp [moved from doc/src/snippets/code/src_gui_painting_qpen.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qregion.cpp [moved from doc/src/snippets/code/src_gui_painting_qregion.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qregion_unix.cpp [moved from doc/src/snippets/code/src_gui_painting_qregion_unix.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_painting_qtransform.cpp [moved from doc/src/snippets/code/src_gui_painting_qtransform.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_qopenglshaderprogram.cpp [moved from doc/src/snippets/code/src_gui_qopenglshaderprogram.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qfont.cpp [moved from doc/src/snippets/code/src_gui_text_qfont.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qfontmetrics.cpp [moved from doc/src/snippets/code/src_gui_text_qfontmetrics.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qsyntaxhighlighter.cpp [moved from doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qtextcursor.cpp [moved from doc/src/snippets/code/src_gui_text_qtextcursor.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qtextdocument.cpp [moved from doc/src/snippets/code/src_gui_text_qtextdocument.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qtextdocumentwriter.cpp [moved from doc/src/snippets/code/src.gui.text.qtextdocumentwriter.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_text_qtextlayout.cpp [moved from doc/src/snippets/code/src_gui_text_qtextlayout.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_util_qdesktopservices.cpp [moved from doc/src/snippets/code/src_gui_util_qdesktopservices.cpp with 100% similarity]
src/gui/doc/snippets/code/src_gui_util_qvalidator.cpp [moved from doc/src/snippets/code/src_gui_widgets_qvalidator.cpp with 100% similarity]
src/gui/doc/snippets/dragging/mainwindow.cpp [moved from doc/src/snippets/dragging/mainwindow.cpp with 100% similarity]
src/gui/doc/snippets/droparea.cpp [moved from doc/src/snippets/droparea.cpp with 100% similarity]
src/gui/doc/snippets/image/image.cpp [moved from doc/src/snippets/image/image.cpp with 100% similarity]
src/gui/doc/snippets/image/supportedformat.cpp [moved from doc/src/snippets/image/supportedformat.cpp with 100% similarity]
src/gui/doc/snippets/matrix/matrix.cpp [moved from doc/src/snippets/matrix/matrix.cpp with 100% similarity]
src/gui/doc/snippets/picture/picture.cpp [moved from doc/src/snippets/picture/picture.cpp with 100% similarity]
src/gui/doc/snippets/polygon/polygon.cpp [moved from doc/src/snippets/polygon/polygon.cpp with 100% similarity]
src/gui/doc/snippets/qfontdatabase/main.cpp [moved from doc/src/snippets/qfontdatabase/main.cpp with 100% similarity]
src/gui/doc/snippets/qstatustipevent/main.cpp [moved from doc/src/snippets/qstatustipevent/main.cpp with 100% similarity]
src/gui/doc/snippets/separations/finalwidget.cpp [moved from doc/src/snippets/separations/finalwidget.cpp with 100% similarity]
src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp [moved from doc/src/snippets/textblock-fragments/xmlwriter.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-css/main.cpp [moved from doc/src/snippets/textdocument-css/main.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-listitemstyles/main.cpp [moved from doc/src/snippets/textdocument-listitemstyles/main.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.cpp [moved from doc/src/snippets/textdocument-listitemstyles/mainwindow.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h [moved from doc/src/snippets/textdocument-listitemstyles/mainwindow.h with 100% similarity]
src/gui/doc/snippets/textdocument-listitemstyles/textdocument-listitemstyles.pro [moved from doc/src/snippets/textdocument-listitemstyles/textdocument-listitemstyles.pro with 100% similarity]
src/gui/doc/snippets/textdocument-lists/mainwindow.cpp [moved from doc/src/snippets/textdocument-lists/mainwindow.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-resources/main.cpp [moved from doc/src/snippets/textdocument-resources/main.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-resources/textdocument-resources.pro [moved from doc/src/snippets/textdocument-resources/textdocument-resources.pro with 100% similarity]
src/gui/doc/snippets/textdocument-tables/mainwindow.cpp [moved from doc/src/snippets/textdocument-tables/mainwindow.cpp with 100% similarity]
src/gui/doc/snippets/textdocument-texttable/main.cpp [moved from doc/src/snippets/textdocument-texttable/main.cpp with 100% similarity]
src/gui/doc/snippets/textdocumentendsnippet.cpp [moved from doc/src/snippets/textdocumentendsnippet.cpp with 100% similarity]
src/gui/doc/snippets/transform/main.cpp [moved from doc/src/snippets/transform/main.cpp with 100% similarity]
src/gui/doc/src/coordsys.qdoc [moved from doc/src/gui/coordsys.qdoc with 100% similarity]
src/gui/doc/src/paintsystem.qdoc [moved from doc/src/gui/paintsystem.qdoc with 100% similarity]
src/gui/doc/src/qtgui.qdoc [moved from doc/src/gui/qtgui.qdoc with 95% similarity]
src/gui/image/qimage.cpp
src/gui/image/qimagereader.cpp
src/gui/image/qimagewriter.cpp
src/gui/image/qmovie.cpp
src/gui/image/qpicture.cpp
src/gui/image/qpixmap.cpp
src/gui/image/qpixmapcache.cpp
src/gui/kernel/qclipboard.cpp
src/gui/kernel/qdrag.cpp
src/gui/kernel/qevent.cpp
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qkeysequence.cpp
src/gui/kernel/qpalette.cpp
src/gui/kernel/qshortcutmap.cpp
src/gui/opengl/qopenglshaderprogram.cpp
src/gui/painting/qbrush.cpp
src/gui/painting/qcolor.cpp
src/gui/painting/qmatrix.cpp
src/gui/painting/qpainter.cpp
src/gui/painting/qpainterpath.cpp
src/gui/painting/qpen.cpp
src/gui/painting/qpolygon.cpp
src/gui/painting/qregion.cpp
src/gui/painting/qtransform.cpp
src/gui/text/qfont.cpp
src/gui/text/qfontdatabase.cpp
src/gui/text/qfontmetrics.cpp
src/gui/text/qsyntaxhighlighter.cpp
src/gui/text/qtextcursor.cpp
src/gui/text/qtextdocument.cpp
src/gui/text/qtextdocumentwriter.cpp
src/gui/text/qtextformat.cpp
src/gui/text/qtextlayout.cpp
src/gui/text/qtextlist.cpp
src/gui/text/qtextobject.cpp
src/gui/text/qtexttable.cpp
src/gui/util/qdesktopservices.cpp
src/gui/util/qvalidator.cpp

index 0231846..6f1d505 100644 (file)
@@ -460,7 +460,7 @@ static void qAccessibleCleanup()
     This is a typedef for a pointer to a function with the following
     signature:
 
-    \snippet doc/src/snippets/code/src_gui_accessible_qaccessible.cpp 1
+    \snippet code/src_gui_accessible_qaccessible.cpp 1
 
     The function receives a QString and a QObject pointer, where the
     QString is the key identifying the interface. The QObject is used
diff --git a/src/gui/doc/images/brush-styles.png b/src/gui/doc/images/brush-styles.png
new file mode 100644 (file)
index 0000000..eecb006
Binary files /dev/null and b/src/gui/doc/images/brush-styles.png differ
diff --git a/src/gui/doc/images/cursor-arrow.png b/src/gui/doc/images/cursor-arrow.png
new file mode 100644 (file)
index 0000000..a69ef4e
Binary files /dev/null and b/src/gui/doc/images/cursor-arrow.png differ
diff --git a/src/gui/doc/images/cursor-busy.png b/src/gui/doc/images/cursor-busy.png
new file mode 100644 (file)
index 0000000..53717e4
Binary files /dev/null and b/src/gui/doc/images/cursor-busy.png differ
diff --git a/src/gui/doc/images/cursor-closedhand.png b/src/gui/doc/images/cursor-closedhand.png
new file mode 100644 (file)
index 0000000..b78dd1d
Binary files /dev/null and b/src/gui/doc/images/cursor-closedhand.png differ
diff --git a/src/gui/doc/images/cursor-cross.png b/src/gui/doc/images/cursor-cross.png
new file mode 100644 (file)
index 0000000..fe38e74
Binary files /dev/null and b/src/gui/doc/images/cursor-cross.png differ
diff --git a/src/gui/doc/images/cursor-forbidden.png b/src/gui/doc/images/cursor-forbidden.png
new file mode 100644 (file)
index 0000000..2b08c4e
Binary files /dev/null and b/src/gui/doc/images/cursor-forbidden.png differ
diff --git a/src/gui/doc/images/cursor-hand.png b/src/gui/doc/images/cursor-hand.png
new file mode 100644 (file)
index 0000000..d2004ae
Binary files /dev/null and b/src/gui/doc/images/cursor-hand.png differ
diff --git a/src/gui/doc/images/cursor-hsplit.png b/src/gui/doc/images/cursor-hsplit.png
new file mode 100644 (file)
index 0000000..a5667e3
Binary files /dev/null and b/src/gui/doc/images/cursor-hsplit.png differ
diff --git a/src/gui/doc/images/cursor-ibeam.png b/src/gui/doc/images/cursor-ibeam.png
new file mode 100644 (file)
index 0000000..097fc5f
Binary files /dev/null and b/src/gui/doc/images/cursor-ibeam.png differ
diff --git a/src/gui/doc/images/cursor-openhand.png b/src/gui/doc/images/cursor-openhand.png
new file mode 100644 (file)
index 0000000..9181c85
Binary files /dev/null and b/src/gui/doc/images/cursor-openhand.png differ
diff --git a/src/gui/doc/images/cursor-sizeall.png b/src/gui/doc/images/cursor-sizeall.png
new file mode 100644 (file)
index 0000000..69f13eb
Binary files /dev/null and b/src/gui/doc/images/cursor-sizeall.png differ
diff --git a/src/gui/doc/images/cursor-sizeb.png b/src/gui/doc/images/cursor-sizeb.png
new file mode 100644 (file)
index 0000000..f37d7b9
Binary files /dev/null and b/src/gui/doc/images/cursor-sizeb.png differ
diff --git a/src/gui/doc/images/cursor-sizef.png b/src/gui/doc/images/cursor-sizef.png
new file mode 100644 (file)
index 0000000..3b127a0
Binary files /dev/null and b/src/gui/doc/images/cursor-sizef.png differ
diff --git a/src/gui/doc/images/cursor-sizeh.png b/src/gui/doc/images/cursor-sizeh.png
new file mode 100644 (file)
index 0000000..a9f40cb
Binary files /dev/null and b/src/gui/doc/images/cursor-sizeh.png differ
diff --git a/src/gui/doc/images/cursor-sizev.png b/src/gui/doc/images/cursor-sizev.png
new file mode 100644 (file)
index 0000000..1edbab2
Binary files /dev/null and b/src/gui/doc/images/cursor-sizev.png differ
diff --git a/src/gui/doc/images/cursor-uparrow.png b/src/gui/doc/images/cursor-uparrow.png
new file mode 100644 (file)
index 0000000..d3e70ef
Binary files /dev/null and b/src/gui/doc/images/cursor-uparrow.png differ
diff --git a/src/gui/doc/images/cursor-vsplit.png b/src/gui/doc/images/cursor-vsplit.png
new file mode 100644 (file)
index 0000000..1beda25
Binary files /dev/null and b/src/gui/doc/images/cursor-vsplit.png differ
diff --git a/src/gui/doc/images/cursor-wait.png b/src/gui/doc/images/cursor-wait.png
new file mode 100644 (file)
index 0000000..69056c4
Binary files /dev/null and b/src/gui/doc/images/cursor-wait.png differ
diff --git a/src/gui/doc/images/cursor-whatsthis.png b/src/gui/doc/images/cursor-whatsthis.png
new file mode 100644 (file)
index 0000000..b47601c
Binary files /dev/null and b/src/gui/doc/images/cursor-whatsthis.png differ
diff --git a/src/gui/doc/images/qimage-scaling.png b/src/gui/doc/images/qimage-scaling.png
new file mode 100644 (file)
index 0000000..fcd7144
Binary files /dev/null and b/src/gui/doc/images/qimage-scaling.png differ
diff --git a/src/gui/doc/images/qpen-bevel.png b/src/gui/doc/images/qpen-bevel.png
new file mode 100644 (file)
index 0000000..8a30779
Binary files /dev/null and b/src/gui/doc/images/qpen-bevel.png differ
diff --git a/src/gui/doc/images/qpen-custom.png b/src/gui/doc/images/qpen-custom.png
new file mode 100644 (file)
index 0000000..a2a038a
Binary files /dev/null and b/src/gui/doc/images/qpen-custom.png differ
diff --git a/src/gui/doc/images/qpen-dash.png b/src/gui/doc/images/qpen-dash.png
new file mode 100644 (file)
index 0000000..67082c3
Binary files /dev/null and b/src/gui/doc/images/qpen-dash.png differ
diff --git a/src/gui/doc/images/qpen-dashdot.png b/src/gui/doc/images/qpen-dashdot.png
new file mode 100644 (file)
index 0000000..64b3846
Binary files /dev/null and b/src/gui/doc/images/qpen-dashdot.png differ
diff --git a/src/gui/doc/images/qpen-dashdotdot.png b/src/gui/doc/images/qpen-dashdotdot.png
new file mode 100644 (file)
index 0000000..ff1b2e6
Binary files /dev/null and b/src/gui/doc/images/qpen-dashdotdot.png differ
diff --git a/src/gui/doc/images/qpen-dot.png b/src/gui/doc/images/qpen-dot.png
new file mode 100644 (file)
index 0000000..54e81c9
Binary files /dev/null and b/src/gui/doc/images/qpen-dot.png differ
diff --git a/src/gui/doc/images/qpen-flat.png b/src/gui/doc/images/qpen-flat.png
new file mode 100644 (file)
index 0000000..06e2195
Binary files /dev/null and b/src/gui/doc/images/qpen-flat.png differ
diff --git a/src/gui/doc/images/qpen-miter.png b/src/gui/doc/images/qpen-miter.png
new file mode 100644 (file)
index 0000000..025e003
Binary files /dev/null and b/src/gui/doc/images/qpen-miter.png differ
diff --git a/src/gui/doc/images/qpen-roundcap.png b/src/gui/doc/images/qpen-roundcap.png
new file mode 100644 (file)
index 0000000..77b22b2
Binary files /dev/null and b/src/gui/doc/images/qpen-roundcap.png differ
diff --git a/src/gui/doc/images/qpen-roundjoin.png b/src/gui/doc/images/qpen-roundjoin.png
new file mode 100644 (file)
index 0000000..155e2aa
Binary files /dev/null and b/src/gui/doc/images/qpen-roundjoin.png differ
diff --git a/src/gui/doc/images/qpen-solid.png b/src/gui/doc/images/qpen-solid.png
new file mode 100644 (file)
index 0000000..e042b18
Binary files /dev/null and b/src/gui/doc/images/qpen-solid.png differ
diff --git a/src/gui/doc/images/qpen-square.png b/src/gui/doc/images/qpen-square.png
new file mode 100644 (file)
index 0000000..ebc5d1e
Binary files /dev/null and b/src/gui/doc/images/qpen-square.png differ
diff --git a/src/gui/doc/qtgui.qdocconf b/src/gui/doc/qtgui.qdocconf
new file mode 100644 (file)
index 0000000..85772bb
--- /dev/null
@@ -0,0 +1,92 @@
+include(../../../doc/global/qt-cpp-ignore.qdocconf)
+
+project                 = QtGui
+description             = Qt GUI Reference Documentation
+url                     = http://qt-project.org/doc/qt-5.0/qtgui
+version                 = 5.0.0
+
+sourceencoding          = UTF-8
+outputencoding          = UTF-8
+naturallanguage         = en_US
+qhp.projects            = QtGui
+
+qhp.QtGui.file         = qtgui.qhp
+qhp.QtGui.namespace           = org.qt-project.qtgui.500
+qhp.QtGui.virtualFolder       = qdoc
+qhp.QtGui.indexTitle          = Qt GUI Reference Documentation
+qhp.QtGui.indexRoot           =
+
+qhp.QtGui.filterAttributes    = qtgui 5.0.0 qtrefdoc
+qhp.QtGui.customFilters.Qt.name = Qtgui 5.0.0
+qhp.QtGui.customFilters.Qt.filterAttributes = qtgui 5.0.0
+qhp.QtGui.subprojects         = classes overviews examples
+qhp.QtGui.subprojects.classes.title = Classes
+qhp.QtGui.subprojects.classes.indexTitle = Qt GUI's Classes
+qhp.QtGui.subprojects.classes.selectors = class fake:headerfile
+qhp.QtGui.subprojects.classes.sortPages = true
+qhp.QtGui.subprojects.overviews.title = Overviews
+qhp.QtGui.subprojects.overviews.indexTitle = All Overviews and HOWTOs
+qhp.QtGui.subprojects.overviews.selectors = fake:page,group,module
+qhp.QtGui.subprojects.examples.title = Qt GUI Examples
+qhp.QtGui.subprojects.examples.indexTitle = Qt GUI Examples
+qhp.QtGui.subprojects.examples.selectors = fake:example
+
+dita.metadata.default.author      = Qt Project
+dita.metadata.default.permissions = all
+dita.metadata.default.publisher   = Qt Project
+dita.metadata.default.copyryear = 2012
+dita.metadata.default.copyrholder = Nokia
+dita.metadata.default.audience = programmer
+
+sources.fileextensions  = "*.c++ *.cc *.cpp *.cxx *.mm *.qml *.qdoc"
+headers.fileextensions  = "*.ch *.h *.h++ *.hh *.hpp *.hxx"
+
+examples.fileextensions = "*.cpp *.h *.js *.xq *.svg *.xml *.ui *.qhp *.qhcp *.qml *.css"
+examples.imageextensions = "*.png"
+
+outputdir               = ../../../doc/qtgui
+tagfile                 = ../../../doc/qtgui/qtgui.tags
+
+HTML.generatemacrefs    = "true"
+HTML.nobreadcrumbs      = "true"
+
+HTML.templatedir = .
+
+HTML.stylesheets = ../../../doc/global/style/offline.css
+
+HTML.headerstyles = \
+    "  <link rel=\"stylesheet\" type=\"text/css\" href=\"style/offline.css\" />\n"
+
+HTML.endheader = \
+    "</head>\n" \
+
+defines                 = Q_QDOC \
+                          QT_.*_SUPPORT \
+                          QT_.*_LIB \
+                          QT_COMPAT \
+                          QT_KEYPAD_NAVIGATION \
+                          QT_NO_EGL \
+                          Q_WS_.* \
+                          Q_OS_.* \
+                          Q_BYTE_ORDER \
+                          QT_DEPRECATED \
+                          QT_DEPRECATED_* \
+                          Q_NO_USING_KEYWORD \
+                          __cplusplus \
+                          Q_COMPILER_INITIALIZER_LISTS
+
+versionsym              = QT_VERSION_STR
+
+codeindent              = 1
+
+depends                 += qtcore
+
+headerdirs  += ..
+
+sourcedirs  += ..
+
+exampledirs += ../../../examples \
+               ../ \
+               snippets
+
+imagedirs   += images
similarity index 95%
rename from doc/src/gui/qtgui.qdoc
rename to src/gui/doc/src/qtgui.qdoc
index bffe078..7e11aa5 100644 (file)
@@ -35,5 +35,5 @@
     To include the definitions of both modules' classes, use the
     following directive:
 
-    \snippet doc/src/snippets/code/doc_src_qtgui.pro 0
+    \snippet code/doc_src_qtgui.pro 0
 */
index b8ec7de..64decd0 100644 (file)
@@ -441,7 +441,7 @@ bool QImageData::checkForAlphaPixels() const
     \row
     \li \inlineimage qimage-32bit_scaled.png
     \li
-    \snippet doc/src/snippets/code/src_gui_image_qimage.cpp 0
+    \snippet code/src_gui_image_qimage.cpp 0
     \endtable
 
     In case of a 8-bit and monchrome images, the pixel value is only
@@ -462,7 +462,7 @@ bool QImageData::checkForAlphaPixels() const
     \row
     \li \inlineimage qimage-8bit_scaled.png
     \li
-    \snippet doc/src/snippets/code/src_gui_image_qimage.cpp 1
+    \snippet code/src_gui_image_qimage.cpp 1
     \endtable
 
     QImage also provide the scanLine() function which returns a
@@ -949,7 +949,7 @@ extern bool qt_read_xpm_image_or_array(QIODevice *device, const char * const *so
     Note that it's possible to squeeze the XPM variable a little bit
     by using an unusual declaration:
 
-    \snippet doc/src/snippets/code/src_gui_image_qimage.cpp 2
+    \snippet code/src_gui_image_qimage.cpp 2
 
     The extra \c const makes the entire definition read-only, which is
     slightly more efficient (e.g., when the code is in a shared
@@ -4478,7 +4478,7 @@ bool QImage::save(const QString &fileName, const char *format, int quality) cons
     This can, for example, be used to save an image directly into a
     QByteArray:
 
-    \snippet doc/src/snippets/image/image.cpp 0
+    \snippet image/image.cpp 0
 */
 
 bool QImage::save(QIODevice* device, const char* format, int quality) const
@@ -4801,7 +4801,7 @@ QString QImage::text(const QString &key) const
     if a specific image or format supports embedding text
     by using QImageWriter::supportsOption(). We give an example:
 
-    \snippet doc/src/snippets/image/supportedformat.cpp 0
+    \snippet image/supportedformat.cpp 0
 
     You can use QImageWriter::supportedImageFormats() to find out
     which image formats are available to you.
index fe14a45..c08ac05 100644 (file)
@@ -653,7 +653,7 @@ QImageReader::~QImageReader()
     Sets the format QImageReader will use when reading images, to \a
     format. \a format is a case insensitive text string. Example:
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagereader.cpp 0
+    \snippet code/src_gui_image_qimagereader.cpp 0
 
     You can call supportedImageFormats() for the full list of formats
     QImageReader supports.
@@ -671,7 +671,7 @@ void QImageReader::setFormat(const QByteArray &format)
     You can call this function after assigning a device to the
     reader to determine the format of the device. For example:
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagereader.cpp 1
+    \snippet code/src_gui_image_qimagereader.cpp 1
 
     If the reader cannot read any image from the device (e.g., there is no
     image there, or the image has already been read), or if the format is
@@ -1131,7 +1131,7 @@ QImage QImageReader::read()
     which always constructs a new image; especially when reading several
     images with the same format and size.
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagereader.cpp 2
+    \snippet code/src_gui_image_qimagereader.cpp 2
 
     For image formats that support animation, calling read() repeatedly will
     return the next frame. When all frames have been read, a null image will
@@ -1371,7 +1371,7 @@ QString QImageReader::errorString() const
     (see text()), and the BMP format allows you to determine the image's size
     without loading the whole image into memory (see size()).
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagereader.cpp 3
+    \snippet code/src_gui_image_qimagereader.cpp 3
 
     \sa QImageWriter::supportsOption()
 */
index 8395f9d..56c459e 100644 (file)
@@ -323,7 +323,7 @@ QImageWriter::~QImageWriter()
     Sets the format QImageWriter will use when writing images, to \a
     format. \a format is a case insensitive text string. Example:
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagewriter.cpp 0
+    \snippet code/src_gui_image_qimagewriter.cpp 0
 
     You can call supportedImageFormats() for the full list of formats
     QImageWriter supports.
@@ -522,7 +522,7 @@ QString QImageWriter::description() const
     \a text. This is useful for storing copyright information
     or other information about the image. Example:
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagewriter.cpp 1
+    \snippet code/src_gui_image_qimagewriter.cpp 1
 
     If you want to store a single block of data
     (e.g., a comment), you can pass an empty key, or use
@@ -629,7 +629,7 @@ QString QImageWriter::errorString() const
     example, the PNG format allows you to embed text into the image's metadata
     (see text()).
 
-    \snippet doc/src/snippets/code/src_gui_image_qimagewriter.cpp 2
+    \snippet code/src_gui_image_qimagewriter.cpp 2
 
     Options can be tested after the writer has been associated with a format.
 
index 8dfcf57..e1ddcf1 100644 (file)
@@ -61,7 +61,7 @@
     To display the movie in your application, you can pass your QMovie object
     to QLabel::setMovie(). Example:
 
-    \snippet doc/src/snippets/code/src_gui_image_qmovie.cpp 0
+    \snippet code/src_gui_image_qmovie.cpp 0
 
     Whenever a new frame is available in the movie, QMovie will emit
     updated(). If the size of the frame changes, resized() is emitted. You can
@@ -883,7 +883,7 @@ void QMovie::setPaused(bool paused)
     The default speed is 100%.
     Example:
 
-    \snippet doc/src/snippets/code/src_gui_image_qmovie.cpp 1
+    \snippet code/src_gui_image_qmovie.cpp 1
 */
 void QMovie::setSpeed(int percentSpeed)
 {
index 8bb9f21..283002b 100644 (file)
@@ -92,13 +92,13 @@ void qt_format_text(const QFont &fnt, const QRectF &_r,
     depending on the window system.
 
     Example of how to record a picture:
-    \snippet doc/src/snippets/picture/picture.cpp 0
+    \snippet picture/picture.cpp 0
 
     Note that the list of painter commands is reset on each call to
     the QPainter::begin() function.
 
     Example of how to replay a picture:
-    \snippet doc/src/snippets/picture/picture.cpp 1
+    \snippet picture/picture.cpp 1
 
     Pictures can also be drawn using play(). Some basic data about a
     picture is available, for example, size(), isNull() and
@@ -1226,7 +1226,7 @@ static QStringList qToStringList(const QList<QByteArray> arr)
 
     Note that if you want to iterate over the list, you should iterate
     over a copy, e.g.
-    \snippet doc/src/snippets/picture/picture.cpp 2
+    \snippet picture/picture.cpp 2
 
     \sa outputFormatList() inputFormats() QPictureIO
 */
@@ -1244,7 +1244,7 @@ QStringList QPicture::inputFormatList()
 
     Note that if you want to iterate over the list, you should iterate
     over a copy, e.g.
-    \snippet doc/src/snippets/picture/picture.cpp 3
+    \snippet picture/picture.cpp 3
 
     \sa inputFormatList() outputFormats() QPictureIO
 */
@@ -1464,11 +1464,11 @@ static QPictureHandler *get_picture_handler(const char *format)
     both are null, the QPictureIO object is valid but useless.
 
     Example:
-    \snippet doc/src/snippets/picture/picture.cpp 6
+    \snippet picture/picture.cpp 6
     \codeline
-    \snippet doc/src/snippets/picture/picture.cpp 7
+    \snippet picture/picture.cpp 7
     \codeline
-    \snippet doc/src/snippets/picture/picture.cpp 8
+    \snippet picture/picture.cpp 8
 
     Before the regular expression test, all the 0 bytes in the file header are
     converted to 1 bytes. This is done because when Qt was ASCII-based, QRegExp
@@ -1833,7 +1833,7 @@ QList<QByteArray> QPictureIO::outputFormats()
 
     Example:
 
-    \snippet doc/src/snippets/picture/picture.cpp 4
+    \snippet picture/picture.cpp 4
 
     \sa setIODevice() setFileName() setFormat() write() QPixmap::load()
 */
@@ -1902,7 +1902,7 @@ bool QPictureIO::read()
     The picture will be written using the specified picture format.
 
     Example:
-    \snippet doc/src/snippets/picture/picture.cpp 5
+    \snippet picture/picture.cpp 5
 
     \sa setIODevice() setFileName() setFormat() read() QPixmap::save()
 */
index cefb8ed..377d7e0 100644 (file)
@@ -241,7 +241,7 @@ QPixmap::QPixmap(const QPixmap &pixmap)
     Note that it's possible to squeeze the XPM variable a little bit
     by using an unusual declaration:
 
-    \snippet doc/src/snippets/code/src_gui_image_qpixmap.cpp 0
+    \snippet code/src_gui_image_qpixmap.cpp 0
 
     The extra \c const makes the entire definition read-only, which is
     slightly more efficient (for example, when the code is in a shared
@@ -334,7 +334,7 @@ QPixmap QPixmap::copy(const QRect &rect) const
     region is left unchanged. You can optionally pass a pointer to an empty
     QRegion to get the region that is \a exposed by the scroll operation.
 
-    \snippet doc/src/snippets/code/src_gui_image_qpixmap.cpp 2
+    \snippet code/src_gui_image_qpixmap.cpp 2
 
     You cannot scroll while there is an active painter on the pixmap.
 
@@ -651,7 +651,7 @@ void QPixmap::setMask(const QBitmap &mask)
     The mask may not be perfect but it should be reasonable, so you
     can do things such as the following:
 
-    \snippet doc/src/snippets/code/src_gui_image_qpixmap.cpp 1
+    \snippet code/src_gui_image_qpixmap.cpp 1
 
     This function is slow because it involves converting to/from a
     QImage, and non-trivial computations.
@@ -810,7 +810,7 @@ bool QPixmap::save(const QString &fileName, const char *format, int quality) con
     specified image file \a format and \a quality factor. This can be
     used, for example, to save a pixmap directly into a QByteArray:
 
-    \snippet doc/src/snippets/image/image.cpp 1
+    \snippet image/image.cpp 1
 */
 
 bool QPixmap::save(QIODevice* device, const char* format, int quality) const
index 7769c45..b0e5b7e 100644 (file)
@@ -472,7 +472,7 @@ QPixmapCacheEntry::~QPixmapCacheEntry()
     bool find(const QString&, QPixmap*) instead.
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_image_qpixmapcache.cpp 0
+    \snippet code/src_gui_image_qpixmapcache.cpp 0
 */
 
 QPixmap *QPixmapCache::find(const QString &key)
@@ -500,7 +500,7 @@ bool QPixmapCache::find(const QString &key, QPixmap& pixmap)
     \since 4.6
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_image_qpixmapcache.cpp 1
+    \snippet code/src_gui_image_qpixmapcache.cpp 1
 */
 
 bool QPixmapCache::find(const QString &key, QPixmap* pixmap)
index ef5e4f9..90fd63e 100644 (file)
@@ -67,7 +67,7 @@ QT_BEGIN_NAMESPACE
     as QApplication::clipboard().
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_kernel_qclipboard.cpp 0
+    \snippet code/src_gui_kernel_qclipboard.cpp 0
 
     QClipboard features some convenience functions to access common
     data types: setText() allows the exchange of Unicode text and
@@ -80,7 +80,7 @@ QT_BEGIN_NAMESPACE
 
     A typical example of the use of these functions follows:
 
-    \snippet doc/src/snippets/droparea.cpp 0
+    \snippet droparea.cpp 0
 
     \section1 Notes for X11 Users
 
@@ -366,7 +366,7 @@ QImage QClipboard::image(Mode mode) const
 
     This is shorthand for:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qclipboard.cpp 1
+    \snippet code/src_gui_kernel_qclipboard.cpp 1
 
     \sa image(), setPixmap() setMimeData()
 */
index 40015c8..e20401c 100644 (file)
@@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE
     QMimeData object. This is specified with the setMimeData() function in the
     following way:
 
-    \snippet doc/src/snippets/dragging/mainwindow.cpp 1
+    \snippet dragging/mainwindow.cpp 1
 
     Note that setMimeData() assigns ownership of the QMimeData object to the
     QDrag object. The QDrag must be constructed on the heap with a parent QObject
@@ -80,7 +80,7 @@ QT_BEGIN_NAMESPACE
     that the cursor's hot spot points to the center of its bottom
     edge:
 
-    \snippet doc/src/snippets/separations/finalwidget.cpp 2
+    \snippet separations/finalwidget.cpp 2
 
     \note On X11, the pixmap may not be able to keep up with the mouse
     movements if the hot spot causes the pixmap to be displayed
index 266eb14..eeedd32 100644 (file)
@@ -582,7 +582,7 @@ QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
 
     Example:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qevent.cpp 0
+    \snippet code/src_gui_kernel_qevent.cpp 0
 */
 
 /*!
@@ -604,7 +604,7 @@ QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
 
     Example:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qevent.cpp 0
+    \snippet code/src_gui_kernel_qevent.cpp 0
 */
 
 /*!
@@ -2557,9 +2557,9 @@ QHelpEvent::~QHelpEvent()
     \table 100%
     \row
     \li
-    \snippet doc/src/snippets/qstatustipevent/main.cpp 1
+    \snippet qstatustipevent/main.cpp 1
     \dots
-    \snippet doc/src/snippets/qstatustipevent/main.cpp 3
+    \snippet qstatustipevent/main.cpp 3
     \li
     \image qstatustipevent-widget.png Widget with status tip.
     \endtable
@@ -2570,10 +2570,10 @@ QHelpEvent::~QHelpEvent()
     \table 100%
     \row
     \li
-    \snippet doc/src/snippets/qstatustipevent/main.cpp 0
-    \snippet doc/src/snippets/qstatustipevent/main.cpp 2
+    \snippet qstatustipevent/main.cpp 0
+    \snippet qstatustipevent/main.cpp 2
     \dots
-    \snippet doc/src/snippets/qstatustipevent/main.cpp 3
+    \snippet qstatustipevent/main.cpp 3
     \li
     \image qstatustipevent-action.png Action with status tip.
     \endtable
index 27e84b7..b63ed78 100644 (file)
@@ -2078,7 +2078,7 @@ static inline void applyCursor(const QList<QWindow *> &l, const QCursor &c)
     restoreOverrideCursor(), otherwise the stack will never be emptied.
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp 0
+    \snippet code/src_gui_kernel_qapplication_x11.cpp 0
 
     \sa overrideCursor(), restoreOverrideCursor(), changeOverrideCursor(),
     QWidget::setCursor()
@@ -2134,7 +2134,7 @@ QStyleHints *QGuiApplication::styleHints()
     This function must be called before creating the QGuiApplication object, like
     this:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 6
+    \snippet code/src_gui_kernel_qapplication.cpp 6
 
     \sa desktopSettingsAware()
 */
index 4946a1d..635e3da 100644 (file)
@@ -181,7 +181,7 @@ void Q_GUI_EXPORT qt_set_sequence_auto_mnemonic(bool b) { qt_sequence_no_mnemoni
     printing a document, and can be specified in any of the following
     ways:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp 0
+    \snippet code/src_gui_kernel_qkeysequence.cpp 0
 
     Note that, for letters, the case used in the specification string
     does not matter. In the above examples, the user does not need to
@@ -354,7 +354,7 @@ void Q_GUI_EXPORT qt_set_sequence_auto_mnemonic(bool b) { qt_sequence_no_mnemoni
     For example, the key sequence, \key{Ctrl X} followed by \key{Ctrl C}, can
     be specified using either of the following ways:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp 1
+    \snippet code/src_gui_kernel_qkeysequence.cpp 1
 
     \warning A QApplication instance must have been constructed before a
              QKeySequence is created; otherwise, your application may crash.
@@ -929,7 +929,7 @@ QKeySequence::QKeySequence()
     \endlink(), so that shortcut keys can be replaced in
     translations:
 
-    \snippet doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp 2
+    \snippet code/src_gui_kernel_qkeysequence.cpp 2
 
     Note the "File|Open" translator comment. It is by no means
     necessary, but it provides some context for the human translator.
index ab62ec0..cb18b0d 100644 (file)
@@ -499,7 +499,7 @@ static void qt_palette_from_color(QPalette &pal, const QColor &button)
     and the QTextDocument::setDefaultStyleSheet() function to alter
     the appearance of links. For example:
 
-    \snippet doc/src/snippets/textdocument-css/main.cpp 0
+    \snippet textdocument-css/main.cpp 0
 
     \value NoRole No role; this special role is often used to indicate that a
     role has not been assigned.
index a750082..267f528 100644 (file)
@@ -528,7 +528,7 @@ QKeySequence::SequenceMatch QShortcutMap::find(QKeyEvent *e)
 /*! \internal
     Clears \a seq to an empty QKeySequence.
     Same as doing (the slower)
-    \snippet doc/src/snippets/code/src_gui_kernel_qshortcutmap.cpp 0
+    \snippet code/src_gui_kernel_qshortcutmap.cpp 0
 */
 void QShortcutMap::clearSequence(QVector<QKeySequence> &ksl)
 {
index c0899e5..e9973be 100644 (file)
@@ -71,7 +71,7 @@ QT_BEGIN_NAMESPACE
     program is activated in the current QOpenGLContext by calling
     QOpenGLShaderProgram::bind():
 
-    \snippet doc/src/snippets/code/src_gui_qopenglshaderprogram.cpp 0
+    \snippet code/src_gui_qopenglshaderprogram.cpp 0
 
     \section1 Writing portable shaders
 
@@ -99,12 +99,12 @@ QT_BEGIN_NAMESPACE
 
     \section1 Simple shader example
 
-    \snippet doc/src/snippets/code/src_gui_qopenglshaderprogram.cpp 1
+    \snippet code/src_gui_qopenglshaderprogram.cpp 1
 
     With the above shader program active, we can draw a green triangle
     as follows:
 
-    \snippet doc/src/snippets/code/src_gui_qopenglshaderprogram.cpp 2
+    \snippet code/src_gui_qopenglshaderprogram.cpp 2
 
     \section1 Binary shaders and programs
 
index 2f0fb9f..6ee28a4 100644 (file)
@@ -292,7 +292,7 @@ struct QBrushDataPointerDeleter
     gradients: QLinearGradient, QConicalGradient, and QRadialGradient
     - all of which inherit QGradient.
 
-    \snippet doc/src/snippets/brush/gradientcreationsnippet.cpp 0
+    \snippet brush/gradientcreationsnippet.cpp 0
 
     The texture() defines the pixmap used when the current style is
     Qt::TexturePattern.  You can create a brush with a texture by
@@ -323,7 +323,7 @@ struct QBrushDataPointerDeleter
     QPainter's \l {QPen}{pen} combined with Qt::PenStyle and
     Qt::GlobalColor:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qbrush.cpp 0
+    \snippet code/src_gui_painting_qbrush.cpp 0
 
     Note that, by default, QPainter renders the outline (using the
     currently set pen) when drawing shapes. Use \l {Qt::NoPen}{\c
@@ -1214,13 +1214,13 @@ QDataStream &operator>>(QDataStream &s, QBrush &b)
     A diagonal linear gradient from black at (100, 100) to white at
     (200, 200) could be specified like this:
 
-    \snippet doc/src/snippets/brush/brush.cpp 0
+    \snippet brush/brush.cpp 0
 
     A gradient can have an arbitrary number of stop points. The
     following would create a radial gradient starting with
     red in the center, blue and then green on the edges:
 
-    \snippet doc/src/snippets/brush/brush.cpp 1
+    \snippet brush/brush.cpp 1
 
     It is possible to repeat or reflect the gradient outside its area
     by specifiying the \l {QGradient::Spread}{spread method} using the
index 7512257..81f5a74 100644 (file)
@@ -148,7 +148,7 @@ QT_BEGIN_NAMESPACE
     represents a fully transparent color, while 255 represents a fully
     opaque color. For example:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qcolor.cpp 0
+    \snippet code/src_gui_painting_qcolor.cpp 0
 
     The code above produces the following output:
 
index c26d7e5..afefb17 100644 (file)
@@ -114,7 +114,7 @@ QT_BEGIN_NAMESPACE
     \row
     \li \inlineimage qmatrix-simpletransformation.png
     \li
-    \snippet doc/src/snippets/matrix/matrix.cpp 0
+    \snippet matrix/matrix.cpp 0
     \endtable
 
     Although these functions are very convenient, it can be more
@@ -126,7 +126,7 @@ QT_BEGIN_NAMESPACE
     \row
     \li \inlineimage qmatrix-combinedtransformation.png
     \li
-    \snippet doc/src/snippets/matrix/matrix.cpp 1
+    \snippet matrix/matrix.cpp 1
     \endtable
 
     \section1 Basic Matrix Operations
@@ -142,7 +142,7 @@ QT_BEGIN_NAMESPACE
     QMatrix transforms a point in the plane to another point using the
     following formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 0
+    \snippet code/src_gui_painting_qmatrix.cpp 0
 
     The point \e (x, y) is the original point, and \e (x', y') is the
     transformed point. \e (x', y') can be transformed back to \e (x,
@@ -174,7 +174,7 @@ QT_BEGIN_NAMESPACE
     \row
     \li \inlineimage qmatrix-combinedtransformation.png
     \li
-    \snippet doc/src/snippets/matrix/matrix.cpp 2
+    \snippet matrix/matrix.cpp 2
     \endtable
 
     \sa QPainter, QTransform, {Coordinate System}, 
@@ -342,7 +342,7 @@ void QMatrix::setMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qr
 
     The coordinates are transformed using the following formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 1
+    \snippet code/src_gui_painting_qmatrix.cpp 1
 
     The point (x, y) is the original point, and (x', y') is the
     transformed point.
@@ -427,7 +427,7 @@ QRect QMatrix::mapRect(const QRect &rect) const
     The rectangle's coordinates are transformed using the following
     formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 2
+    \snippet code/src_gui_painting_qmatrix.cpp 2
 
     If rotation or shearing has been specified, this function returns
     the \e bounding rectangle. To retrieve the exact region the given
@@ -741,7 +741,7 @@ QPainterPath QMatrix::map(const QPainterPath &path) const
     The rectangle's coordinates are transformed using the following
     formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 3
+    \snippet code/src_gui_painting_qmatrix.cpp 3
 
     Polygons and rectangles behave slightly differently when
     transformed (due to integer rounding), so
index 68e60ed..e622fe4 100644 (file)
@@ -941,7 +941,7 @@ void QPainterPrivate::updateState(QPainterState *newState)
     painter. Then draw. Remember to destroy the QPainter object after
     drawing. For example:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 0
+    \snippet code/src_gui_painting_qpainter.cpp 0
 
     The core functionality of QPainter is drawing, but the class also
     provide several functions that allows you to customize QPainter's
@@ -1446,10 +1446,10 @@ QPainter::QPainter()
     automatically calls end().
 
     Here's an example using begin() and end():
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 1
+    \snippet code/src_gui_painting_qpainter.cpp 1
 
     The same example using this constructor:
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 2
+    \snippet code/src_gui_painting_qpainter.cpp 2
 
     Since the constructor cannot provide feedback when the initialization
     of the painter failed you should rather use begin() and end() to paint
@@ -1667,7 +1667,7 @@ void QPainter::restore()
 
     The errors that can occur are serious problems, such as these:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 3
+    \snippet code/src_gui_painting_qpainter.cpp 3
 
     Note that most of the time, you can use one of the constructors
     instead of begin(), and that end() is automatically done at
@@ -1956,7 +1956,7 @@ QPaintEngine *QPainter::paintEngine() const
     default state by endNativePainting(). Here is an example that shows
     intermixing of painter commands and raw OpenGL commands:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 21
+    \snippet code/src_gui_painting_qpainter.cpp 21
 
     \sa endNativePainting()
 */
@@ -2871,7 +2871,7 @@ void QPainter::setClipRegion(const QRegion &r, Qt::ClipOperation op)
 
     They operate on the painter's worldMatrix() and are implemented like this:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 4
+    \snippet code/src_gui_painting_qpainter.cpp 4
 
     Note that when using setWorldMatrix() function you should always have
     \a combine be true when you are drawing into a QPicture. Otherwise
@@ -3340,7 +3340,7 @@ void QPainter::fillPath(const QPainterPath &path, const QBrush &brush)
     \row
     \li \inlineimage qpainter-path.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 5
+    \snippet code/src_gui_painting_qpainter.cpp 5
     \endtable
 
     \sa {painting/painterpaths}{the Painter Paths
@@ -3385,7 +3385,7 @@ void QPainter::drawPath(const QPainterPath &path)
     \row
     \li \inlineimage qpainter-line.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 6
+    \snippet code/src_gui_painting_qpainter.cpp 6
     \endtable
 
     \sa drawLines(), drawPolyline(), {Coordinate System}
@@ -3432,7 +3432,7 @@ void QPainter::drawPath(const QPainterPath &path)
     \row
     \li \inlineimage qpainter-rectangle.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 7
+    \snippet code/src_gui_painting_qpainter.cpp 7
     \endtable
 
     \sa drawRects(), drawPolygon(), {Coordinate System}
@@ -4101,7 +4101,7 @@ const QFont &QPainter::font() const
     \row
     \li \inlineimage qpainter-roundrect.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 8
+    \snippet code/src_gui_painting_qpainter.cpp 8
     \endtable
 
     \sa drawRect(), QPen
@@ -4201,7 +4201,7 @@ void QPainter::drawRoundRect(const QRectF &r, int xRnd, int yRnd)
     \row
     \li \inlineimage qpainter-ellipse.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 9
+    \snippet code/src_gui_painting_qpainter.cpp 9
     \endtable
 
     \sa drawPie(), {Coordinate System}
@@ -4327,7 +4327,7 @@ void QPainter::drawEllipse(const QRect &r)
     \row
     \li \inlineimage qpainter-arc.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 10
+    \snippet code/src_gui_painting_qpainter.cpp 10
     \endtable
 
     \sa drawPie(), drawChord(), {Coordinate System}
@@ -4391,7 +4391,7 @@ void QPainter::drawArc(const QRectF &r, int a, int alen)
     \row
     \li \inlineimage qpainter-pie.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 11
+    \snippet code/src_gui_painting_qpainter.cpp 11
     \endtable
 
     \sa drawEllipse(), drawChord(), {Coordinate System}
@@ -4460,7 +4460,7 @@ void QPainter::drawPie(const QRectF &r, int a, int alen)
     \row
     \li \inlineimage qpainter-chord.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 12
+    \snippet code/src_gui_painting_qpainter.cpp 12
     \endtable
 
     \sa drawArc(), drawPie(), {Coordinate System}
@@ -4675,7 +4675,7 @@ void QPainter::drawLines(const QPoint *pointPairs, int lineCount)
     \table 100%
     \row
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 13
+    \snippet code/src_gui_painting_qpainter.cpp 13
     \endtable
 
     \sa drawLines(), drawPolygon(), {Coordinate System}
@@ -4782,7 +4782,7 @@ void QPainter::drawPolyline(const QPoint *points, int pointCount)
     \row
     \li \inlineimage qpainter-polygon.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 14
+    \snippet code/src_gui_painting_qpainter.cpp 14
     \endtable
 
     The first point is implicitly connected to the last point, and the
@@ -4895,7 +4895,7 @@ void QPainter::drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fi
     \row
     \li \inlineimage qpainter-polygon.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 15
+    \snippet code/src_gui_painting_qpainter.cpp 15
     \endtable
 
     The first point is implicitly connected to the last point, and the
@@ -5018,7 +5018,7 @@ static inline QPointF roundInDeviceCoordinates(const QPointF &p, const QTransfor
     \table 100%
     \row
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 16
+    \snippet code/src_gui_painting_qpainter.cpp 16
     \endtable
 
     If \a pixmap is a QBitmap it is drawn with the bits that are "set"
@@ -5928,7 +5928,7 @@ void QPainter::drawText(const QRect &r, int flags, const QString &str, QRect *br
     \row
     \li \inlineimage qpainter-text.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 17
+    \snippet code/src_gui_painting_qpainter.cpp 17
     \endtable
 
     The \a boundingRect (if not null) is set to the what the bounding rectangle
@@ -6682,7 +6682,7 @@ void QPainter::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPo
     \table 100%
     \row
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 18
+    \snippet code/src_gui_painting_qpainter.cpp 18
     \endtable
 
     \sa QPicture::play()
@@ -6725,7 +6725,7 @@ void QPainter::drawPicture(const QPointF &p, const QPicture &picture)
 
     Erases the area inside the given \a rectangle. Equivalent to
     calling
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 19
+    \snippet code/src_gui_painting_qpainter.cpp 19
 
     \sa fillRect()
 */
@@ -7669,7 +7669,7 @@ void QPainterState::init(QPainter *p) {
     \table 100%
     \row
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 20
+    \snippet code/src_gui_painting_qpainter.cpp 20
     \endtable
 
     \sa drawPixmap()
index 0e8811b..dc31052 100644 (file)
@@ -229,7 +229,7 @@ static void qt_debug_path(const QPainterPath &path)
     \row
     \li \inlineimage qpainterpath-construction.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 0
+    \snippet code/src_gui_painting_qpainterpath.cpp 0
     \endtable
 
     The painter path is initially empty when constructed. We first add
@@ -763,7 +763,7 @@ void QPainterPath::lineTo(const QPointF &p)
     \row
     \li \inlineimage qpainterpath-cubicto.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 1
+    \snippet code/src_gui_painting_qpainterpath.cpp 1
     \endtable
 
     \sa quadTo(), {QPainterPath#Composing a QPainterPath}{Composing
@@ -890,7 +890,7 @@ void QPainterPath::quadTo(const QPointF &c, const QPointF &e)
     \row
     \li \inlineimage qpainterpath-arcto.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 2
+    \snippet code/src_gui_painting_qpainterpath.cpp 2
     \endtable
 
     \sa arcMoveTo(), addEllipse(), QPainter::drawArc(), QPainter::drawPie(),
@@ -1002,7 +1002,7 @@ QPointF QPainterPath::currentPosition() const
     \row
     \li \inlineimage qpainterpath-addrectangle.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 3
+    \snippet code/src_gui_painting_qpainterpath.cpp 3
     \endtable
 
     \sa addRegion(), lineTo(), {QPainterPath#Composing a
@@ -1049,7 +1049,7 @@ void QPainterPath::addRect(const QRectF &r)
     \row
     \li \inlineimage qpainterpath-addpolygon.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 4
+    \snippet code/src_gui_painting_qpainterpath.cpp 4
     \endtable
 
     \sa lineTo(), {QPainterPath#Composing a QPainterPath}{Composing
@@ -1085,7 +1085,7 @@ void QPainterPath::addPolygon(const QPolygonF &polygon)
     \row
     \li \inlineimage qpainterpath-addellipse.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 5
+    \snippet code/src_gui_painting_qpainterpath.cpp 5
     \endtable
 
     \sa arcTo(), QPainter::drawEllipse(), {QPainterPath#Composing a
@@ -1137,7 +1137,7 @@ void QPainterPath::addEllipse(const QRectF &boundingRect)
     \row
     \li \inlineimage qpainterpath-addtext.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 6
+    \snippet code/src_gui_painting_qpainterpath.cpp 6
     \endtable
 
     \sa QPainter::drawText(), {QPainterPath#Composing a
index 77f0edc..2c95a9f 100644 (file)
@@ -79,11 +79,11 @@ typedef QPenPrivate QPenData;
 
     For example:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 0
+    \snippet code/src_gui_painting_qpen.cpp 0
 
     which is equivalent to
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 1
+    \snippet code/src_gui_painting_qpen.cpp 1
 
     The default pen is a solid black brush with 0 width, square
     cap style (Qt::SquareCap), and  bevel join style (Qt::BevelJoin).
@@ -135,7 +135,7 @@ typedef QPenPrivate QPenData;
     spaces. For example, the custom pattern shown above is created
     using the following code:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 2
+    \snippet code/src_gui_painting_qpen.cpp 2
 
     Note that the dash pattern is specified in units of the pens
     width, e.g. a dash of length 5 in width 10 is 50 pixels long.
@@ -476,7 +476,7 @@ QVector<qreal> QPen::dashPattern() const
     \row
     \li \inlineimage qpen-custom.png
     \li
-    \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 3
+    \snippet code/src_gui_painting_qpen.cpp 3
     \endtable
 
     The dash pattern is specified in units of the pens width; e.g. a
index ee1f796..b7dee7f 100644 (file)
@@ -98,7 +98,7 @@ static void qt_polygon_isect_line(const QPointF &p1, const QPointF &p2, const QP
     points to a QPolygon is to use QVector's streaming operator, as
     illustrated below:
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 0
+    \snippet polygon/polygon.cpp 0
 
     In addition to the functions provided by QVector, QPolygon
     provides some point-specific functions.
@@ -304,7 +304,7 @@ void QPolygon::point(int index, int *x, int *y) const
     The example code creates a polygon with two points (10, 20) and
     (30, 40):
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 2
+    \snippet polygon/polygon.cpp 2
 
     \sa setPoint() putPoints()
 */
@@ -330,7 +330,7 @@ void QPolygon::setPoints(int nPoints, const int *points)
     The example code creates a polygon with two points (10, 20) and
     (30, 40):
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 3
+    \snippet polygon/polygon.cpp 3
 */
 
 void QPolygon::setPoints(int nPoints, int firstx, int firsty, ...)
@@ -381,12 +381,12 @@ void QPolygon::putPoints(int index, int nPoints, const int *points)
     The example code creates a polygon with three points (4,5), (6,7)
     and (8,9), by expanding the polygon from 1 to 3 points:
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 4
+    \snippet polygon/polygon.cpp 4
 
     The following code has the same result, but here the putPoints()
     function overwrites rather than extends:
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 5
+    \snippet polygon/polygon.cpp 5
 
     \sa setPoints()
 */
@@ -418,7 +418,7 @@ void QPolygon::putPoints(int index, int nPoints, int firstx, int firsty, ...)
     default) in \a fromPolygon into this polygon, starting at the
     specified \a index. For example:
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 6
+    \snippet polygon/polygon.cpp 6
 */
 
 void QPolygon::putPoints(int index, int nPoints, const QPolygon & from, int fromIndex)
@@ -490,7 +490,7 @@ QDebug operator<<(QDebug dbg, const QPolygon &a)
     to a QPolygonF is to use its streaming operator, as illustrated
     below:
 
-    \snippet doc/src/snippets/polygon/polygon.cpp 1
+    \snippet polygon/polygon.cpp 1
 
     In addition to the functions provided by QVector, QPolygonF
     provides the boundingRect() and translate() functions for geometry
index ebca1ed..f250150 100644 (file)
@@ -86,7 +86,7 @@ QT_BEGIN_NAMESPACE
     rectangles.
 
     Example of using complex regions:
-    \snippet doc/src/snippets/code/src_gui_painting_qregion.cpp 0
+    \snippet code/src_gui_painting_qregion.cpp 0
 
     \section1 Additional License Information
 
@@ -725,7 +725,7 @@ QRegion QRegion::intersect(const QRect &r) const
     empty region is a region that contains no points.
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_painting_qregion_unix.cpp 0
+    \snippet code/src_gui_painting_qregion_unix.cpp 0
 */
 
 /*!
index ba971d4..924a444 100644 (file)
@@ -159,7 +159,7 @@ QT_BEGIN_NAMESPACE
     \row
     \li \inlineimage qtransform-simpletransformation.png
     \li
-    \snippet doc/src/snippets/transform/main.cpp 0
+    \snippet transform/main.cpp 0
     \endtable
 
     Although these functions are very convenient, it can be more
@@ -171,7 +171,7 @@ QT_BEGIN_NAMESPACE
     \row
     \li \inlineimage qtransform-combinedtransformation.png
     \li
-    \snippet doc/src/snippets/transform/main.cpp 1
+    \snippet transform/main.cpp 1
     \endtable
 
     \section1 Basic Matrix Operations
@@ -188,7 +188,7 @@ QT_BEGIN_NAMESPACE
     QTransform transforms a point in the plane to another point using the
     following formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 0
+    \snippet code/src_gui_painting_qtransform.cpp 0
 
     The point \e (x, y) is the original point, and \e (x', y') is the
     transformed point. \e (x', y') can be transformed back to \e (x,
@@ -221,7 +221,7 @@ QT_BEGIN_NAMESPACE
     \row
     \li \inlineimage qtransform-combinedtransformation2.png
     \li
-    \snippet doc/src/snippets/transform/main.cpp 2
+    \snippet transform/main.cpp 2
     \endtable
 
     \sa QPainter, {Coordinate System}, {painting/affine}{Affine
@@ -1662,7 +1662,7 @@ QPainterPath QTransform::map(const QPainterPath &path) const
     The rectangle's coordinates are transformed using the following
     formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 1
+    \snippet code/src_gui_painting_qtransform.cpp 1
 
     Polygons and rectangles behave slightly differently when
     transformed (due to integer rounding), so
@@ -1915,7 +1915,7 @@ QRect QTransform::mapRect(const QRect &rect) const
     The rectangle's coordinates are transformed using the following
     formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 2
+    \snippet code/src_gui_painting_qtransform.cpp 2
 
     If rotation or shearing has been specified, this function returns
     the \e bounding rectangle. To retrieve the exact region the given
@@ -1991,7 +1991,7 @@ QRectF QTransform::mapRect(const QRectF &rect) const
 
     The coordinates are transformed using the following formulas:
 
-    \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 3
+    \snippet code/src_gui_painting_qtransform.cpp 3
 
     The point (x, y) is the original point, and (x', y') is the
     transformed point.
index 161bb4e..cd15560 100644 (file)
@@ -367,7 +367,7 @@ QFontEngineData::~QFontEngineData()
 
     Create QFonts like this:
 
-    \snippet doc/src/snippets/code/src_gui_text_qfont.cpp 0
+    \snippet code/src_gui_text_qfont.cpp 0
 
     The attributes set in the constructor can also be set later, e.g.
     setFamily(), setPointSize(), setPointSizeFloat(), setWeight() and
@@ -464,11 +464,11 @@ QFontEngineData::~QFontEngineData()
 
     Examples:
 
-    \snippet doc/src/snippets/code/src_gui_text_qfont.cpp 1
+    \snippet code/src_gui_text_qfont.cpp 1
     If you had both an Adobe and a Cronyx Helvetica, you might get
     either.
 
-    \snippet doc/src/snippets/code/src_gui_text_qfont.cpp 2
+    \snippet code/src_gui_text_qfont.cpp 2
 
     You can specify the foundry you want in the family name. The font f
     in the above example will be set to "Helvetica
@@ -477,11 +477,11 @@ QFontEngineData::~QFontEngineData()
     To determine the attributes of the font actually used in the window
     system, use a QFontInfo object, e.g.
 
-    \snippet doc/src/snippets/code/src_gui_text_qfont.cpp 3
+    \snippet code/src_gui_text_qfont.cpp 3
 
     To find out font metrics use a QFontMetrics object, e.g.
 
-    \snippet doc/src/snippets/code/src_gui_text_qfont.cpp 4
+    \snippet code/src_gui_text_qfont.cpp 4
 
     For more general information on fonts, see the
     \link http://nwalsh.com/comp.fonts/FAQ/ comp.fonts FAQ.\endlink
index a1af856..42096d9 100644 (file)
@@ -1197,8 +1197,8 @@ QString QFontDatabase::styleString(const QFontInfo &fontInfo)
 
     Example:
 
-    \snippet doc/src/snippets/qfontdatabase/main.cpp 0
-    \snippet doc/src/snippets/qfontdatabase/main.cpp 1
+    \snippet qfontdatabase/main.cpp 0
+    \snippet qfontdatabase/main.cpp 1
 
     This example gets the list of font families, the list of
     styles for each family, and the point sizes that are available for
index fe9e1d1..cc6fa4b 100644 (file)
@@ -122,7 +122,7 @@ extern void qt_format_text(const QFont& font, const QRectF &_r,
     and size(), to return the size of that rectangle.
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_text_qfontmetrics.cpp 0
+    \snippet code/src_gui_text_qfontmetrics.cpp 0
 
     \sa QFont, QFontInfo, QFontDatabase, QFontComboBox, {Character Map Example}
 */
@@ -976,7 +976,7 @@ int QFontMetrics::lineWidth() const
     and size(), to return the size of that rectangle.
 
     Example:
-    \snippet doc/src/snippets/code/src_gui_text_qfontmetrics.cpp 1
+    \snippet code/src_gui_text_qfontmetrics.cpp 1
 
     \sa QFont QFontInfo QFontDatabase
 */
index c6810ad..c372071 100644 (file)
@@ -253,7 +253,7 @@ void QSyntaxHighlighterPrivate::reformatBlock(const QTextBlock &block)
     pass it the QTextEdit or QTextDocument that you want the syntax
     highlighting to be applied to. For example:
 
-    \snippet doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp 0
+    \snippet code/src_gui_text_qsyntaxhighlighter.cpp 0
 
     After this your highlightBlock() function will be called
     automatically whenever necessary. Use your highlightBlock()
@@ -262,7 +262,7 @@ void QSyntaxHighlighterPrivate::reformatBlock(const QTextBlock &block)
     setFormat() function which applies a given QTextCharFormat on
     the current text block. For example:
 
-    \snippet doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp 1
+    \snippet code/src_gui_text_qsyntaxhighlighter.cpp 1
 
     Some syntaxes can have constructs that span several text
     blocks. For example, a C++ syntax highlighter should be able to
@@ -285,7 +285,7 @@ void QSyntaxHighlighterPrivate::reformatBlock(const QTextBlock &block)
     For example, if you're writing a simple C++ syntax highlighter,
     you might designate 1 to signify "in comment":
 
-    \snippet doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp 2
+    \snippet code/src_gui_text_qsyntaxhighlighter.cpp 2
 
     In the example above, we first set the current block state to
     0. Then, if the previous block ended within a comment, we higlight
@@ -432,7 +432,7 @@ void QSyntaxHighlighter::rehighlightBlock(const QTextBlock &block)
     setFormat() as often as necessary to apply any font and color
     changes that you require. For example:
 
-    \snippet doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp 3
+    \snippet code/src_gui_text_qsyntaxhighlighter.cpp 3
 
     Some syntaxes can have constructs that span several text
     blocks. For example, a C++ syntax highlighter should be able to
@@ -602,7 +602,7 @@ void QSyntaxHighlighter::setCurrentBlockState(int newState)
     and store their relative position and the actual QChar in a simple
     class derived from QTextBlockUserData:
 
-    \snippet doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp 4
+    \snippet code/src_gui_text_qsyntaxhighlighter.cpp 4
 
     During cursor navigation in the associated editor, you can ask the
     current QTextBlock (retrieved using the QTextCursor::block()
index 02fd921..ce46ec2 100644 (file)
@@ -972,7 +972,7 @@ QTextLayout *QTextCursorPrivate::blockLayout(QTextBlock &block) const{
     diacritics).  Functions such as movePosition() and deleteChar()
     limit cursor movement to these valid positions.
 
-    \sa \link richtext.html Rich Text Processing\endlink
+    \sa {Rich Text Processing}
 
 */
 
@@ -1380,7 +1380,7 @@ void QTextCursor::setKeepPositionOnInsert(bool b)
 
     If there is a selection, the selection is deleted and replaced by
     \a text, for example:
-    \snippet doc/src/snippets/code/src_gui_text_qtextcursor.cpp 0
+    \snippet code/src_gui_text_qtextcursor.cpp 0
     This clears any existing selection, selects the word at the cursor
     (i.e. from position() forward), and replaces the selection with
     the phrase "Hello World".
@@ -2301,7 +2301,7 @@ void QTextCursor::insertImage(const QTextImageFormat &format)
     Convenience method for inserting the image with the given \a name at the
     current position().
 
-    \snippet doc/src/snippets/code/src_gui_text_qtextcursor.cpp 1
+    \snippet code/src_gui_text_qtextcursor.cpp 1
 */
 void QTextCursor::insertImage(const QString &name)
 {
@@ -2445,7 +2445,7 @@ bool QTextCursor::operator>(const QTextCursor &rhs) const
 
     For example:
 
-    \snippet doc/src/snippets/code/src_gui_text_qtextcursor.cpp 2
+    \snippet code/src_gui_text_qtextcursor.cpp 2
 
     The call to undo() will cause both insertions to be undone,
     causing both "World" and "Hello" to be removed.
@@ -2474,7 +2474,7 @@ void QTextCursor::beginEditBlock()
 
     For example:
 
-    \snippet doc/src/snippets/code/src_gui_text_qtextcursor.cpp 3
+    \snippet code/src_gui_text_qtextcursor.cpp 3
 
     The call to undo() will cause all three insertions to be undone.
 
index ec660dd..f054656 100644 (file)
@@ -1511,7 +1511,7 @@ QTextBlock QTextDocument::begin() const
     This function returns a block to test for the end of the document
     while iterating over it.
 
-    \snippet doc/src/snippets/textdocumentendsnippet.cpp 0
+    \snippet textdocumentendsnippet.cpp 0
 
     The block returned is invalid and represents the block after the
     last block in the document. You can use lastBlock() to retrieve the
@@ -1868,15 +1868,15 @@ QVariant QTextDocument::resource(int type, const QUrl &name) const
     For example, you can add an image as a resource in order to reference it
     from within the document:
 
-    \snippet snippets/textdocument-resources/main.cpp Adding a resource
+    \snippet textdocument-resources/main.cpp Adding a resource
 
     The image can be inserted into the document using the QTextCursor API:
 
-    \snippet snippets/textdocument-resources/main.cpp Inserting an image with a cursor
+    \snippet textdocument-resources/main.cpp Inserting an image with a cursor
 
     Alternatively, you can insert images using the HTML \c img tag:
 
-    \snippet snippets/textdocument-resources/main.cpp Inserting an image using HTML
+    \snippet textdocument-resources/main.cpp Inserting an image using HTML
 */
 void QTextDocument::addResource(int type, const QUrl &name, const QVariant &resource)
 {
@@ -2967,7 +2967,7 @@ void QTextHtmlExporter::emitFrameStyle(const QTextFrameFormat &format, FrameType
     The \a encoding parameter specifies the value for the charset attribute
     in the html header. For example if 'utf-8' is specified then the
     beginning of the generated html will look like this:
-    \snippet doc/src/snippets/code/src_gui_text_qtextdocument.cpp 0
+    \snippet code/src_gui_text_qtextdocument.cpp 0
 
     If no encoding is specified then no such meta information is generated.
 
index b0bbeb7..2894c28 100644 (file)
@@ -160,7 +160,7 @@ QTextDocumentWriter::~QTextDocumentWriter()
     Sets the format used to write documents to the \a format specified.
     \a format is a case insensitive text string. For example:
 
-    \snippet doc/src/snippets/code/src.gui.text.qtextdocumentwriter.cpp 0
+    \snippet code/src_gui_text_qtextdocumentwriter.cpp 0
 
     You can call supportedDocumentFormats() for the full list of formats
     QTextDocumentWriter supports.
index 9a38b1f..bb3d897 100644 (file)
@@ -2269,7 +2269,7 @@ QList<QTextOption::Tab> QTextBlockFormat::tabPositions() const
     can be used to customize the numbers used in an ordered list so that they
     appear as (1), (2), (3), etc.:
 
-    \snippet doc/src/snippets/textdocument-listitemstyles/mainwindow.cpp add a styled, ordered list
+    \snippet textdocument-listitemstyles/mainwindow.cpp add a styled, ordered list
 
     \sa QTextList
 */
index 94af3ed..0ab9647 100644 (file)
@@ -282,10 +282,10 @@ Qt::LayoutDirection QTextInlineObject::textDirection() const
     created lines.
 
     Here is a code snippet that demonstrates the layout phase:
-    \snippet doc/src/snippets/code/src_gui_text_qtextlayout.cpp 0
+    \snippet code/src_gui_text_qtextlayout.cpp 0
 
     The text can then be rendered by calling the layout's draw() function:
-    \snippet doc/src/snippets/code/src_gui_text_qtextlayout.cpp 1
+    \snippet code/src_gui_text_qtextlayout.cpp 1
 
     For a given position in the text you can find a valid cursor position with
     isValidCursorPosition(), nextCursorPosition(), and previousCursorPosition().
index c3c71bc..82d744d 100644 (file)
@@ -75,7 +75,7 @@ public:
     The \l{QTextCursor::insertList()} function inserts an empty block into the
     document at the cursor position, and makes it the first item in a list.
 
-    \snippet doc/src/snippets/textdocument-lists/mainwindow.cpp 0
+    \snippet textdocument-lists/mainwindow.cpp 0
 
     The \l{QTextCursor::createList()} function takes the contents of the
     cursor's current block and turns it into the first item of a new list.
index a9daf6b..d4e9c7d 100644 (file)
@@ -939,8 +939,8 @@ bool QTextBlock::isValid() const
     An iterator can be constructed and used to access the fragments within
     a text block in the following way:
 
-    \snippet doc/src/snippets/textblock-fragments/xmlwriter.cpp 4
-    \snippet doc/src/snippets/textblock-fragments/xmlwriter.cpp 7
+    \snippet textblock-fragments/xmlwriter.cpp 4
+    \snippet textblock-fragments/xmlwriter.cpp 7
 
     \sa QTextFragment
 */
index 65bc8fd..a986618 100644 (file)
@@ -510,9 +510,9 @@ void QTextTablePrivate::update() const
     For example, we can insert a table with three rows and two columns at the
     current cursor position in an editor using the following lines of code:
 
-    \snippet doc/src/snippets/textdocument-tables/mainwindow.cpp 1
+    \snippet textdocument-tables/mainwindow.cpp 1
     \codeline
-    \snippet doc/src/snippets/textdocument-tables/mainwindow.cpp 3
+    \snippet textdocument-tables/mainwindow.cpp 3
 
     The table format is either defined when the table is created or changed
     later with setFormat().
@@ -545,14 +545,14 @@ void QTextTablePrivate::update() const
         \li Suppose we have a 2x3 table of names and addresses. To merge both
         columns in the first row we invoke mergeCells() with \a row = 0,
         \a column = 0, \a numRows = 1 and \a numColumns = 2.
-        \snippet doc/src/snippets/textdocument-texttable/main.cpp 0
+        \snippet textdocument-texttable/main.cpp 0
 
     \row
         \li \inlineimage texttable-merge.png
         \li  This gives us the following table. To split the first row of the table
         back into two cells, we invoke the splitCell() function with \a numRows
         and \a numCols = 1.
-        \snippet doc/src/snippets/textdocument-texttable/main.cpp 1
+        \snippet textdocument-texttable/main.cpp 1
 
     \row
         \li \inlineimage texttable-split.png Split Table
index a941c06..1535162 100644 (file)
@@ -135,7 +135,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler)
     URLs, and by registering a handler it becomes possible to display the help text
     inside the application:
 
-    \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 0
+    \snippet code/src_gui_util_qdesktopservices.cpp 0
 
     If inside the handler you decide that you can't open the requested
     URL, you can just call QDesktopServices::openUrl() again with the
@@ -155,7 +155,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler)
     The following example opens a file on the Windows file system residing on a path
     that contains spaces:
 
-    \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 2
+    \snippet code/src_gui_util_qdesktopservices.cpp 2
 
     If a \c mailto URL is specified, the user's e-mail client will be used to open a
     composer window containing the options specified in the URL, similar to the way
@@ -164,7 +164,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler)
     For example, the following URL contains a recipient (\c{user@foo.com}), a
     subject (\c{Test}), and a message body (\c{Just a test}):
 
-    \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 1
+    \snippet code/src_gui_util_qdesktopservices.cpp 1
 
     \warning Although many e-mail clients can send attachments and are
     Unicode-aware, the user may have configured their client without these features.
index 3103cc7..84a5b4c 100644 (file)
@@ -303,12 +303,12 @@ void QValidator::fixup(QString &) const
 
     Example of use:
 
-    \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 0
+    \snippet code/src_gui_util_qvalidator.cpp 0
 
     Below we present some examples of validators. In practice they would
     normally be associated with a widget as in the example above.
 
-    \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 1
+    \snippet code/src_gui_util_qvalidator.cpp 1
 
     Notice that the value \c 999 returns Intermediate. Values
     consisting of a number of digits equal to or less than the max
@@ -377,7 +377,7 @@ QIntValidator::~QIntValidator()
     the user might be just about to type the minus (especially for right-to-left
     languages).
 
-    \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 2
+    \snippet code/src_gui_util_qvalidator.cpp 2
 
     By default, the \a pos parameter is not used by this validator.
 */
@@ -812,12 +812,12 @@ QDoubleValidator::Notation QDoubleValidator::notation() const
     For a brief introduction to Qt's regexp engine, see \l QRegExp.
 
     Example of use:
-    \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 3
+    \snippet code/src_gui_util_qvalidator.cpp 3
 
     Below we present some examples of validators. In practice they would
     normally be associated with a widget as in the example above.
 
-    \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 4
+    \snippet code/src_gui_util_qvalidator.cpp 4
 
     \sa QRegExp, QIntValidator, QDoubleValidator, {Settings Editor Example}
 */