From 4533cc994484a2308297e64e99af005fb4dca065 Mon Sep 17 00:00:00 2001 From: Jerome Pasion Date: Wed, 2 Oct 2013 16:51:05 +0200 Subject: Doc: Adding mark-up to boolean default values. Default values should have mark-up to denote that they are code. This commit changes: -"property is true" to "property is \c true". -"Returns true" to "Returns \c true". -"property is false" to "property is \c false". -"returns true" to "returns \c true". -"returns false" to "returns \c false". src/3rdparty and non-documentation instances were ignored. Task-number: QTBUG-33360 Change-Id: Ie87eaa57af947caa1230602b61c5c46292a4cf4e Reviewed-by: Oswald Buddenhagen Reviewed-by: Jerome Pasion --- src/concurrent/qtconcurrentfilter.cpp | 30 +-- src/corelib/animation/qabstractanimation.cpp | 2 +- src/corelib/codecs/qtextcodec.cpp | 4 +- src/corelib/doc/src/containers.qdoc | 4 +- src/corelib/doc/src/threads.qdoc | 2 +- src/corelib/global/qglobal.cpp | 8 +- src/corelib/global/qglobalstatic.cpp | 12 +- src/corelib/global/qlibraryinfo.cpp | 2 +- src/corelib/global/qnamespace.qdoc | 2 +- src/corelib/global/qnumeric.cpp | 12 +- src/corelib/io/qabstractfileengine.cpp | 48 ++--- src/corelib/io/qdatastream.cpp | 4 +- src/corelib/io/qdebug.cpp | 2 +- src/corelib/io/qdir.cpp | 74 ++++---- src/corelib/io/qdiriterator.cpp | 6 +- src/corelib/io/qfile.cpp | 56 +++--- src/corelib/io/qfiledevice.cpp | 20 +- src/corelib/io/qfileinfo.cpp | 58 +++--- src/corelib/io/qfsfileengine.cpp | 16 +- src/corelib/io/qiodevice.cpp | 44 ++--- src/corelib/io/qlockfile.cpp | 18 +- src/corelib/io/qlockfile_p.h | 2 +- src/corelib/io/qnoncontiguousbytedevice.cpp | 4 +- src/corelib/io/qprocess.cpp | 26 +-- src/corelib/io/qresource.cpp | 24 +-- src/corelib/io/qsavefile.cpp | 6 +- src/corelib/io/qsettings.cpp | 10 +- src/corelib/io/qstandardpaths.cpp | 2 +- src/corelib/io/qtemporarydir.cpp | 6 +- src/corelib/io/qtemporaryfile.cpp | 2 +- src/corelib/io/qtextstream.cpp | 20 +- src/corelib/io/qurl.cpp | 36 ++-- src/corelib/io/qurlquery.cpp | 8 +- src/corelib/io/qwindowspipereader.cpp | 4 +- src/corelib/itemmodels/qabstractitemmodel.cpp | 2 +- src/corelib/itemmodels/qitemselectionmodel.cpp | 46 ++--- src/corelib/itemmodels/qsortfilterproxymodel.cpp | 14 +- src/corelib/json/qjsondocument.cpp | 8 +- src/corelib/json/qjsonvalue.cpp | 18 +- src/corelib/kernel/qabstracteventdispatcher.cpp | 18 +- src/corelib/kernel/qbasictimer.cpp | 6 +- src/corelib/kernel/qcoreapplication.cpp | 32 ++-- src/corelib/kernel/qcoreevent.cpp | 16 +- src/corelib/kernel/qeventloop.cpp | 6 +- src/corelib/kernel/qmetaobject.cpp | 106 +++++------ src/corelib/kernel/qmetaobjectbuilder.cpp | 32 ++-- src/corelib/kernel/qmetatype.cpp | 48 ++--- src/corelib/kernel/qmimedata.cpp | 22 +-- src/corelib/kernel/qobject.cpp | 32 ++-- src/corelib/kernel/qobject_p.h | 2 +- src/corelib/kernel/qobjectcleanuphandler.cpp | 4 +- src/corelib/kernel/qpointer.cpp | 42 ++--- src/corelib/kernel/qsharedmemory.cpp | 14 +- src/corelib/kernel/qsharedmemory_unix.cpp | 2 +- src/corelib/kernel/qsocketnotifier.cpp | 2 +- src/corelib/kernel/qsystemsemaphore.cpp | 4 +- src/corelib/kernel/qtimer.cpp | 4 +- src/corelib/kernel/qtimerinfo_unix.cpp | 2 +- src/corelib/kernel/qtranslator.cpp | 10 +- src/corelib/kernel/qvariant.cpp | 60 +++--- src/corelib/kernel/qwineventnotifier.cpp | 2 +- src/corelib/mimetypes/qmimetype.cpp | 10 +- src/corelib/plugin/qlibrary.cpp | 16 +- src/corelib/plugin/qpluginloader.cpp | 10 +- src/corelib/plugin/quuid.cpp | 24 +-- src/corelib/statemachine/qsignaltransition.cpp | 4 +- src/corelib/statemachine/qstatemachine.cpp | 10 +- src/corelib/thread/qatomic.cpp | 48 ++--- src/corelib/thread/qfuture.qdoc | 48 ++--- src/corelib/thread/qfuturesynchronizer.qdoc | 4 +- src/corelib/thread/qfuturewatcher.cpp | 24 +-- src/corelib/thread/qmutex.cpp | 6 +- src/corelib/thread/qreadwritelock.cpp | 12 +- src/corelib/thread/qrunnable.cpp | 4 +- src/corelib/thread/qsemaphore.cpp | 6 +- src/corelib/thread/qthread.cpp | 6 +- src/corelib/thread/qthreadpool.cpp | 18 +- src/corelib/thread/qthreadstorage.cpp | 2 +- src/corelib/tools/qalgorithms.qdoc | 6 +- src/corelib/tools/qbitarray.cpp | 18 +- src/corelib/tools/qbytearray.cpp | 140 +++++++------- src/corelib/tools/qcache.qdoc | 16 +- src/corelib/tools/qchar.cpp | 142 +++++++------- src/corelib/tools/qcollator.cpp | 8 +- src/corelib/tools/qcommandlineparser.cpp | 16 +- src/corelib/tools/qcontiguouscache.cpp | 12 +- src/corelib/tools/qcryptographichash.cpp | 2 +- src/corelib/tools/qdatetime.cpp | 96 +++++----- src/corelib/tools/qdatetimeparser.cpp | 6 +- src/corelib/tools/qeasingcurve.cpp | 4 +- src/corelib/tools/qelapsedtimer.cpp | 8 +- src/corelib/tools/qelapsedtimer_generic.cpp | 4 +- src/corelib/tools/qhash.cpp | 38 ++-- src/corelib/tools/qiterator.qdoc | 28 +-- src/corelib/tools/qline.cpp | 16 +- src/corelib/tools/qlinkedlist.cpp | 42 ++--- src/corelib/tools/qlist.cpp | 56 +++--- src/corelib/tools/qlocale.qdoc | 8 +- src/corelib/tools/qmap.cpp | 36 ++-- src/corelib/tools/qmargins.cpp | 8 +- src/corelib/tools/qmessageauthenticationcode.cpp | 2 +- src/corelib/tools/qpair.qdoc | 16 +- src/corelib/tools/qpoint.cpp | 20 +- src/corelib/tools/qrect.cpp | 84 ++++----- src/corelib/tools/qregexp.cpp | 28 +-- src/corelib/tools/qregularexpression.cpp | 22 +-- src/corelib/tools/qscopedpointer.cpp | 8 +- src/corelib/tools/qset.qdoc | 32 ++-- src/corelib/tools/qshareddata.cpp | 18 +- src/corelib/tools/qsharedpointer.cpp | 32 ++-- src/corelib/tools/qsize.cpp | 38 ++-- src/corelib/tools/qstring.cpp | 208 ++++++++++----------- src/corelib/tools/qstringlist.cpp | 4 +- src/corelib/tools/qtextboundaryfinder.cpp | 4 +- src/corelib/tools/qtimezone.cpp | 14 +- src/corelib/tools/qvarlengtharray.qdoc | 6 +- src/corelib/tools/qvector.cpp | 24 +-- src/corelib/xml/qxmlstream.cpp | 96 +++++----- src/dbus/qdbusabstractadaptor.cpp | 4 +- src/dbus/qdbusabstractinterface.cpp | 8 +- src/dbus/qdbusargument.cpp | 2 +- src/dbus/qdbusconnection.cpp | 26 +-- src/dbus/qdbusconnectioninterface.cpp | 2 +- src/dbus/qdbuscontext.cpp | 8 +- src/dbus/qdbuserror.cpp | 2 +- src/dbus/qdbusmessage.cpp | 4 +- src/dbus/qdbusmetatype.cpp | 4 +- src/dbus/qdbuspendingcall.cpp | 14 +- src/dbus/qdbusreply.cpp | 2 +- src/dbus/qdbusserver.cpp | 2 +- src/dbus/qdbusservicewatcher.cpp | 2 +- src/dbus/qdbusunixfiledescriptor.cpp | 8 +- src/dbus/qdbusutil.cpp | 24 +-- src/gui/accessible/qaccessible.cpp | 14 +- src/gui/image/qicon.cpp | 6 +- src/gui/image/qiconengine.cpp | 4 +- src/gui/image/qimage.cpp | 42 ++--- src/gui/image/qimageiohandler.cpp | 24 +-- src/gui/image/qimagereader.cpp | 18 +- src/gui/image/qimagewriter.cpp | 8 +- src/gui/image/qmovie.cpp | 10 +- src/gui/image/qpicture.cpp | 18 +- src/gui/image/qpictureformatplugin.cpp | 8 +- src/gui/image/qpixmap.cpp | 34 ++-- src/gui/image/qpixmapcache.cpp | 16 +- src/gui/itemmodels/qstandarditemmodel.cpp | 12 +- src/gui/kernel/qclipboard.cpp | 28 +-- src/gui/kernel/qevent.cpp | 20 +- src/gui/kernel/qguiapplication.cpp | 24 +-- src/gui/kernel/qkeysequence.cpp | 24 +-- src/gui/kernel/qopenglcontext.cpp | 14 +- src/gui/kernel/qpalette.cpp | 20 +- src/gui/kernel/qplatforminputcontext.cpp | 6 +- src/gui/kernel/qplatformintegration.cpp | 4 +- src/gui/kernel/qplatformscreenpageflipper.cpp | 2 +- src/gui/kernel/qplatformsharedgraphicscache.cpp | 4 +- src/gui/kernel/qplatformsystemtrayicon_qpa.cpp | 4 +- src/gui/kernel/qplatformwindow.cpp | 4 +- src/gui/kernel/qscreen.cpp | 8 +- src/gui/kernel/qsessionmanager.cpp | 8 +- src/gui/kernel/qsurfaceformat.cpp | 12 +- src/gui/kernel/qwindow.cpp | 10 +- src/gui/math3d/qgenericmatrix.cpp | 6 +- src/gui/math3d/qmatrix4x4.cpp | 8 +- src/gui/math3d/qquaternion.cpp | 14 +- src/gui/math3d/qvector2d.cpp | 10 +- src/gui/math3d/qvector3d.cpp | 10 +- src/gui/math3d/qvector4d.cpp | 10 +- src/gui/opengl/qopenglbuffer.cpp | 10 +- src/gui/opengl/qopengldebug.cpp | 8 +- src/gui/opengl/qopenglengineshadermanager.cpp | 2 +- src/gui/opengl/qopenglframebufferobject.cpp | 28 +-- src/gui/opengl/qopenglfunctions.cpp | 4 +- src/gui/opengl/qopenglpaintdevice.cpp | 2 +- src/gui/opengl/qopenglshaderprogram.cpp | 30 +-- src/gui/opengl/qopengltexture.cpp | 12 +- src/gui/opengl/qopengltimerquery.cpp | 16 +- src/gui/opengl/qopenglvertexarrayobject.cpp | 6 +- src/gui/opengl/qtriangulator.cpp | 2 +- src/gui/painting/qbackingstore.cpp | 2 +- src/gui/painting/qbrush.cpp | 20 +- src/gui/painting/qcolor.cpp | 12 +- src/gui/painting/qmatrix.cpp | 20 +- src/gui/painting/qpaintdevice.qdoc | 4 +- src/gui/painting/qpaintengine.cpp | 10 +- src/gui/painting/qpaintengine_raster.cpp | 2 +- src/gui/painting/qpainter.cpp | 20 +- src/gui/painting/qpainterpath.cpp | 46 ++--- src/gui/painting/qpen.cpp | 8 +- src/gui/painting/qplatformbackingstore.cpp | 2 +- src/gui/painting/qpolygon.cpp | 10 +- src/gui/painting/qregion.cpp | 32 ++-- src/gui/painting/qstroker.cpp | 2 +- src/gui/painting/qtransform.cpp | 42 ++--- src/gui/text/qcssparser.cpp | 2 +- src/gui/text/qfont.cpp | 44 ++--- src/gui/text/qfontdatabase.cpp | 38 ++-- src/gui/text/qfontmetrics.cpp | 30 +-- src/gui/text/qglyphrun.cpp | 18 +- src/gui/text/qplatformfontdatabase.cpp | 4 +- src/gui/text/qrawfont.cpp | 10 +- src/gui/text/qstatictext.cpp | 6 +- src/gui/text/qtextcursor.cpp | 56 +++--- src/gui/text/qtextdocument.cpp | 14 +- src/gui/text/qtextdocumentfragment.cpp | 2 +- src/gui/text/qtextdocumentwriter.cpp | 6 +- src/gui/text/qtextformat.cpp | 92 ++++----- src/gui/text/qtextlayout.cpp | 14 +- src/gui/text/qtextlist.cpp | 2 +- src/gui/text/qtextobject.cpp | 44 ++--- src/gui/text/qtextoption.cpp | 16 +- src/gui/text/qtexttable.cpp | 10 +- src/gui/text/qzip.cpp | 8 +- src/gui/util/qdesktopservices.cpp | 2 +- src/network/access/qabstractnetworkcache.cpp | 6 +- src/network/access/qftp.cpp | 14 +- src/network/access/qhttpmultipart.cpp | 4 +- src/network/access/qnetworkaccessbackend.cpp | 2 +- src/network/access/qnetworkaccessbackend_p.h | 2 +- src/network/access/qnetworkaccesscache.cpp | 2 +- src/network/access/qnetworkcookie.cpp | 14 +- src/network/access/qnetworkcookiejar.cpp | 10 +- src/network/access/qnetworkdiskcache.cpp | 2 +- src/network/access/qnetworkreply.cpp | 6 +- src/network/access/qnetworkreplyhttpimpl.cpp | 4 +- src/network/access/qnetworkreplyimpl.cpp | 2 +- src/network/access/qnetworkrequest.cpp | 6 +- src/network/bearer/qbearerengine.cpp | 4 +- src/network/bearer/qnetworkconfigmanager.cpp | 4 +- src/network/bearer/qnetworkconfiguration.cpp | 12 +- src/network/bearer/qnetworksession.cpp | 4 +- src/network/doc/src/bearermanagement.qdoc | 2 +- src/network/kernel/qauthenticator.cpp | 10 +- src/network/kernel/qhostaddress.cpp | 32 ++-- src/network/kernel/qnetworkinterface.cpp | 6 +- src/network/kernel/qnetworkproxy.cpp | 16 +- src/network/kernel/qurlinfo.cpp | 28 +-- src/network/socket/qabstractsocket.cpp | 40 ++-- src/network/socket/qlocalserver.cpp | 12 +- src/network/socket/qlocalsocket.cpp | 22 +-- src/network/socket/qnativesocketengine.cpp | 16 +- src/network/socket/qtcpserver.cpp | 18 +- src/network/socket/qudpsocket.cpp | 10 +- src/network/ssl/qsslcertificate.cpp | 16 +- src/network/ssl/qsslcertificateextension.cpp | 2 +- src/network/ssl/qsslcipher.cpp | 6 +- src/network/ssl/qsslconfiguration.cpp | 8 +- src/network/ssl/qsslerror.cpp | 4 +- src/network/ssl/qsslkey.cpp | 8 +- src/network/ssl/qsslsocket.cpp | 22 +-- .../gl2paintengineex/qglengineshadermanager.cpp | 2 +- src/opengl/qgl.cpp | 84 ++++----- src/opengl/qglbuffer.cpp | 10 +- src/opengl/qglcolormap.cpp | 4 +- src/opengl/qglframebufferobject.cpp | 28 +-- src/opengl/qglfunctions.cpp | 2 +- src/opengl/qglpixelbuffer.cpp | 14 +- src/opengl/qglshaderprogram.cpp | 30 +-- .../eventdispatchers/qeventdispatcher_cf.mm | 4 +- src/plugins/accessible/widgets/complexwidgets.cpp | 4 +- src/plugins/accessible/widgets/simplewidgets.cpp | 2 +- src/plugins/imageformats/ico/qicohandler.cpp | 4 +- src/plugins/platforms/cocoa/qmacmime.mm | 4 +- src/plugins/platforms/ios/qiosglobal.mm | 2 +- src/plugins/platforms/windows/qwindowsmime.cpp | 4 +- src/plugins/platforms/xcb/qxcbwindow.cpp | 2 +- src/printsupport/dialogs/qabstractprintdialog.cpp | 2 +- src/printsupport/kernel/qprinter.cpp | 30 +-- .../snippets/code/src_sql_kernel_qsqldatabase.cpp | 2 +- src/sql/doc/src/sql-programming.qdoc | 6 +- src/sql/kernel/qsqldatabase.cpp | 24 +-- src/sql/kernel/qsqldriver.cpp | 20 +- src/sql/kernel/qsqlerror.cpp | 6 +- src/sql/kernel/qsqlfield.cpp | 20 +- src/sql/kernel/qsqlindex.cpp | 4 +- src/sql/kernel/qsqlquery.cpp | 50 ++--- src/sql/kernel/qsqlrecord.cpp | 32 ++-- src/sql/kernel/qsqlresult.cpp | 30 +-- src/sql/models/qsqlquerymodel.cpp | 8 +- src/sql/models/qsqlrelationaltablemodel.cpp | 8 +- src/sql/models/qsqltablemodel.cpp | 42 ++--- src/testlib/qbenchmarkvalgrind.cpp | 6 +- src/testlib/qsignalspy.qdoc | 4 +- src/testlib/qtestcase.cpp | 12 +- src/tools/moc/generator.cpp | 6 +- src/tools/qdoc/codemarker.cpp | 2 +- src/tools/qdoc/codeparser.cpp | 6 +- src/tools/qdoc/config.cpp | 2 +- src/tools/qdoc/cppcodemarker.cpp | 6 +- src/tools/qdoc/cppcodeparser.cpp | 2 +- src/tools/qdoc/ditaxmlgenerator.cpp | 6 +- src/tools/qdoc/doc/qdoc-manual-markupcmds.qdoc | 2 +- src/tools/qdoc/doc/qdoc-manual-topiccmds.qdoc | 10 +- src/tools/qdoc/jscodemarker.cpp | 6 +- src/tools/qdoc/location.cpp | 2 +- src/tools/qdoc/node.cpp | 26 +-- src/tools/qdoc/qdocindexfiles.cpp | 2 +- src/tools/qdoc/qmlcodemarker.cpp | 6 +- src/tools/qdoc/qmlvisitor.cpp | 2 +- src/tools/qdoc/tokenizer.cpp | 2 +- src/tools/qdoc/yyindent.cpp | 22 +-- src/widgets/dialogs/qcolordialog.cpp | 2 +- src/widgets/dialogs/qdialog.cpp | 2 +- src/widgets/dialogs/qfiledialog.cpp | 8 +- src/widgets/dialogs/qfilesystemmodel.cpp | 14 +- src/widgets/dialogs/qfontdialog.cpp | 2 +- src/widgets/dialogs/qinputdialog.cpp | 2 +- src/widgets/dialogs/qwizard.cpp | 32 ++-- src/widgets/doc/src/graphicsview.qdoc | 2 +- src/widgets/doc/src/model-view-programming.qdoc | 2 +- src/widgets/effects/qgraphicseffect.cpp | 8 +- .../graphicsview/qgraphicsanchorlayout_p.cpp | 8 +- src/widgets/graphicsview/qgraphicsitem.cpp | 78 ++++---- src/widgets/graphicsview/qgraphicsitem_p.h | 4 +- src/widgets/graphicsview/qgraphicslayout.cpp | 6 +- src/widgets/graphicsview/qgraphicslayoutitem.cpp | 6 +- src/widgets/graphicsview/qgraphicsscene.cpp | 46 ++--- src/widgets/graphicsview/qgraphicsview.cpp | 4 +- src/widgets/graphicsview/qgraphicswidget.cpp | 16 +- src/widgets/graphicsview/qgridlayoutengine.cpp | 6 +- src/widgets/itemviews/qabstractitemdelegate.cpp | 4 +- src/widgets/itemviews/qabstractitemview.cpp | 14 +- src/widgets/itemviews/qdatawidgetmapper.cpp | 2 +- src/widgets/itemviews/qdirmodel.cpp | 18 +- src/widgets/itemviews/qheaderview.cpp | 16 +- src/widgets/itemviews/qitemdelegate.cpp | 4 +- src/widgets/itemviews/qlistview.cpp | 18 +- src/widgets/itemviews/qlistwidget.cpp | 18 +- src/widgets/itemviews/qstyleditemdelegate.cpp | 4 +- src/widgets/itemviews/qtableview.cpp | 24 +-- src/widgets/itemviews/qtablewidget.cpp | 10 +- src/widgets/itemviews/qtreeview.cpp | 34 ++-- src/widgets/itemviews/qtreewidget.cpp | 36 ++-- src/widgets/kernel/qaction.cpp | 14 +- src/widgets/kernel/qapplication.cpp | 8 +- src/widgets/kernel/qboxlayout.cpp | 10 +- src/widgets/kernel/qgesture.cpp | 8 +- src/widgets/kernel/qgridlayout.cpp | 4 +- src/widgets/kernel/qlayout.cpp | 8 +- src/widgets/kernel/qlayoutitem.cpp | 8 +- src/widgets/kernel/qshortcut.cpp | 4 +- src/widgets/kernel/qsizepolicy.qdoc | 16 +- src/widgets/kernel/qtooltip.cpp | 4 +- src/widgets/kernel/qwhatsthis.cpp | 4 +- src/widgets/kernel/qwidget.cpp | 80 ++++---- src/widgets/kernel/qwidget_p.h | 2 +- src/widgets/styles/qstylepainter.cpp | 2 +- src/widgets/styles/qstylesheetstyle.cpp | 4 +- src/widgets/styles/qwindowsstyle.cpp | 2 +- src/widgets/styles/qwindowsvistastyle.cpp | 2 +- src/widgets/styles/qwindowsxpstyle.cpp | 8 +- src/widgets/util/qcompleter.cpp | 4 +- src/widgets/util/qscroller.cpp | 2 +- src/widgets/util/qscrollerproperties.cpp | 4 +- src/widgets/util/qsystemtrayicon.cpp | 4 +- src/widgets/util/qundogroup.cpp | 6 +- src/widgets/util/qundostack.cpp | 22 +-- src/widgets/widgets/qabstractbutton.cpp | 6 +- src/widgets/widgets/qabstractscrollarea.cpp | 4 +- src/widgets/widgets/qabstractslider.cpp | 4 +- src/widgets/widgets/qabstractspinbox.cpp | 2 +- src/widgets/widgets/qbuttongroup.cpp | 4 +- src/widgets/widgets/qcalendarwidget.cpp | 2 +- src/widgets/widgets/qcombobox.cpp | 6 +- src/widgets/widgets/qdial.cpp | 4 +- src/widgets/widgets/qdialogbuttonbox.cpp | 2 +- src/widgets/widgets/qdockwidget.cpp | 6 +- src/widgets/widgets/qgroupbox.cpp | 2 +- src/widgets/widgets/qlabel.cpp | 8 +- src/widgets/widgets/qlcdnumber.cpp | 8 +- src/widgets/widgets/qlineedit.cpp | 16 +- src/widgets/widgets/qmainwindow.cpp | 8 +- src/widgets/widgets/qmdiarea.cpp | 2 +- src/widgets/widgets/qmdisubwindow.cpp | 4 +- src/widgets/widgets/qmenu.cpp | 10 +- src/widgets/widgets/qmenubar.cpp | 2 +- src/widgets/widgets/qplaintextedit.cpp | 12 +- src/widgets/widgets/qprogressbar.cpp | 2 +- src/widgets/widgets/qsplitter.cpp | 8 +- src/widgets/widgets/qtabbar.cpp | 6 +- src/widgets/widgets/qtabwidget.cpp | 4 +- src/widgets/widgets/qtextbrowser.cpp | 8 +- src/widgets/widgets/qtextedit.cpp | 14 +- src/widgets/widgets/qtoolbar.cpp | 8 +- src/widgets/widgets/qtoolbox.cpp | 2 +- src/widgets/widgets/qwidgetlinecontrol.cpp | 6 +- src/xml/dom/qdom.cpp | 146 +++++++-------- src/xml/sax/qxml.cpp | 94 +++++----- 388 files changed, 3087 insertions(+), 3087 deletions(-) diff --git a/src/concurrent/qtconcurrentfilter.cpp b/src/concurrent/qtconcurrentfilter.cpp index 7889fbff56..22a1243c18 100644 --- a/src/concurrent/qtconcurrentfilter.cpp +++ b/src/concurrent/qtconcurrentfilter.cpp @@ -75,7 +75,7 @@ \snippet code/src_concurrent_qtconcurrentfilter.cpp 0 - T must match the type stored in the sequence. The function returns true if + T must match the type stored in the sequence. The function returns \c true if the item should be kept, false if it should be discarded. This example shows how to keep strings that are all lower-case from a @@ -193,7 +193,7 @@ \relates Calls \a filterFunction once for each item in \a sequence. If - \a filterFunction returns true, the item is kept in \a sequence; + \a filterFunction returns \c true, the item is kept in \a sequence; otherwise, the item is removed from \a sequence. */ @@ -202,7 +202,7 @@ \relates Calls \a filterFunction once for each item in \a sequence and returns a - new Sequence of kept items. If \a filterFunction returns true, a copy of + new Sequence of kept items. If \a filterFunction returns \c true, a copy of the item is put in the new Sequence. Otherwise, the item will \e not appear in the new Sequence. */ @@ -212,7 +212,7 @@ \relates Calls \a filterFunction once for each item from \a begin to \a end and - returns a new Sequence of kept items. If \a filterFunction returns true, a + returns a new Sequence of kept items. If \a filterFunction returns \c true, a copy of the item is put in the new Sequence. Otherwise, the item will \e not appear in the new Sequence. */ @@ -222,9 +222,9 @@ \relates Calls \a filterFunction once for each item in \a sequence. If - \a filterFunction returns true for an item, that item is then passed to + \a filterFunction returns \c true for an item, that item is then passed to \a reduceFunction. In other words, the return value is the result of - \a reduceFunction for each item where \a filterFunction returns true. + \a reduceFunction for each item where \a filterFunction returns \c true. Note that while \a filterFunction is called concurrently, only one thread at a time will call \a reduceFunction. The order in which \a reduceFunction @@ -239,9 +239,9 @@ \relates Calls \a filterFunction once for each item from \a begin to \a end. If - \a filterFunction returns true for an item, that item is then passed to + \a filterFunction returns \c true for an item, that item is then passed to \a reduceFunction. In other words, the return value is the result of - \a reduceFunction for each item where \a filterFunction returns true. + \a reduceFunction for each item where \a filterFunction returns \c true. Note that while \a filterFunction is called concurrently, only one thread at a time will call \a reduceFunction. The order in which @@ -255,7 +255,7 @@ \fn void QtConcurrent::blockingFilter(Sequence &sequence, FilterFunction filterFunction) Calls \a filterFunction once for each item in \a sequence. If - \a filterFunction returns true, the item is kept in \a sequence; + \a filterFunction returns \c true, the item is kept in \a sequence; otherwise, the item is removed from \a sequence. \note This function will block until all items in the sequence have been processed. @@ -265,7 +265,7 @@ \fn Sequence QtConcurrent::blockingFiltered(const Sequence &sequence, FilterFunction filterFunction) Calls \a filterFunction once for each item in \a sequence and returns a - new Sequence of kept items. If \a filterFunction returns true, a copy of + new Sequence of kept items. If \a filterFunction returns \c true, a copy of the item is put in the new Sequence. Otherwise, the item will \e not appear in the new Sequence. @@ -278,7 +278,7 @@ \fn Sequence QtConcurrent::blockingFiltered(ConstIterator begin, ConstIterator end, FilterFunction filterFunction) Calls \a filterFunction once for each item from \a begin to \a end and - returns a new Sequence of kept items. If \a filterFunction returns true, a + returns a new Sequence of kept items. If \a filterFunction returns \c true, a copy of the item is put in the new Sequence. Otherwise, the item will \e not appear in the new Sequence. @@ -292,9 +292,9 @@ \fn T QtConcurrent::blockingFilteredReduced(const Sequence &sequence, FilterFunction filterFunction, ReduceFunction reduceFunction, QtConcurrent::ReduceOptions reduceOptions) Calls \a filterFunction once for each item in \a sequence. If - \a filterFunction returns true for an item, that item is then passed to + \a filterFunction returns \c true for an item, that item is then passed to \a reduceFunction. In other words, the return value is the result of - \a reduceFunction for each item where \a filterFunction returns true. + \a reduceFunction for each item where \a filterFunction returns \c true. Note that while \a filterFunction is called concurrently, only one thread at a time will call \a reduceFunction. The order in which \a reduceFunction @@ -312,9 +312,9 @@ \fn T QtConcurrent::blockingFilteredReduced(ConstIterator begin, ConstIterator end, FilterFunction filterFunction, ReduceFunction reduceFunction, QtConcurrent::ReduceOptions reduceOptions) Calls \a filterFunction once for each item from \a begin to \a end. If - \a filterFunction returns true for an item, that item is then passed to + \a filterFunction returns \c true for an item, that item is then passed to \a reduceFunction. In other words, the return value is the result of - \a reduceFunction for each item where \a filterFunction returns true. + \a reduceFunction for each item where \a filterFunction returns \c true. Note that while \a filterFunction is called concurrently, only one thread at a time will call \a reduceFunction. The order in which diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index c58dfdbda1..139876de3a 100644 --- a/src/corelib/animation/qabstractanimation.cpp +++ b/src/corelib/animation/qabstractanimation.cpp @@ -507,7 +507,7 @@ void QUnifiedTimer::uninstallAnimationDriver(QAnimationDriver *d) } /*! - Returns true if \a d is the currently installed animation driver + Returns \c true if \a d is the currently installed animation driver and is not the default animation driver (which can never be uninstalled). */ bool QUnifiedTimer::canUninstallAnimationDriver(QAnimationDriver *d) diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp index 766e48358d..2552ddebe9 100644 --- a/src/corelib/codecs/qtextcodec.cpp +++ b/src/corelib/codecs/qtextcodec.cpp @@ -828,8 +828,8 @@ QString QTextCodec::toUnicode(const QByteArray& a) const } /*! - Returns true if the Unicode character \a ch can be fully encoded - with this codec; otherwise returns false. + Returns \c true if the Unicode character \a ch can be fully encoded + with this codec; otherwise returns \c false. */ bool QTextCodec::canEncode(QChar ch) const { diff --git a/src/corelib/doc/src/containers.qdoc b/src/corelib/doc/src/containers.qdoc index fc23a9967c..ff2df9c020 100644 --- a/src/corelib/doc/src/containers.qdoc +++ b/src/corelib/doc/src/containers.qdoc @@ -323,13 +323,13 @@ \row \li \l{QListIterator::toBack()}{toBack()} \li Moves the iterator to the back of the list (after the last item) \row \li \l{QListIterator::hasNext()}{hasNext()} - \li Returns true if the iterator isn't at the back of the list + \li Returns \c true if the iterator isn't at the back of the list \row \li \l{QListIterator::next()}{next()} \li Returns the next item and advances the iterator by one position \row \li \l{QListIterator::peekNext()}{peekNext()} \li Returns the next item without moving the iterator \row \li \l{QListIterator::hasPrevious()}{hasPrevious()} - \li Returns true if the iterator isn't at the front of the list + \li Returns \c true if the iterator isn't at the front of the list \row \li \l{QListIterator::previous()}{previous()} \li Returns the previous item and moves the iterator back by one position \row \li \l{QListIterator::peekPrevious()}{peekPrevious()} diff --git a/src/corelib/doc/src/threads.qdoc b/src/corelib/doc/src/threads.qdoc index a1967ff16b..8962dceb01 100644 --- a/src/corelib/doc/src/threads.qdoc +++ b/src/corelib/doc/src/threads.qdoc @@ -671,7 +671,7 @@ it does not duplicate an existing connection. i.e., if the same signal is already connected to the same slot for the same pair of objects, then the connection is not made and connect() - returns false. + returns \c false. \endlist diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index e2b1502a8e..ff2c4bbe5e 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -346,15 +346,15 @@ Q_CORE_EXPORT void *qMemSet(void *dest, int c, size_t n); /*! \fn bool QFlags::operator!() const - Returns true if no flag is set (i.e., if the value stored by the - QFlags object is 0); otherwise returns false. + Returns \c true if no flag is set (i.e., if the value stored by the + QFlags object is 0); otherwise returns \c false. */ /*! \fn bool QFlags::testFlag(Enum flag) const \since 4.2 - Returns true if the \a flag is set, otherwise false. + Returns \c true if the \a flag is set, otherwise false. */ /*! @@ -2295,7 +2295,7 @@ bool qputenv(const char *varName, const QByteArray& value) This function deletes the variable \a varName from the environment. - Returns true on success. + Returns \c true on success. \since 5.1 diff --git a/src/corelib/global/qglobalstatic.cpp b/src/corelib/global/qglobalstatic.cpp index 8474d132b4..35069f5a21 100644 --- a/src/corelib/global/qglobalstatic.cpp +++ b/src/corelib/global/qglobalstatic.cpp @@ -270,8 +270,8 @@ earlier versions. They could be used again in the future. The QGlobalStatic::exists() and QGlobalStatic::isDestroyed() functions - operate solely on the guard variable: the former returns true if the guard - is negative, whereas the latter returns true only if it is -2. + operate solely on the guard variable: the former returns \c true if the guard + is negative, whereas the latter returns \c true only if it is -2. The Q_GLOBAL_STATIC_INTERNAL macro implements the actual construction and destruction. There are two implementations of it: one for compilers that @@ -374,9 +374,9 @@ /*! \fn bool QGlobalStatic::isDestroyed() const - This function returns true if the global static object has already + This function returns \c true if the global static object has already completed destruction (that is, if the destructor for the type has already - returned). In specific, note that this function returns false if + returned). In specific, note that this function returns \c false if the destruction is still in progress. Once this function has returned true once, it will never return @@ -404,9 +404,9 @@ /*! \fn bool QGlobalStatic::exists() const - This function returns true if the global static object has already + This function returns \c true if the global static object has already completed initialization (that is, if the constructor for the type has - already returned). In specific, note that this function returns false if + already returned). In specific, note that this function returns \c false if the initialization is still in progress. Once this function has returned true once, it will never return false again diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index 61841cab76..8d681f0c4c 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -253,7 +253,7 @@ QLibraryInfo::buildDate() /*! \since 5.0 - Returns true if this build of Qt was built with debugging enabled, or + Returns \c true if this build of Qt was built with debugging enabled, or false if it was built in release mode. */ bool diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 1cd2321ef6..f46640ea0e 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -2234,7 +2234,7 @@ of rich text. \value AutoText The text string is interpreted as for - Qt::RichText if Qt::mightBeRichText() returns true, otherwise + Qt::RichText if Qt::mightBeRichText() returns \c true, otherwise as Qt::PlainText. */ diff --git a/src/corelib/global/qnumeric.cpp b/src/corelib/global/qnumeric.cpp index 5e71753c8a..d09357c26c 100644 --- a/src/corelib/global/qnumeric.cpp +++ b/src/corelib/global/qnumeric.cpp @@ -45,37 +45,37 @@ QT_BEGIN_NAMESPACE /*! - Returns true if the double \a {d} is equivalent to infinity. + Returns \c true if the double \a {d} is equivalent to infinity. \relates */ Q_CORE_EXPORT bool qIsInf(double d) { return qt_is_inf(d); } /*! - Returns true if the double \a {d} is not a number (NaN). + Returns \c true if the double \a {d} is not a number (NaN). \relates */ Q_CORE_EXPORT bool qIsNaN(double d) { return qt_is_nan(d); } /*! - Returns true if the double \a {d} is a finite number. + Returns \c true if the double \a {d} is a finite number. \relates */ Q_CORE_EXPORT bool qIsFinite(double d) { return qt_is_finite(d); } /*! - Returns true if the float \a {f} is equivalent to infinity. + Returns \c true if the float \a {f} is equivalent to infinity. \relates */ Q_CORE_EXPORT bool qIsInf(float f) { return qt_is_inf(f); } /*! - Returns true if the float \a {f} is not a number (NaN). + Returns \c true if the float \a {f} is not a number (NaN). \relates */ Q_CORE_EXPORT bool qIsNaN(float f) { return qt_is_nan(f); } /*! - Returns true if the float \a {f} is a finite number. + Returns \c true if the float \a {f} is a finite number. \relates */ Q_CORE_EXPORT bool qIsFinite(float f) { return qt_is_finite(f); } diff --git a/src/corelib/io/qabstractfileengine.cpp b/src/corelib/io/qabstractfileengine.cpp index 9cdbbbbb25..a9cb5b5278 100644 --- a/src/corelib/io/qabstractfileengine.cpp +++ b/src/corelib/io/qabstractfileengine.cpp @@ -377,8 +377,8 @@ QAbstractFileEngine::~QAbstractFileEngine() /*! \fn bool QAbstractFileEngine::open(QIODevice::OpenMode mode) - Opens the file in the specified \a mode. Returns true if the file - was successfully opened; otherwise returns false. + Opens the file in the specified \a mode. Returns \c true if the file + was successfully opened; otherwise returns \c false. The \a mode is an OR combination of QIODevice::OpenMode and QIODevice::HandlingMode values. @@ -390,9 +390,9 @@ bool QAbstractFileEngine::open(QIODevice::OpenMode openMode) } /*! - Closes the file, returning true if successful; otherwise returns false. + Closes the file, returning true if successful; otherwise returns \c false. - The default implementation always returns false. + The default implementation always returns \c false. */ bool QAbstractFileEngine::close() { @@ -404,8 +404,8 @@ bool QAbstractFileEngine::close() Flushes and syncs the file to disk. - Returns true if successful; otherwise returns false. - The default implementation always returns false. + Returns \c true if successful; otherwise returns \c false. + The default implementation always returns \c false. */ bool QAbstractFileEngine::syncToDisk() { @@ -416,7 +416,7 @@ bool QAbstractFileEngine::syncToDisk() Flushes the open file, returning true if successful; otherwise returns false. - The default implementation always returns false. + The default implementation always returns \c false. */ bool QAbstractFileEngine::flush() { @@ -444,8 +444,8 @@ qint64 QAbstractFileEngine::pos() const /*! \fn bool QAbstractFileEngine::seek(qint64 offset) - Sets the file position to the given \a offset. Returns true if - the position was successfully set; otherwise returns false. + Sets the file position to the given \a offset. Returns \c true if + the position was successfully set; otherwise returns \c false. The offset is from the beginning of the file, unless the file is sequential. @@ -459,7 +459,7 @@ bool QAbstractFileEngine::seek(qint64 pos) } /*! - Returns true if the file is a sequential access device; returns + Returns \c true if the file is a sequential access device; returns false if the file is a direct access device. Operations involving size() and seek(int) are not valid on @@ -485,7 +485,7 @@ bool QAbstractFileEngine::remove() /*! Copies the contents of this file to a file with the name \a newName. - Returns true on success; otherwise, false is returned. + Returns \c true on success; otherwise, false is returned. */ bool QAbstractFileEngine::copy(const QString &newName) { @@ -513,7 +513,7 @@ bool QAbstractFileEngine::rename(const QString &newName) Requests that the file be renamed to \a newName in the file system. If the new name already exists, it must be overwritten. - If the operation succeeds, returns true; otherwise returns + If the operation succeeds, returns \c true; otherwise returns false. This virtual function must be reimplemented by all subclasses. @@ -530,7 +530,7 @@ bool QAbstractFileEngine::renameOverwrite(const QString &newName) Creates a link from the file currently specified by fileName() to \a newName. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns - true if successful; otherwise returns false. + true if successful; otherwise returns \c false. */ bool QAbstractFileEngine::link(const QString &newName) { @@ -772,8 +772,8 @@ int QAbstractFileEngine::handle() const /*! \since 4.3 - Returns true if the current position is at the end of the file; otherwise, - returns false. + Returns \c true if the current position is at the end of the file; otherwise, + returns \c false. This function bases its behavior on calling extension() with AtEndExtension. If the engine does not support this extension, false is @@ -790,7 +790,7 @@ bool QAbstractFileEngine::atEnd() const \since 4.4 Maps \a size bytes of the file into memory starting at \a offset. - Returns a pointer to the memory if successful; otherwise returns false + Returns a pointer to the memory if successful; otherwise returns \c false if, for example, an error occurs. This function bases its behavior on calling extension() with @@ -817,8 +817,8 @@ uchar *QAbstractFileEngine::map(qint64 offset, qint64 size, QFile::MemoryMapFlag /*! \since 4.4 - Unmaps the memory \a address. Returns true if the unmap succeeds; otherwise - returns false. + Unmaps the memory \a address. Returns \c true if the unmap succeeds; otherwise + returns \c false. This function bases its behavior on calling extension() with UnMapExtensionOption. If the engine does not support this extension, false is @@ -867,7 +867,7 @@ bool QAbstractFileEngine::unmap(uchar *address) You can call dirName() to get the directory name, nameFilters() to get a stringlist of name filters, and filters() to get the entry filters. - The pure virtual function hasNext() returns true if the current directory + The pure virtual function hasNext() returns \c true if the current directory has at least one more entry (i.e., the directory name is valid and accessible, and we have not reached the end of the entry list), and false otherwise. Reimplement next() to seek to the next entry. @@ -1056,7 +1056,7 @@ QVariant QAbstractFileEngineIterator::entryInfo(EntryInfoType type) const /*! \fn virtual bool QAbstractFileEngineIterator::hasNext() const = 0 - This pure virtual function returns true if there is at least one more + This pure virtual function returns \c true if there is at least one more entry in the current directory (i.e., the iterator path is valid and accessible, and the iterator has not reached the end of the entry list). @@ -1147,14 +1147,14 @@ qint64 QAbstractFileEngine::readLine(char *data, qint64 maxlen) buffering to report end-of-file status without having to check the size of the file. It is also useful for sequential files, where the size of the file cannot be used to determine whether or not you have reached the end. - This extension returns true if the file is at the end; otherwise it returns + This extension returns \c true if the file is at the end; otherwise it returns false. The input and output arguments to extension() are ignored. \value FastReadLineExtension Whether the file engine provides a fast implementation for readLine() or not. If readLine() remains unimplemented in the file engine, QAbstractFileEngine will provide an implementation based on calling read() repeatedly. If - supportsExtension() returns false for this extension, however, + supportsExtension() returns \c false for this extension, however, QIODevice can provide a faster implementation by making use of its internal buffer. For engines that already provide a fast readLine() implementation, returning false for this extension can avoid @@ -1201,7 +1201,7 @@ qint64 QAbstractFileEngine::readLine(char *data, qint64 maxlen) You can call supportsExtension() to check if an extension is supported by the file engine. - By default, no extensions are supported, and this function returns false. + By default, no extensions are supported, and this function returns \c false. \sa supportsExtension(), Extension */ @@ -1216,7 +1216,7 @@ bool QAbstractFileEngine::extension(Extension extension, const ExtensionOption * /*! \since 4.3 - This virtual function returns true if the file engine supports \a + This virtual function returns \c true if the file engine supports \a extension; otherwise, false is returned. By default, no extensions are supported. diff --git a/src/corelib/io/qdatastream.cpp b/src/corelib/io/qdatastream.cpp index 008460df5d..af5605f8c7 100644 --- a/src/corelib/io/qdatastream.cpp +++ b/src/corelib/io/qdatastream.cpp @@ -402,9 +402,9 @@ void QDataStream::unsetDevice() /*! \fn bool QDataStream::atEnd() const - Returns true if the I/O device has reached the end position (end of + Returns \c true if the I/O device has reached the end position (end of the stream or file) or if there is no I/O device set; otherwise - returns false. + returns \c false. \sa QIODevice::atEnd() */ diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index b8cd0f70b2..05920f4575 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -169,7 +169,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QDebug::autoInsertSpaces() const - Returns true if this QDebug instance will automatically insert spaces + Returns \c true if this QDebug instance will automatically insert spaces between writes. \since 5.0 diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index 5af398c360..ed3c4d6993 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -855,8 +855,8 @@ QString QDir::fromNativeSeparators(const QString &pathName) /*! Changes the QDir's directory to \a dirName. - Returns true if the new directory exists and is readable; - otherwise returns false. Note that the logical cd() operation is + Returns \c true if the new directory exists and is readable; + otherwise returns \c false. Note that the logical cd() operation is not performed if the new directory does not exist. Calling cd("..") is equivalent to calling cdUp(). @@ -923,8 +923,8 @@ bool QDir::cd(const QString &dirName) Changes directory by moving one directory up from the QDir's current directory. - Returns true if the new directory exists and is readable; - otherwise returns false. Note that the logical cdUp() operation is + Returns \c true if the new directory exists and is readable; + otherwise returns \c false. Note that the logical cdUp() operation is not performed if the new directory does not exist. \sa cd(), isReadable(), exists(), path() @@ -1373,7 +1373,7 @@ QFileInfoList QDir::entryInfoList(const QStringList &nameFilters, Filters filter /*! Creates a sub-directory called \a dirName. - Returns true on success; otherwise returns false. + Returns \c true on success; otherwise returns \c false. If the directory already exists when this function is called, it will return false. @@ -1399,7 +1399,7 @@ bool QDir::mkdir(const QString &dirName) const The directory must be empty for rmdir() to succeed. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. \sa mkdir() */ @@ -1425,7 +1425,7 @@ bool QDir::rmdir(const QString &dirName) const The function will create all parent directories necessary to create the directory. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. If the path already exists when this function is called, it will return true. @@ -1453,7 +1453,7 @@ bool QDir::mkpath(const QString &dirPath) const provided that they are empty. This is the opposite of mkpath(dirPath). - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. \sa mkpath() */ @@ -1476,13 +1476,13 @@ bool QDir::rmpath(const QString &dirPath) const \since 5.0 Removes the directory, including all its contents. - Returns true if successful, otherwise false. + Returns \c true if successful, otherwise false. If a file or directory cannot be removed, removeRecursively() keeps going and attempts to delete as many files and sub-directories as possible, - then returns false. + then returns \c false. - If the directory was already removed, the method returns true + If the directory was already removed, the method returns \c true (expected result already reached). Note: this function is meant for removing a small application-internal @@ -1520,8 +1520,8 @@ bool QDir::removeRecursively() } /*! - Returns true if the directory is readable \e and we can open files - by name; otherwise returns false. + Returns \c true if the directory is readable \e and we can open files + by name; otherwise returns \c false. \warning A false value from this function is not a guarantee that files in the directory are not accessible. @@ -1550,7 +1550,7 @@ bool QDir::isReadable() const /*! \overload - Returns true if the directory exists; otherwise returns false. + Returns \c true if the directory exists; otherwise returns \c false. (If a file with the same name is found this function will return false). The overload of this function that accepts an argument is used to test @@ -1564,11 +1564,11 @@ bool QDir::exists() const } /*! - Returns true if the directory is the root directory; otherwise - returns false. + Returns \c true if the directory is the root directory; otherwise + returns \c false. Note: If the directory is a symbolic link to the root directory - this function returns false. If you want to test for this use + this function returns \c false. If you want to test for this use canonicalPath(), e.g. \snippet code/src_corelib_io_qdir.cpp 9 @@ -1585,8 +1585,8 @@ bool QDir::isRoot() const /*! \fn bool QDir::isAbsolute() const - Returns true if the directory's path is absolute; otherwise - returns false. See isAbsolutePath(). + Returns \c true if the directory's path is absolute; otherwise + returns \c false. See isAbsolutePath(). \sa isRelative(), makeAbsolute(), cleanPath() */ @@ -1594,14 +1594,14 @@ bool QDir::isRoot() const /*! \fn bool QDir::isAbsolutePath(const QString &) - Returns true if \a path is absolute; returns false if it is + Returns \c true if \a path is absolute; returns \c false if it is relative. \sa isAbsolute(), isRelativePath(), makeAbsolute(), cleanPath() */ /*! - Returns true if the directory path is relative; otherwise returns + Returns \c true if the directory path is relative; otherwise returns false. (Under Unix a path is relative if it does not start with a "/"). @@ -1617,8 +1617,8 @@ bool QDir::isRelative() const /*! Converts the directory path to an absolute path. If it is already - absolute nothing happens. Returns true if the conversion - succeeded; otherwise returns false. + absolute nothing happens. Returns \c true if the conversion + succeeded; otherwise returns \c false. \sa isAbsolute(), isAbsolutePath(), isRelative(), cleanPath() */ @@ -1643,9 +1643,9 @@ bool QDir::makeAbsolute() } /*! - Returns true if directory \a dir and this directory have the same + Returns \c true if directory \a dir and this directory have the same path and their sort and filter settings are the same; otherwise - returns false. + returns \c false. Example: @@ -1730,7 +1730,7 @@ QDir &QDir::operator=(const QString &path) /*! \fn bool QDir::operator!=(const QDir &dir) const - Returns true if directory \a dir and this directory have different + Returns \c true if directory \a dir and this directory have different paths or different sort or filter settings; otherwise returns false. @@ -1742,8 +1742,8 @@ QDir &QDir::operator=(const QString &path) /*! Removes the file, \a fileName. - Returns true if the file is removed successfully; otherwise - returns false. + Returns \c true if the file is removed successfully; otherwise + returns \c false. */ bool QDir::remove(const QString &fileName) { @@ -1756,7 +1756,7 @@ bool QDir::remove(const QString &fileName) /*! Renames a file or directory from \a oldName to \a newName, and returns - true if successful; otherwise returns false. + true if successful; otherwise returns \c false. On most file systems, rename() fails only if \a oldName does not exist, or if a file with the new name already exists. @@ -1784,7 +1784,7 @@ bool QDir::rename(const QString &oldName, const QString &newName) } /*! - Returns true if the file called \a name exists; otherwise returns + Returns \c true if the file called \a name exists; otherwise returns false. Unless \a name contains an absolute file path, the file name is assumed @@ -1841,8 +1841,8 @@ QChar QDir::separator() /*! Sets the application's current working directory to \a path. - Returns true if the directory was successfully changed; otherwise - returns false. + Returns \c true if the directory was successfully changed; otherwise + returns \c false. \sa current(), currentPath(), home(), root(), temp() */ @@ -1980,8 +1980,8 @@ QString QDir::rootPath() /*! \overload - Returns true if the \a fileName matches any of the wildcard (glob) - patterns in the list of \a filters; otherwise returns false. The + Returns \c true if the \a fileName matches any of the wildcard (glob) + patterns in the list of \a filters; otherwise returns \c false. The matching is case insensitive. \sa {QRegExp wildcard matching}, QRegExp::exactMatch(), entryList(), entryInfoList() @@ -1997,8 +1997,8 @@ bool QDir::match(const QStringList &filters, const QString &fileName) } /*! - Returns true if the \a fileName matches the wildcard (glob) - pattern \a filter; otherwise returns false. The \a filter may + Returns \c true if the \a fileName matches the wildcard (glob) + pattern \a filter; otherwise returns \c false. The \a filter may contain multiple patterns separated by spaces or semicolons. The matching is case insensitive. @@ -2159,7 +2159,7 @@ QString QDir::cleanPath(const QString &path) } /*! - Returns true if \a path is relative; returns false if it is + Returns \c true if \a path is relative; returns \c false if it is absolute. \sa isRelative(), isAbsolutePath(), makeAbsolute() diff --git a/src/corelib/io/qdiriterator.cpp b/src/corelib/io/qdiriterator.cpp index fe9a423c58..5b48c4c7db 100644 --- a/src/corelib/io/qdiriterator.cpp +++ b/src/corelib/io/qdiriterator.cpp @@ -308,7 +308,7 @@ void QDirIteratorPrivate::checkAndPushDirectory(const QFileInfo &fileInfo) This convenience function implements the iterator's filtering logics and applies then to the current directory entry. - It returns true if the current entry matches the filters (i.e., the + It returns \c true if the current entry matches the filters (i.e., the current entry will be returned as part of the directory iteration); otherwise, false is returned. */ @@ -476,7 +476,7 @@ QDirIterator::~QDirIterator() /*! Advances the iterator to the next entry, and returns the file path of this - new entry. If hasNext() returns false, this function does nothing, and + new entry. If hasNext() returns \c false, this function does nothing, and returns a null QString. You can call fileName() or filePath() to get the current entry file name @@ -491,7 +491,7 @@ QString QDirIterator::next() } /*! - Returns true if there is at least one more entry in the directory; + Returns \c true if there is at least one more entry in the directory; otherwise, false is returned. \sa next(), fileName(), filePath(), fileInfo() diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index d991e86839..519ac009aa 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -143,7 +143,7 @@ QAbstractFileEngine *QFilePrivate::engine() const The size of the file is returned by size(). You can get the current file position using pos(), or move to a new file position using seek(). If you've reached the end of the file, atEnd() - returns true. + returns \c true. \section1 Reading Files Directly @@ -403,8 +403,8 @@ QFile::setFileName(const QString &name) /*! \overload - Returns true if the file specified by fileName() exists; otherwise - returns false. + Returns \c true if the file specified by fileName() exists; otherwise + returns \c false. \sa fileName(), setFileName() */ @@ -419,8 +419,8 @@ QFile::exists() const } /*! - Returns true if the file specified by \a fileName exists; otherwise - returns false. + Returns \c true if the file specified by \a fileName exists; otherwise + returns \c false. \note If \a fileName is a symlink that points to a non-existing file, false is returned. @@ -442,7 +442,7 @@ QFile::exists(const QString &fileName) link. This name may not represent an existing file; it is only a string. - QFile::exists() returns true if the symlink points to an existing file. + QFile::exists() returns \c true if the symlink points to an existing file. \sa fileName(), setFileName() */ @@ -468,7 +468,7 @@ QFile::readLink() const empty string if the \a fileName does not correspond to a symbolic link. This name may not represent an existing file; it is only a string. - QFile::exists() returns true if the symlink points to an existing file. + QFile::exists() returns \c true if the symlink points to an existing file. */ /*! @@ -483,8 +483,8 @@ QFile::readLink(const QString &fileName) } /*! - Removes the file specified by fileName(). Returns true if successful; - otherwise returns false. + Removes the file specified by fileName(). Returns \c true if successful; + otherwise returns \c false. The file is closed before it is removed. @@ -516,7 +516,7 @@ QFile::remove() Removes the file specified by the \a fileName given. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. \sa remove() */ @@ -529,9 +529,9 @@ QFile::remove(const QString &fileName) /*! Renames the file currently specified by fileName() to \a newName. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. - If a file with the name \a newName already exists, rename() returns false + If a file with the name \a newName already exists, rename() returns \c false (i.e., QFile will not overwrite it). The file is closed before it is renamed. @@ -660,10 +660,10 @@ QFile::rename(const QString &newName) /*! \overload - Renames the file \a oldName to \a newName. Returns true if - successful; otherwise returns false. + Renames the file \a oldName to \a newName. Returns \c true if + successful; otherwise returns \c false. - If a file with the name \a newName already exists, rename() returns false + If a file with the name \a newName already exists, rename() returns \c false (i.e., QFile will not overwrite it). \sa rename() @@ -679,8 +679,8 @@ QFile::rename(const QString &oldName, const QString &newName) Creates a link named \a linkName that points to the file currently specified by fileName(). What a link is depends on the underlying filesystem (be it a - shortcut on Windows or a symbolic link on Unix). Returns true if successful; - otherwise returns false. + shortcut on Windows or a symbolic link on Unix). Returns \c true if successful; + otherwise returns \c false. This function will not overwrite an already existing entity in the file system; in this case, \c link() will return false and set \l{QFile::}{error()} to @@ -713,8 +713,8 @@ QFile::link(const QString &linkName) Creates a link named \a linkName that points to the file \a fileName. What a link is depends on the underlying filesystem (be it a shortcut on Windows - or a symbolic link on Unix). Returns true if successful; otherwise - returns false. + or a symbolic link on Unix). Returns \c true if successful; otherwise + returns \c false. \sa link() */ @@ -727,10 +727,10 @@ QFile::link(const QString &fileName, const QString &linkName) /*! Copies the file currently specified by fileName() to a file called - \a newName. Returns true if successful; otherwise returns false. + \a newName. Returns \c true if successful; otherwise returns \c false. Note that if a file with the name \a newName already exists, - copy() returns false (i.e. QFile will not overwrite it). + copy() returns \c false (i.e. QFile will not overwrite it). The source file is closed before it is copied. @@ -830,10 +830,10 @@ QFile::copy(const QString &newName) /*! \overload - Copies the file \a fileName to \a newName. Returns true if successful; - otherwise returns false. + Copies the file \a fileName to \a newName. Returns \c true if successful; + otherwise returns \c false. - If a file with the name \a newName already exists, copy() returns false + If a file with the name \a newName already exists, copy() returns \c false (i.e., QFile will not overwrite it). \sa rename() @@ -894,7 +894,7 @@ bool QFile::open(OpenMode mode) Opens the existing file handle \a fh in the given \a mode. \a handleFlags may be used to specify additional options. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. Example: \snippet code/src_corelib_io_qfile.cpp 3 @@ -966,7 +966,7 @@ bool QFile::open(FILE *fh, OpenMode mode, FileHandleFlags handleFlags) Opens the existing file descriptor \a fd in the given \a mode. \a handleFlags may be used to specify additional options. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. When a QFile is opened using this function, behaviour of close() is controlled by the AutoCloseHandle flag. @@ -1031,7 +1031,7 @@ bool QFile::resize(qint64 sz) /*! \overload - Sets \a fileName to size (in bytes) \a sz. Returns true if the file if + Sets \a fileName to size (in bytes) \a sz. Returns \c true if the file if the resize succeeds; false otherwise. If \a sz is larger than \a fileName currently is the new bytes will be set to 0, if \a sz is smaller the file is simply truncated. @@ -1068,7 +1068,7 @@ QFile::permissions(const QString &fileName) /*! Sets the permissions for the file to the \a permissions specified. - Returns true if successful, or false if the permissions cannot be + Returns \c true if successful, or false if the permissions cannot be modified. \sa permissions(), setFileName() diff --git a/src/corelib/io/qfiledevice.cpp b/src/corelib/io/qfiledevice.cpp index 8825ec33b3..f25933816a 100644 --- a/src/corelib/io/qfiledevice.cpp +++ b/src/corelib/io/qfiledevice.cpp @@ -232,8 +232,8 @@ QFileDevice::~QFileDevice() } /*! - Returns true if the file can only be manipulated sequentially; - otherwise returns false. + Returns \c true if the file can only be manipulated sequentially; + otherwise returns \c false. Most files support random-access, but some special files may not. @@ -286,8 +286,8 @@ static inline qint64 _qfile_writeData(QAbstractFileEngine *engine, QRingBuffer * } /*! - Flushes any buffered data to the file. Returns true if successful; - otherwise returns false. + Flushes any buffered data to the file. Returns \c true if successful; + otherwise returns \c false. */ bool QFileDevice::flush() { @@ -351,11 +351,11 @@ qint64 QFileDevice::pos() const } /*! - Returns true if the end of the file has been reached; otherwise returns + Returns \c true if the end of the file has been reached; otherwise returns false. For regular empty files on Unix (e.g. those in \c /proc), this function - returns true, since the file system reports that the size of such a file is + returns \c true, since the file system reports that the size of such a file is 0. Therefore, you should not depend on atEnd() when reading data from such a file, but rather call read() until no more data can be read. */ @@ -578,7 +578,7 @@ qint64 QFileDevice::writeData(const char *data, qint64 len) Returns the file error status. The I/O device status returns an error code. For example, if open() - returns false, or a read/write operation returns -1, this function can + returns \c false, or a read/write operation returns -1, this function can be called to find out the reason why the operation failed. \sa unsetError() @@ -617,7 +617,7 @@ qint64 QFileDevice::size() const } /*! - Sets the file size (in bytes) \a sz. Returns true if the file if the + Sets the file size (in bytes) \a sz. Returns \c true if the file if the resize succeeds; false otherwise. If \a sz is larger than the file currently is the new bytes will be set to 0, if \a sz is smaller the file is simply truncated. @@ -657,7 +657,7 @@ QFile::Permissions QFileDevice::permissions() const /*! Sets the permissions for the file to the \a permissions specified. - Returns true if successful, or false if the permissions cannot be + Returns \c true if successful, or false if the permissions cannot be modified. \sa permissions() @@ -715,7 +715,7 @@ uchar *QFileDevice::map(qint64 offset, qint64 size, MemoryMapFlags flags) /*! Unmaps the memory \a address. - Returns true if the unmap succeeds; false otherwise. + Returns \c true if the unmap succeeds; false otherwise. \sa map() */ diff --git a/src/corelib/io/qfileinfo.cpp b/src/corelib/io/qfileinfo.cpp index d1b7ebac65..90122a9f0d 100644 --- a/src/corelib/io/qfileinfo.cpp +++ b/src/corelib/io/qfileinfo.cpp @@ -379,15 +379,15 @@ QFileInfo::~QFileInfo() /*! \fn bool QFileInfo::operator!=(const QFileInfo &fileinfo) const - Returns true if this QFileInfo object refers to a different file - than the one specified by \a fileinfo; otherwise returns false. + Returns \c true if this QFileInfo object refers to a different file + than the one specified by \a fileinfo; otherwise returns \c false. \sa operator==() */ /*! - Returns true if this QFileInfo object refers to a file in the same - location as \a fileinfo; otherwise returns false. + Returns \c true if this QFileInfo object refers to a file in the same + location as \a fileinfo; otherwise returns \c false. Note that the result of comparing two empty QFileInfo objects, containing no file references (file paths that do not exist or @@ -615,14 +615,14 @@ QString QFileInfo::path() const /*! \fn bool QFileInfo::isAbsolute() const - Returns true if the file path name is absolute, otherwise returns + Returns \c true if the file path name is absolute, otherwise returns false if the path is relative. \sa isRelative() */ /*! - Returns true if the file path name is relative, otherwise returns + Returns \c true if the file path name is relative, otherwise returns false if the path is absolute (e.g. under Unix a path is absolute if it begins with a "/"). @@ -640,7 +640,7 @@ bool QFileInfo::isRelative() const /*! Converts the file's path to an absolute path if it is not already in that form. - Returns true to indicate that the path was converted; otherwise returns false + Returns \c true to indicate that the path was converted; otherwise returns \c false to indicate that the path was already absolute. \sa filePath(), isRelative() @@ -656,7 +656,7 @@ bool QFileInfo::makeAbsolute() } /*! - Returns true if the file exists; otherwise returns false. + Returns \c true if the file exists; otherwise returns \c false. \note If the file is a symlink that points to a non-existing file, false is returned. @@ -675,7 +675,7 @@ bool QFileInfo::exists() const } /*! - Returns true if the \a file exists; otherwise returns false. + Returns \c true if the \a file exists; otherwise returns \c false. \note If \a file is a symlink that points to a non-existing file, false is returned. @@ -884,7 +884,7 @@ QDir QFileInfo::absoluteDir() const } /*! - Returns true if the user can read the file; otherwise returns false. + Returns \c true if the user can read the file; otherwise returns \c false. \sa isWritable(), isExecutable(), permission() */ @@ -902,7 +902,7 @@ bool QFileInfo::isReadable() const } /*! - Returns true if the user can write to the file; otherwise returns false. + Returns \c true if the user can write to the file; otherwise returns \c false. \sa isReadable(), isExecutable(), permission() */ @@ -920,7 +920,7 @@ bool QFileInfo::isWritable() const } /*! - Returns true if the file is executable; otherwise returns false. + Returns \c true if the file is executable; otherwise returns \c false. \sa isReadable(), isWritable(), permission() */ @@ -938,9 +938,9 @@ bool QFileInfo::isExecutable() const } /*! - Returns true if this is a `hidden' file; otherwise returns false. + Returns \c true if this is a `hidden' file; otherwise returns \c false. - \b{Note:} This function returns true for the special entries + \b{Note:} This function returns \c true for the special entries "." and ".." on Unix, even though QDir::entryList threats them as shown. */ bool QFileInfo::isHidden() const @@ -958,8 +958,8 @@ bool QFileInfo::isHidden() const /*! \since 5.0 - Returns true if the file path can be used directly with native APIs. - Returns false if the file is otherwise supported by a virtual file system + Returns \c true if the file path can be used directly with native APIs. + Returns \c false if the file is otherwise supported by a virtual file system inside Qt, such as \l{the Qt Resource System}. \b{Note:} Native paths may still require conversion of path separators @@ -980,8 +980,8 @@ bool QFileInfo::isNativePath() const } /*! - Returns true if this object points to a file or to a symbolic - link to a file. Returns false if the + Returns \c true if this object points to a file or to a symbolic + link to a file. Returns \c false if the object points to something which isn't a file, such as a directory. \sa isDir(), isSymLink(), isBundle() @@ -1000,8 +1000,8 @@ bool QFileInfo::isFile() const } /*! - Returns true if this object points to a directory or to a symbolic - link to a directory; otherwise returns false. + Returns \c true if this object points to a directory or to a symbolic + link to a directory; otherwise returns \c false. \sa isFile(), isSymLink(), isBundle() */ @@ -1021,8 +1021,8 @@ bool QFileInfo::isDir() const /*! \since 4.3 - Returns true if this object points to a bundle or to a symbolic - link to a bundle on Mac OS X; otherwise returns false. + Returns \c true if this object points to a bundle or to a symbolic + link to a bundle on Mac OS X; otherwise returns \c false. \sa isDir(), isSymLink(), isFile() */ @@ -1040,8 +1040,8 @@ bool QFileInfo::isBundle() const } /*! - Returns true if this object points to a symbolic link (or to a - shortcut on Windows); otherwise returns false. + Returns \c true if this object points to a symbolic link (or to a + shortcut on Windows); otherwise returns \c false. On Unix (including Mac OS X), opening a symlink effectively opens the \l{symLinkTarget()}{link's target}. On Windows, it opens the \c @@ -1070,9 +1070,9 @@ bool QFileInfo::isSymLink() const } /*! - Returns true if the object points to a directory or to a symbolic + Returns \c true if the object points to a directory or to a symbolic link to a directory, and that directory is the root directory; otherwise - returns false. + returns \c false. */ bool QFileInfo::isRoot() const { @@ -1105,7 +1105,7 @@ bool QFileInfo::isRoot() const link. This name may not represent an existing file; it is only a string. - QFileInfo::exists() returns true if the symlink points to an + QFileInfo::exists() returns \c true if the symlink points to an existing file. \sa exists(), isSymLink(), isDir(), isFile() @@ -1208,7 +1208,7 @@ uint QFileInfo::groupId() const for permission combinations. On systems where files do not have permissions this function - always returns true. + always returns \c true. Example: \snippet code/src_corelib_io_qfileinfo.cpp 10 @@ -1348,7 +1348,7 @@ QFileInfoPrivate* QFileInfo::d_func() } /*! - Returns true if caching is enabled; otherwise returns false. + Returns \c true if caching is enabled; otherwise returns \c false. \sa setCaching(), refresh() */ diff --git a/src/corelib/io/qfsfileengine.cpp b/src/corelib/io/qfsfileengine.cpp index f0f3c935e6..998a3334c9 100644 --- a/src/corelib/io/qfsfileengine.cpp +++ b/src/corelib/io/qfsfileengine.cpp @@ -224,8 +224,8 @@ bool QFSFileEngine::open(QIODevice::OpenMode openMode) } /*! - Opens the file handle \a fh in \a openMode mode. Returns true on - success; otherwise returns false. + Opens the file handle \a fh in \a openMode mode. Returns \c true on + success; otherwise returns \c false. */ bool QFSFileEngine::open(QIODevice::OpenMode openMode, FILE *fh) { @@ -285,8 +285,8 @@ bool QFSFileEnginePrivate::openFh(QIODevice::OpenMode openMode, FILE *fh) } /*! - Opens the file descriptor \a fd in \a openMode mode. Returns true - on success; otherwise returns false. + Opens the file descriptor \a fd in \a openMode mode. Returns \c true + on success; otherwise returns \c false. */ bool QFSFileEngine::open(QIODevice::OpenMode openMode, int fd) { @@ -837,7 +837,7 @@ bool QFSFileEngine::supportsExtension(Extension extension) const } /*! \fn bool QFSFileEngine::caseSensitive() const - Returns true for Windows, false for Unix. + Returns \c true for Windows, false for Unix. */ /*! \fn bool QFSFileEngine::copy(const QString ©Name) @@ -892,7 +892,7 @@ bool QFSFileEngine::supportsExtension(Extension extension) const Creates a link from the file currently specified by fileName() to \a newName. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns - true if successful; otherwise returns false. + true if successful; otherwise returns \c false. */ /*! \fn bool QFSFileEngine::mkdir(const QString &name, bool createParentDirectories) const @@ -935,8 +935,8 @@ bool QFSFileEngine::supportsExtension(Extension extension) const */ /*! \fn bool QFSFileEngine::setCurrentPath(const QString &path) - Sets the current path (e.g., for QDir), to \a path. Returns true if the - new path exists; otherwise this function does nothing, and returns false. + Sets the current path (e.g., for QDir), to \a path. Returns \c true if the + new path exists; otherwise this function does nothing, and returns \c false. \sa currentPath() */ diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp index 1b06f3ec86..8fb80123fa 100644 --- a/src/corelib/io/qiodevice.cpp +++ b/src/corelib/io/qiodevice.cpp @@ -400,7 +400,7 @@ QIODevice::~QIODevice() } /*! - Returns true if this device is sequential; otherwise returns + Returns \c true if this device is sequential; otherwise returns false. Sequential devices, as opposed to a random-access devices, have no @@ -476,7 +476,7 @@ void QIODevice::setTextModeEnabled(bool enabled) } /*! - Returns true if the \l Text flag is enabled; otherwise returns false. + Returns \c true if the \l Text flag is enabled; otherwise returns \c false. \sa setTextModeEnabled() */ @@ -486,9 +486,9 @@ bool QIODevice::isTextModeEnabled() const } /*! - Returns true if the device is open; otherwise returns false. A + Returns \c true if the device is open; otherwise returns \c false. A device is open if it can be read from and/or written to. By - default, this function returns false if openMode() returns + default, this function returns \c false if openMode() returns \c NotOpen. \sa openMode(), OpenMode @@ -499,7 +499,7 @@ bool QIODevice::isOpen() const } /*! - Returns true if data can be read from the device; otherwise returns + Returns \c true if data can be read from the device; otherwise returns false. Use bytesAvailable() to determine how many bytes can be read. This is a convenience function which checks if the OpenMode of the @@ -513,7 +513,7 @@ bool QIODevice::isReadable() const } /*! - Returns true if data can be written to the device; otherwise returns + Returns \c true if data can be written to the device; otherwise returns false. This is a convenience function which checks if the OpenMode of the @@ -527,8 +527,8 @@ bool QIODevice::isWritable() const } /*! - Opens the device and sets its OpenMode to \a mode. Returns true if successful; - otherwise returns false. This function should be called from any + Opens the device and sets its OpenMode to \a mode. Returns \c true if successful; + otherwise returns \c false. This function should be called from any reimplementations of open() or other functions that open the device. \sa openMode(), OpenMode @@ -665,9 +665,9 @@ bool QIODevice::seek(qint64 pos) } /*! - Returns true if the current read and write position is at the end + Returns \c true if the current read and write position is at the end of the device (i.e. there is no more data available for reading on - the device); otherwise returns false. + the device); otherwise returns \c false. For some devices, atEnd() can return true even though there is more data to read. This special case only applies to devices that generate data in @@ -688,7 +688,7 @@ bool QIODevice::atEnd() const /*! Seeks to the start of input for random-access devices. Returns - true on success; otherwise returns false (for example, if the + true on success; otherwise returns \c false (for example, if the device is not open). Note that when using a QTextStream on a QFile, calling reset() on @@ -1268,8 +1268,8 @@ qint64 QIODevice::readLineData(char *data, qint64 maxSize) #endif /*! - Returns true if a complete line of data can be read from the device; - otherwise returns false. + Returns \c true if a complete line of data can be read from the device; + otherwise returns \c false. Note that unbuffered devices, which have no way of determining what can be read, always return false. @@ -1426,8 +1426,8 @@ void QIODevice::ungetChar(char c) /*! \fn bool QIODevice::putChar(char c) - Writes the character \a c to the device. Returns true on success; - otherwise returns false. + Writes the character \a c to the device. Returns \c true on success; + otherwise returns \c false. \sa write(), getChar(), ungetChar() */ @@ -1476,8 +1476,8 @@ QByteArray QIODevicePrivate::peek(qint64 maxSize) /*! \fn bool QIODevice::getChar(char *c) Reads one character from the device and stores it in \a c. If \a c - is 0, the character is discarded. Returns true on success; - otherwise returns false. + is 0, the character is discarded. Returns \c true on success; + otherwise returns \c false. \sa read(), putChar(), ungetChar() */ @@ -1537,7 +1537,7 @@ QByteArray QIODevice::peek(qint64 maxSize) signal has been emitted, or until \a msecs milliseconds have passed. If msecs is -1, this function will not time out. - Returns true if new data is available for reading; otherwise returns + Returns \c true if new data is available for reading; otherwise returns false (if the operation timed out or if an error occurred). This function can operate without an event loop. It is @@ -1548,7 +1548,7 @@ QByteArray QIODevice::peek(qint64 maxSize) readyRead() will not be reemitted. Reimplement this function to provide a blocking API for a custom - device. The default implementation does nothing, and returns false. + device. The default implementation does nothing, and returns \c false. \warning Calling this function from the main (GUI) thread might cause your user interface to freeze. @@ -1568,8 +1568,8 @@ bool QIODevice::waitForReadyRead(int msecs) milliseconds have passed. If msecs is -1, this function will not time out. For unbuffered devices, it returns immediately. - Returns true if a payload of data was written to the device; - otherwise returns false (i.e. if the operation timed out, or if an + Returns \c true if a payload of data was written to the device; + otherwise returns \c false (i.e. if the operation timed out, or if an error occurred). This function can operate without an event loop. It is @@ -1580,7 +1580,7 @@ bool QIODevice::waitForReadyRead(int msecs) bytesWritten() will not be reemitted. Reimplement this function to provide a blocking API for a custom - device. The default implementation does nothing, and returns false. + device. The default implementation does nothing, and returns \c false. \warning Calling this function from the main (GUI) thread might cause your user interface to freeze. diff --git a/src/corelib/io/qlockfile.cpp b/src/corelib/io/qlockfile.cpp index 5d56a67f48..e24a7e85a8 100644 --- a/src/corelib/io/qlockfile.cpp +++ b/src/corelib/io/qlockfile.cpp @@ -154,8 +154,8 @@ int QLockFile::staleLockTime() const } /*! - Returns true if the lock was acquired by this QLockFile instance, - otherwise returns false. + Returns \c true if the lock was acquired by this QLockFile instance, + otherwise returns \c false. \sa lock(), unlock(), tryLock() */ @@ -175,7 +175,7 @@ bool QLockFile::isLocked() const thread without unlocking first is not allowed. This function will \e dead-lock when the file is locked recursively. - Returns true if the lock was acquired, false if it could not be acquired + Returns \c true if the lock was acquired, false if it could not be acquired due to an unrecoverable error, such as no permissions in the parent directory. \sa unlock(), tryLock() @@ -186,8 +186,8 @@ bool QLockFile::lock() } /*! - Attempts to create the lock file. This function returns true if the - lock was obtained; otherwise it returns false. If another process (or + Attempts to create the lock file. This function returns \c true if the + lock was obtained; otherwise it returns \c false. If another process (or another thread) has created the lock file already, this function will wait for at most \a timeout milliseconds for the lock file to become available. @@ -255,7 +255,7 @@ bool QLockFile::tryLock(int timeout) /*! Retrieves information about the current owner of the lock file. - If tryLock() returns false, and error() returns LockFailedError, + If tryLock() returns \c false, and error() returns LockFailedError, this function can be called to find out more information about the existing lock file: \list @@ -272,7 +272,7 @@ bool QLockFile::tryLock(int timeout) the choice to delete it. After removing the file using removeStaleLockFile(), the application can call tryLock() again. - This function returns true if the information could be successfully retrieved, false + This function returns \c true if the information could be successfully retrieved, false if the lock file doesn't exist or doesn't contain the expected data. This can happen if the lock file was deleted between the time where tryLock() failed and the call to this function. Simply call tryLock() again if this happens. @@ -318,7 +318,7 @@ bool QLockFilePrivate::getLockInfo(qint64 *pid, QString *hostname, QString *appn with staleLockTime(0), and after tryLock() returned LockFailedError, and the user agreed on removing the lock file. - Returns true on success, false if the lock file couldn't be removed. This happens + Returns \c true on success, false if the lock file couldn't be removed. This happens on Windows, when the application owning the lock is still running. */ bool QLockFile::removeStaleLockFile() @@ -334,7 +334,7 @@ bool QLockFile::removeStaleLockFile() /*! Returns the lock file error status. - If tryLock() returns false, this function can be called to find out + If tryLock() returns \c false, this function can be called to find out the reason why the locking failed. */ QLockFile::LockError QLockFile::error() const diff --git a/src/corelib/io/qlockfile_p.h b/src/corelib/io/qlockfile_p.h index e046e87cf4..e08f86cab9 100644 --- a/src/corelib/io/qlockfile_p.h +++ b/src/corelib/io/qlockfile_p.h @@ -80,7 +80,7 @@ public: QLockFile::LockError tryLock_sys(); bool removeStaleLock(); bool getLockInfo(qint64 *pid, QString *hostname, QString *appname) const; - // Returns true if the lock belongs to dead PID, or is old. + // Returns \c true if the lock belongs to dead PID, or is old. // The attempt to delete it will tell us if it was really stale or not, though. bool isApparentlyStale() const; diff --git a/src/corelib/io/qnoncontiguousbytedevice.cpp b/src/corelib/io/qnoncontiguousbytedevice.cpp index 253aa2aafb..b1e4dd7584 100644 --- a/src/corelib/io/qnoncontiguousbytedevice.cpp +++ b/src/corelib/io/qnoncontiguousbytedevice.cpp @@ -89,7 +89,7 @@ QT_BEGIN_NAMESPACE /*! \fn virtual bool QNonContiguousByteDevice::atEnd() - Returns true if everything has been read and the read + Returns \c true if everything has been read and the read pointer cannot be advanced anymore. \sa readPointer(), advanceReadPointer(), reset() @@ -100,7 +100,7 @@ QT_BEGIN_NAMESPACE \fn virtual bool QNonContiguousByteDevice::reset() Moves the internal read pointer back to the beginning. - Returns false if this was not possible. + Returns \c false if this was not possible. \sa atEnd(), disableReset() diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index fb86b053e9..ab2a69d054 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -249,13 +249,13 @@ QProcessEnvironment &QProcessEnvironment::operator=(const QProcessEnvironment &o /*! \fn bool QProcessEnvironment::operator !=(const QProcessEnvironment &other) const - Returns true if this and the \a other QProcessEnvironment objects are different. + Returns \c true if this and the \a other QProcessEnvironment objects are different. \sa operator==() */ /*! - Returns true if this and the \a other QProcessEnvironment objects are equal. + Returns \c true if this and the \a other QProcessEnvironment objects are equal. Two QProcessEnvironment objects are considered equal if they have the same set of key=value pairs. The comparison of keys is done case-sensitive on @@ -275,7 +275,7 @@ bool QProcessEnvironment::operator==(const QProcessEnvironment &other) const } /*! - Returns true if this QProcessEnvironment object is empty: that is + Returns \c true if this QProcessEnvironment object is empty: that is there are no key=value pairs set. \sa clear(), systemEnvironment(), insert() @@ -301,7 +301,7 @@ void QProcessEnvironment::clear() } /*! - Returns true if the environment variable of name \a name is found in + Returns \c true if the environment variable of name \a name is found in this QProcessEnvironment object. @@ -1587,8 +1587,8 @@ void QProcess::close() /*! \reimp - Returns true if the process is not running, and no more data is available - for reading; otherwise returns false. + Returns \c true if the process is not running, and no more data is available + for reading; otherwise returns \c false. */ bool QProcess::atEnd() const { @@ -1735,8 +1735,8 @@ QProcessEnvironment QProcess::processEnvironment() const Blocks until the process has started and the started() signal has been emitted, or until \a msecs milliseconds have passed. - Returns true if the process was started successfully; otherwise - returns false (if the operation timed out or if an error + Returns \c true if the process was started successfully; otherwise + returns \c false (if the operation timed out or if an error occurred). This function can operate without an event loop. It is @@ -1798,7 +1798,7 @@ bool QProcess::waitForBytesWritten(int msecs) Blocks until the process has finished and the finished() signal has been emitted, or until \a msecs milliseconds have passed. - Returns true if the process finished; otherwise returns false (if + Returns \c true if the process finished; otherwise returns \c false (if the operation timed out, if an error occurred, or if this QProcess is already finished). @@ -2366,8 +2366,8 @@ int QProcess::execute(const QString &program) /*! Starts the program \a program with the arguments \a arguments in a - new process, and detaches from it. Returns true on success; - otherwise returns false. If the calling process exits, the + new process, and detaches from it. Returns \c true on success; + otherwise returns \c false. If the calling process exits, the detached process will continue to live. Note that arguments that contain spaces are not passed to the @@ -2400,8 +2400,8 @@ bool QProcess::startDetached(const QString &program, /*! Starts the program \a program with the given \a arguments in a - new process, and detaches from it. Returns true on success; - otherwise returns false. If the calling process exits, the + new process, and detaches from it. Returns \c true on success; + otherwise returns \c false. If the calling process exits, the detached process will continue to live. \note Arguments that contain spaces are not passed to the diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 04ec81e159..c16b8d79a2 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -451,7 +451,7 @@ QString QResource::absoluteFilePath() const } /*! - Returns true if the resource really exists in the resource hierarchy, + Returns \c true if the resource really exists in the resource hierarchy, false otherwise. */ @@ -466,7 +466,7 @@ bool QResource::isValid() const /*! \fn bool QResource::isFile() const - Returns true if the resource represents a file and thus has data + Returns \c true if the resource represents a file and thus has data backing it, false if it represents a directory. \sa isDir() @@ -474,7 +474,7 @@ bool QResource::isValid() const /*! - Returns true if the resource represents a file and the data backing it + Returns \c true if the resource represents a file and the data backing it is in a compressed format, false otherwise. \sa data(), isFile() @@ -517,7 +517,7 @@ const uchar *QResource::data() const } /*! - Returns true if the resource represents a directory and thus may have + Returns \c true if the resource represents a directory and thus may have children() in it, false if it represents a file. \sa isFile() @@ -1044,8 +1044,8 @@ static QString qt_resource_fixResourceRoot(QString r) { \fn bool QResource::registerResource(const QString &rccFileName, const QString &mapRoot) Registers the resource with the given \a rccFileName at the location in the - resource tree specified by \a mapRoot, and returns true if the file is - successfully opened; otherwise returns false. + resource tree specified by \a mapRoot, and returns \c true if the file is + successfully opened; otherwise returns \c false. \sa unregisterResource() */ @@ -1075,9 +1075,9 @@ QResource::registerResource(const QString &rccFilename, const QString &resourceR \fn bool QResource::unregisterResource(const QString &rccFileName, const QString &mapRoot) Unregisters the resource with the given \a rccFileName at the location in - the resource tree specified by \a mapRoot, and returns true if the + the resource tree specified by \a mapRoot, and returns \c true if the resource is successfully unloaded and no references exist for the - resource; otherwise returns false. + resource; otherwise returns \c false. \sa registerResource() */ @@ -1112,8 +1112,8 @@ QResource::unregisterResource(const QString &rccFilename, const QString &resourc \since 4.3 Registers the resource with the given \a rccData at the location in the - resource tree specified by \a mapRoot, and returns true if the file is - successfully opened; otherwise returns false. + resource tree specified by \a mapRoot, and returns \c true if the file is + successfully opened; otherwise returns \c false. \warning The data must remain valid throughout the life of any QFile that may reference the resource data. @@ -1147,8 +1147,8 @@ QResource::registerResource(const uchar *rccData, const QString &resourceRoot) \since 4.3 Unregisters the resource with the given \a rccData at the location in the - resource tree specified by \a mapRoot, and returns true if the resource is - successfully unloaded and no references exist into the resource; otherwise returns false. + resource tree specified by \a mapRoot, and returns \c true if the resource is + successfully unloaded and no references exist into the resource; otherwise returns \c false. \sa registerResource() */ diff --git a/src/corelib/io/qsavefile.cpp b/src/corelib/io/qsavefile.cpp index 5ed429c464..2b901c7ccd 100644 --- a/src/corelib/io/qsavefile.cpp +++ b/src/corelib/io/qsavefile.cpp @@ -253,8 +253,8 @@ void QSaveFile::close() It is mandatory to call this at the end of the saving operation, otherwise the file will be discarded. - If an error happened during writing, deletes the temporary file and returns false. - Otherwise, renames it to the final fileName and returns true on success. + If an error happened during writing, deletes the temporary file and returns \c false. + Otherwise, renames it to the final fileName and returns \c true on success. Finally, closes the device. \sa cancelWriting() @@ -372,7 +372,7 @@ void QSaveFile::setDirectWriteFallback(bool enabled) } /*! - Returns true if the fallback solution for saving files in read-only + Returns \c true if the fallback solution for saving files in read-only directories is enabled. \sa setDirectWriteFallback() diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp index ebcaf062e3..c78b355ac1 100644 --- a/src/corelib/io/qsettings.cpp +++ b/src/corelib/io/qsettings.cpp @@ -1714,7 +1714,7 @@ break_out_of_outer_loop: } /* - Returns false on parse error. However, as many keys are read as + Returns \c false on parse error. However, as many keys are read as possible, so if the user doesn't check the status he will get the most out of the file anyway. */ @@ -3181,8 +3181,8 @@ QStringList QSettings::childGroups() const } /*! - Returns true if settings can be written using this QSettings - object; returns false otherwise. + Returns \c true if settings can be written using this QSettings + object; returns \c false otherwise. One reason why isWritable() might return false is if QSettings operates on a read-only file. @@ -3267,7 +3267,7 @@ void QSettings::remove(const QString &key) } /*! - Returns true if there exists a setting called \a key; returns + Returns \c true if there exists a setting called \a key; returns false otherwise. If a group is set using beginGroup(), \a key is taken to be @@ -3301,7 +3301,7 @@ void QSettings::setFallbacksEnabled(bool b) } /*! - Returns true if fallbacks are enabled; returns false otherwise. + Returns \c true if fallbacks are enabled; returns \c false otherwise. By default, fallbacks are enabled. diff --git a/src/corelib/io/qstandardpaths.cpp b/src/corelib/io/qstandardpaths.cpp index ea917c90d9..186321db6e 100644 --- a/src/corelib/io/qstandardpaths.cpp +++ b/src/corelib/io/qstandardpaths.cpp @@ -390,7 +390,7 @@ void QStandardPaths::setTestModeEnabled(bool testMode) \internal - Returns true if test mode is enabled in QStandardPaths; otherwise returns false. + Returns \c true if test mode is enabled in QStandardPaths; otherwise returns \c false. */ bool QStandardPaths::isTestModeEnabled() diff --git a/src/corelib/io/qtemporarydir.cpp b/src/corelib/io/qtemporarydir.cpp index f21403d7f1..483a76fa82 100644 --- a/src/corelib/io/qtemporarydir.cpp +++ b/src/corelib/io/qtemporarydir.cpp @@ -242,7 +242,7 @@ QTemporaryDir::~QTemporaryDir() } /*! - Returns true if the QTemporaryDir was created successfully. + Returns \c true if the QTemporaryDir was created successfully. */ bool QTemporaryDir::isValid() const { @@ -259,7 +259,7 @@ QString QTemporaryDir::path() const } /*! - Returns true if the QTemporaryDir is in auto remove + Returns \c true if the QTemporaryDir is in auto remove mode. Auto-remove mode will automatically delete the directory from disk upon destruction. This makes it very easy to create your QTemporaryDir object on the stack, fill it with files, do something with @@ -290,7 +290,7 @@ void QTemporaryDir::setAutoRemove(bool b) /*! Removes the temporary directory, including all its contents. - Returns true if removing was successful. + Returns \c true if removing was successful. */ bool QTemporaryDir::remove() { diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index c2f421843c..b3cb4e43f8 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -587,7 +587,7 @@ QTemporaryFile::~QTemporaryFile() */ /*! - Returns true if the QTemporaryFile is in auto remove + Returns \c true if the QTemporaryFile is in auto remove mode. Auto-remove mode will automatically delete the filename from disk upon destruction. This makes it very easy to create your QTemporaryFile object on the stack, fill it with data, read from diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp index 8459cdd158..8188628f57 100644 --- a/src/corelib/io/qtextstream.cpp +++ b/src/corelib/io/qtextstream.cpp @@ -1085,8 +1085,8 @@ void QTextStream::flush() } /*! - Seeks to the position \a pos in the device. Returns true on - success; otherwise returns false. + Seeks to the position \a pos in the device. Returns \c true on + success; otherwise returns \c false. */ bool QTextStream::seek(qint64 pos) { @@ -1185,7 +1185,7 @@ qint64 QTextStream::pos() const character. Whitespace characters are all characters for which - QChar::isSpace() returns true. + QChar::isSpace() returns \c true. \sa operator>>() */ @@ -1517,8 +1517,8 @@ void QTextStream::setStatus(Status status) } /*! - Returns true if there is no more data to be read from the - QTextStream; otherwise returns false. This is similar to, but not + Returns \c true if there is no more data to be read from the + QTextStream; otherwise returns \c false. This is similar to, but not the same as calling QIODevice::atEnd(), as QTextStream also takes into account its internal Unicode buffer. */ @@ -2091,7 +2091,7 @@ QTextStream &QTextStream::operator>>(double &f) /*! Reads a word from the stream and stores it in \a str, then returns a reference to the stream. Words are separated by whitespace - (i.e., all characters for which QChar::isSpace() returns true). + (i.e., all characters for which QChar::isSpace() returns \c true). Leading whitespace is skipped. */ @@ -2943,8 +2943,8 @@ void QTextStream::setAutoDetectUnicode(bool enabled) } /*! - Returns true if automatic Unicode detection is enabled, otherwise - returns false. Automatic Unicode detection is enabled by default. + Returns \c true if automatic Unicode detection is enabled, otherwise + returns \c false. Automatic Unicode detection is enabled by default. \sa setAutoDetectUnicode(), setCodec() */ @@ -2974,8 +2974,8 @@ void QTextStream::setGenerateByteOrderMark(bool generate) } /*! - Returns true if QTextStream is set to generate the UTF BOM (Byte Order - Mark) when using a UTF codec; otherwise returns false. UTF BOM generation is + Returns \c true if QTextStream is set to generate the UTF BOM (Byte Order + Mark) when using a UTF codec; otherwise returns \c false. UTF BOM generation is set to false by default. \sa setGenerateByteOrderMark() diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index d14add36a5..6b7c5bde2d 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -77,7 +77,7 @@ password at once. Call isValid() to check if the URL is valid. This can be done at any point - during the constructing of a URL. If isValid() returns false, you should + during the constructing of a URL. If isValid() returns \c false, you should clear() the URL before proceeding, or start over by parsing a new URL with setUrl(). @@ -1749,7 +1749,7 @@ QUrl::~QUrl() } /*! - Returns true if the URL is non-empty and valid; otherwise returns false. + Returns \c true if the URL is non-empty and valid; otherwise returns \c false. The URL is run through a conformance test. Every part of the URL must conform to the standard encoding rules of the URI standard @@ -1767,7 +1767,7 @@ bool QUrl::isValid() const } /*! - Returns true if the URL has no data; otherwise returns false. + Returns \c true if the URL has no data; otherwise returns \c false. \sa clear() */ @@ -2507,7 +2507,7 @@ QString QUrl::fileName(ComponentFormattingOptions options) const /*! \since 4.2 - Returns true if this URL contains a Query (i.e., if ? was seen on it). + Returns \c true if this URL contains a Query (i.e., if ? was seen on it). \sa setQuery(), query(), hasFragment() */ @@ -2714,7 +2714,7 @@ void QUrl::setQuery(const QUrlQuery &query) \fn bool QUrl::hasQueryItem(const QString &key) const \deprecated - Returns true if there is a query string pair whose key is equal + Returns \c true if there is a query string pair whose key is equal to \a key from the URL. \obsolete Use QUrlQuery. @@ -2727,7 +2727,7 @@ void QUrl::setQuery(const QUrlQuery &query) \deprecated \since 4.4 - Returns true if there is a query string pair whose key is equal + Returns \c true if there is a query string pair whose key is equal to \a key from the URL. \obsolete Use QUrlQuery. @@ -2998,7 +2998,7 @@ QString QUrl::fragment(ComponentFormattingOptions options) const /*! \since 4.2 - Returns true if this URL contains a fragment (i.e., if # was seen on it). + Returns \c true if this URL contains a fragment (i.e., if # was seen on it). \sa fragment(), setFragment() */ @@ -3114,7 +3114,7 @@ QUrl QUrl::resolved(const QUrl &relative) const } /*! - Returns true if the URL is relative; otherwise returns false. A URL is + Returns \c true if the URL is relative; otherwise returns \c false. A URL is relative reference if its scheme is undefined; this function is therefore equivalent to calling scheme().isEmpty(). @@ -3441,7 +3441,7 @@ QByteArray QUrl::toAce(const QString &domain) /*! \internal - Returns true if this URL is "less than" the given \a url. This + Returns \c true if this URL is "less than" the given \a url. This provides a means of ordering URLs. */ bool QUrl::operator <(const QUrl &url) const @@ -3493,8 +3493,8 @@ bool QUrl::operator <(const QUrl &url) const } /*! - Returns true if this URL and the given \a url are equal; - otherwise returns false. + Returns \c true if this URL and the given \a url are equal; + otherwise returns \c false. */ bool QUrl::operator ==(const QUrl &url) const { @@ -3522,8 +3522,8 @@ bool QUrl::operator ==(const QUrl &url) const /*! \since 5.2 - Returns true if this URL and the given \a url are equal after - applying \a options to both; otherwise returns false. + Returns \c true if this URL and the given \a url are equal after + applying \a options to both; otherwise returns \c false. This is equivalent to calling adjusted(options) on both URLs and comparing the resulting urls, but faster. @@ -3589,8 +3589,8 @@ bool QUrl::matches(const QUrl &url, FormattingOptions options) const } /*! - Returns true if this URL and the given \a url are not equal; - otherwise returns false. + Returns \c true if this URL and the given \a url are not equal; + otherwise returns \c false. */ bool QUrl::operator !=(const QUrl &url) const { @@ -3735,7 +3735,7 @@ QString QUrl::toLocalFile() const /*! \since 4.8 - Returns true if this URL is pointing to a local file path. A URL is a + Returns \c true if this URL is pointing to a local file path. A URL is a local file path if the scheme is "file". Note that this function considers URLs with hostnames to be local file @@ -3754,7 +3754,7 @@ bool QUrl::isLocalFile() const } /*! - Returns true if this URL is a parent of \a childUrl. \a childUrl is a child + Returns \c true if this URL is a parent of \a childUrl. \a childUrl is a child of this URL if the two URLs share the same scheme and authority, and this URL's path is a parent of the path of \a childUrl. */ @@ -3905,7 +3905,7 @@ static inline void appendComponentIfPresent(QString &msg, bool present, const ch Returns an error message if the last operation that modified this QUrl object ran into a parsing error. If no error was detected, this function - returns an empty string and isValid() returns true. + returns an empty string and isValid() returns \c true. The error message returned by this function is technical in nature and may not be understood by end users. It is mostly useful to developers trying to diff --git a/src/corelib/io/qurlquery.cpp b/src/corelib/io/qurlquery.cpp index f773af1433..9ed17671ce 100644 --- a/src/corelib/io/qurlquery.cpp +++ b/src/corelib/io/qurlquery.cpp @@ -407,7 +407,7 @@ QUrlQuery::~QUrlQuery() } /*! - Returns true if this object and the \a other object contain the same + Returns \c true if this object and the \a other object contain the same contents, in the same order, and use the same query delimiters. */ bool QUrlQuery::operator ==(const QUrlQuery &other) const @@ -422,7 +422,7 @@ bool QUrlQuery::operator ==(const QUrlQuery &other) const } /*! - Returns true if this QUrlQUery object contains no key-value pairs, such as + Returns \c true if this QUrlQUery object contains no key-value pairs, such as after being default-constructed or after parsing an empty query string. \sa setQuery(), clear() @@ -636,7 +636,7 @@ QList > QUrlQuery::queryItems(QUrl::ComponentFormattingO } /*! - Returns true if there is a query string pair whose key is equal + Returns \c true if there is a query string pair whose key is equal to \a key from the URL. \sa addQueryItem(), queryItemValue() @@ -781,7 +781,7 @@ void QUrlQuery::removeAllQueryItems(const QString &key) /*! \fn bool QUrlQuery::operator!=(const QUrlQuery &other) const - Returns true if \a other is not equal to this QUrlQuery. Otherwise, returns false. + Returns \c true if \a other is not equal to this QUrlQuery. Otherwise, returns \c false. \sa operator==() */ diff --git a/src/corelib/io/qwindowspipereader.cpp b/src/corelib/io/qwindowspipereader.cpp index 2cb5845768..fc9d191a90 100644 --- a/src/corelib/io/qwindowspipereader.cpp +++ b/src/corelib/io/qwindowspipereader.cpp @@ -247,7 +247,7 @@ void QWindowsPipeReader::startAsyncRead() /*! \internal Sets the correct size of the read buffer after a read operation. - Returns false, if an error occurred or the connection dropped. + Returns \c false, if an error occurred or the connection dropped. */ bool QWindowsPipeReader::completeAsyncRead(DWORD bytesRead, DWORD errorCode) { @@ -297,7 +297,7 @@ DWORD QWindowsPipeReader::checkPipeState() /*! Waits for the completion of the asynchronous read operation. - Returns true, if we've emitted the readyRead signal. + Returns \c true, if we've emitted the readyRead signal. */ bool QWindowsPipeReader::waitForReadyRead(int msecs) { diff --git a/src/corelib/itemmodels/qabstractitemmodel.cpp b/src/corelib/itemmodels/qabstractitemmodel.cpp index 2238902abc..ab257a996d 100644 --- a/src/corelib/itemmodels/qabstractitemmodel.cpp +++ b/src/corelib/itemmodels/qabstractitemmodel.cpp @@ -2149,7 +2149,7 @@ void QAbstractItemModel::fetchMore(const QModelIndex &) The default implementation always returns \c{false}. - If canFetchMore() returns true, the fetchMore() function should + If canFetchMore() returns \c true, the fetchMore() function should be called. This is the behavior of QAbstractItemView, for example. \sa fetchMore() diff --git a/src/corelib/itemmodels/qitemselectionmodel.cpp b/src/corelib/itemmodels/qitemselectionmodel.cpp index ea4d9b44c3..aff9939b87 100644 --- a/src/corelib/itemmodels/qitemselectionmodel.cpp +++ b/src/corelib/itemmodels/qitemselectionmodel.cpp @@ -190,8 +190,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QItemSelectionRange::contains(const QModelIndex &index) const - Returns true if the model item specified by the \a index lies within the - range of selected items; otherwise returns false. + Returns \c true if the model item specified by the \a index lies within the + range of selected items; otherwise returns \c false. */ /*! @@ -199,16 +199,16 @@ QT_BEGIN_NAMESPACE const QModelIndex &parentIndex) const \overload - Returns true if the model item specified by (\a row, \a column) + Returns \c true if the model item specified by (\a row, \a column) and with \a parentIndex as the parent item lies within the range - of selected items; otherwise returns false. + of selected items; otherwise returns \c false. */ /*! \fn bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const - Returns true if this selection range intersects (overlaps with) the \a other - range given; otherwise returns false. + Returns \c true if this selection range intersects (overlaps with) the \a other + range given; otherwise returns \c false. */ bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const @@ -254,24 +254,24 @@ QItemSelectionRange QItemSelectionRange::intersected(const QItemSelectionRange & /*! \fn bool QItemSelectionRange::operator==(const QItemSelectionRange &other) const - Returns true if the selection range is exactly the same as the \a other - range given; otherwise returns false. + Returns \c true if the selection range is exactly the same as the \a other + range given; otherwise returns \c false. */ /*! \fn bool QItemSelectionRange::operator!=(const QItemSelectionRange &other) const - Returns true if the selection range differs from the \a other range given; - otherwise returns false. + Returns \c true if the selection range differs from the \a other range given; + otherwise returns \c false. */ /*! \fn bool QItemSelectionRange::operator<(const QItemSelectionRange &other) const - Returns true if the selection range is less than the \a other - range given; otherwise returns false. + Returns \c true if the selection range is less than the \a other + range given; otherwise returns \c false. The less than calculation is not directly useful to developers - the way that ranges with different parents compare is not defined. This operator only exists so that the @@ -282,7 +282,7 @@ QItemSelectionRange QItemSelectionRange::intersected(const QItemSelectionRange & /*! \fn bool QItemSelectionRange::isValid() const - Returns true if the selection range is valid; otherwise returns false. + Returns \c true if the selection range is valid; otherwise returns \c false. */ @@ -322,7 +322,7 @@ static void indexesFromRange(const QItemSelectionRange &range, ModelIndexContain } /*! - Returns true if the selection range contains no selectable item + Returns \c true if the selection range contains no selectable item \since 4.7 */ @@ -442,8 +442,8 @@ void QItemSelection::select(const QModelIndex &topLeft, const QModelIndex &botto } /*! - Returns true if the selection contains the given \a index; otherwise - returns false. + Returns \c true if the selection contains the given \a index; otherwise + returns \c false. */ bool QItemSelection::contains(const QModelIndex &index) const @@ -1331,7 +1331,7 @@ QModelIndex QItemSelectionModel::currentIndex() const } /*! - Returns true if the given model item \a index is selected. + Returns \c true if the given model item \a index is selected. */ bool QItemSelectionModel::isSelected(const QModelIndex &index) const { @@ -1368,7 +1368,7 @@ bool QItemSelectionModel::isSelected(const QModelIndex &index) const } /*! - Returns true if all items are selected in the \a row with the given + Returns \c true if all items are selected in the \a row with the given \a parent. Note that this function is usually faster than calling isSelected() @@ -1428,7 +1428,7 @@ bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent) cons } /*! - Returns true if all items are selected in the \a column with the given + Returns \c true if all items are selected in the \a column with the given \a parent. Note that this function is usually faster than calling isSelected() @@ -1488,7 +1488,7 @@ bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent } /*! - Returns true if there are any items selected in the \a row with the given + Returns \c true if there are any items selected in the \a row with the given \a parent. */ bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent) const @@ -1520,7 +1520,7 @@ bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &par } /*! - Returns true if there are any items selected in the \a column with the given + Returns \c true if there are any items selected in the \a column with the given \a parent. */ bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent) const @@ -1551,8 +1551,8 @@ bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelInde /*! \since 4.2 - Returns true if the selection model contains any selection ranges; - otherwise returns false. + Returns \c true if the selection model contains any selection ranges; + otherwise returns \c false. */ bool QItemSelectionModel::hasSelection() const { diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp index 67b0d98402..63e0374740 100644 --- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp +++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp @@ -2587,9 +2587,9 @@ void QSortFilterProxyModel::invalidateFilter() } /*! - Returns true if the value of the item referred to by the given + Returns \c true if the value of the item referred to by the given index \a left is less than the value of the item referred to by - the given index \a right, otherwise returns false. + the given index \a right, otherwise returns \c false. This function is used as the < operator when sorting, and handles the following QVariant types: @@ -2661,11 +2661,11 @@ bool QSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex } /*! - Returns true if the item in the row indicated by the given \a source_row + Returns \c true if the item in the row indicated by the given \a source_row and \a source_parent should be included in the model; otherwise returns false. - The default implementation returns true if the value held by the relevant item + The default implementation returns \c true if the value held by the relevant item matches the filter string, wildcard string or regular expression. \note By default, the Qt::DisplayRole is used to determine if the row @@ -2697,10 +2697,10 @@ bool QSortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex & } /*! - Returns true if the item in the column indicated by the given \a source_column - and \a source_parent should be included in the model; otherwise returns false. + Returns \c true if the item in the column indicated by the given \a source_column + and \a source_parent should be included in the model; otherwise returns \c false. - The default implementation returns true if the value held by the relevant item + The default implementation returns \c true if the value held by the relevant item matches the filter string, wildcard string or regular expression. \note By default, the Qt::DisplayRole is used to determine if the row diff --git a/src/corelib/json/qjsondocument.cpp b/src/corelib/json/qjsondocument.cpp index 05d57e2ab9..4806ac68d6 100644 --- a/src/corelib/json/qjsondocument.cpp +++ b/src/corelib/json/qjsondocument.cpp @@ -372,7 +372,7 @@ QJsonDocument QJsonDocument::fromJson(const QByteArray &json, QJsonParseError *e } /*! - Returns true if the document doesn't contain any data. + Returns \c true if the document doesn't contain any data. */ bool QJsonDocument::isEmpty() const { @@ -403,7 +403,7 @@ QByteArray QJsonDocument::toBinaryData() const } /*! - Returns true if the document contains an array. + Returns \c true if the document contains an array. \sa array(), isObject() */ @@ -417,7 +417,7 @@ bool QJsonDocument::isArray() const } /*! - Returns true if the document contains an object. + Returns \c true if the document contains an object. \sa object(), isArray() */ @@ -549,7 +549,7 @@ bool QJsonDocument::operator==(const QJsonDocument &other) const */ /*! - returns true if this document is null. + returns \c true if this document is null. Null documents are documents created through the default constructor. diff --git a/src/corelib/json/qjsonvalue.cpp b/src/corelib/json/qjsonvalue.cpp index d0634602f3..8aa1f654c6 100644 --- a/src/corelib/json/qjsonvalue.cpp +++ b/src/corelib/json/qjsonvalue.cpp @@ -271,13 +271,13 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other) /*! \fn bool QJsonValue::isNull() const - Returns true if the value is null. + Returns \c true if the value is null. */ /*! \fn bool QJsonValue::isBool() const - Returns true if the value contains a boolean. + Returns \c true if the value contains a boolean. \sa toBool() */ @@ -285,7 +285,7 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other) /*! \fn bool QJsonValue::isDouble() const - Returns true if the value contains a double. + Returns \c true if the value contains a double. \sa toDouble() */ @@ -293,7 +293,7 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other) /*! \fn bool QJsonValue::isString() const - Returns true if the value contains a string. + Returns \c true if the value contains a string. \sa toString() */ @@ -301,7 +301,7 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other) /*! \fn bool QJsonValue::isArray() const - Returns true if the value contains an array. + Returns \c true if the value contains an array. \sa toArray() */ @@ -309,7 +309,7 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other) /*! \fn bool QJsonValue::isObject() const - Returns true if the value contains an object. + Returns \c true if the value contains an object. \sa toObject() */ @@ -317,7 +317,7 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other) /*! \fn bool QJsonValue::isUndefined() const - Returns true if the value is undefined. This can happen in certain + Returns \c true if the value is undefined. This can happen in certain error cases as e.g. accessing a non existing key in a QJsonObject. */ @@ -540,7 +540,7 @@ QJsonObject QJsonValue::toObject() const } /*! - Returns true if the value is equal to \a other. + Returns \c true if the value is equal to \a other. */ bool QJsonValue::operator==(const QJsonValue &other) const { @@ -576,7 +576,7 @@ bool QJsonValue::operator==(const QJsonValue &other) const } /*! - Returns true if the value is not equal to \a other. + Returns \c true if the value is not equal to \a other. */ bool QJsonValue::operator!=(const QJsonValue &other) const { diff --git a/src/corelib/kernel/qabstracteventdispatcher.cpp b/src/corelib/kernel/qabstracteventdispatcher.cpp index 6558893036..54524fa55b 100644 --- a/src/corelib/kernel/qabstracteventdispatcher.cpp +++ b/src/corelib/kernel/qabstracteventdispatcher.cpp @@ -179,8 +179,8 @@ QAbstractEventDispatcher *QAbstractEventDispatcher::instance(QThread *thread) \fn bool QAbstractEventDispatcher::processEvents(QEventLoop::ProcessEventsFlags flags) Processes pending events that match \a flags until there are no - more events to process. Returns true if an event was processed; - otherwise returns false. + more events to process. Returns \c true if an event was processed; + otherwise returns \c false. This function is especially useful if you have a long running operation and want to show its progress without allowing user @@ -211,7 +211,7 @@ QAbstractEventDispatcher *QAbstractEventDispatcher::instance(QThread *thread) /*! \fn bool QAbstractEventDispatcher::hasPendingEvents() - Returns true if there is an event waiting; otherwise returns + Returns \c true if there is an event waiting; otherwise returns false. */ @@ -271,7 +271,7 @@ int QAbstractEventDispatcher::registerTimer(int interval, Qt::TimerType timerTyp \fn bool QAbstractEventDispatcher::unregisterTimer(int timerId) Unregisters the timer with the given \a timerId. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. \sa registerTimer(), unregisterTimers() */ @@ -280,7 +280,7 @@ int QAbstractEventDispatcher::registerTimer(int interval, Qt::TimerType timerTyp \fn bool QAbstractEventDispatcher::unregisterTimers(QObject *object) Unregisters all the timers associated with the given \a object. - Returns true if all timers were successful removed; otherwise returns false. + Returns \c true if all timers were successful removed; otherwise returns \c false. \sa unregisterTimer(), registeredTimers() */ @@ -435,8 +435,8 @@ void QAbstractEventDispatcher::removeNativeEventFilter(QAbstractNativeEventFilte /*! Sends \a message through the event filters that were set by - installNativeEventFilter(). This function returns true as soon as an - event filter returns true, and false otherwise to indicate that + installNativeEventFilter(). This function returns \c true as soon as an + event filter returns \c true, and false otherwise to indicate that the processing of the event should continue. Subclasses of QAbstractEventDispatcher \e must call this function @@ -474,8 +474,8 @@ bool QAbstractEventDispatcher::filterNativeEvent(const QByteArray &eventType, vo \deprecated Calls filterNativeEvent() with an empty eventType and \a message. - This function returns true as soon as an - event filter returns true, and false otherwise to indicate that + This function returns \c true as soon as an + event filter returns \c true, and false otherwise to indicate that the processing of the event should continue. */ diff --git a/src/corelib/kernel/qbasictimer.cpp b/src/corelib/kernel/qbasictimer.cpp index 2992812dcf..f3366489d5 100644 --- a/src/corelib/kernel/qbasictimer.cpp +++ b/src/corelib/kernel/qbasictimer.cpp @@ -62,7 +62,7 @@ QT_BEGIN_NAMESPACE function with a timeout interval and with a pointer to a QObject subclass. When the timer times out it will send a timer event to the QObject subclass. The timer can be stopped at any time using - stop(). isActive() returns true for a timer that is running; + stop(). isActive() returns \c true for a timer that is running; i.e. it has been started, has not reached the timeout time, and has not been stopped. The timer's ID can be retrieved using timerId(). @@ -90,8 +90,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QBasicTimer::isActive() const - Returns true if the timer is running and has not been stopped; otherwise - returns false. + Returns \c true if the timer is running and has not been stopped; otherwise + returns \c false. \sa start(), stop() */ diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 115f7bc04e..0460c52d1c 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -810,8 +810,8 @@ void QCoreApplication::setAttribute(Qt::ApplicationAttribute attribute, bool on) } /*! - Returns true if attribute \a attribute is set; - otherwise returns false. + Returns \c true if attribute \a attribute is set; + otherwise returns \c false. \sa setAttribute() */ @@ -826,15 +826,15 @@ bool QCoreApplication::testAttribute(Qt::ApplicationAttribute attribute) /*! \property QCoreApplication::quitLockEnabled - Returns true if the use of the QEventLoopLocker feature can cause the - application to quit, otherwise returns false. + Returns \c true if the use of the QEventLoopLocker feature can cause the + application to quit, otherwise returns \c false. \sa QEventLoopLocker */ /*! - Returns true if the use of the QEventLoopLocker feature can cause the - application to quit, otherwise returns false. + Returns \c true if the use of the QEventLoopLocker feature can cause the + application to quit, otherwise returns \c false. \sa QEventLoopLocker */ @@ -892,7 +892,7 @@ bool QCoreApplication::notifyInternal(QObject *receiver, QEvent *event) For certain types of events (e.g. mouse and key events), the event will be propagated to the receiver's parent and so on up to the top-level object if the receiver is not interested in the event - (i.e., it returns false). + (i.e., it returns \c false). There are five different ways that events can be processed; reimplementing this virtual function is just one of them. All five @@ -1000,8 +1000,8 @@ bool QCoreApplicationPrivate::notify_helper(QObject *receiver, QEvent * event) } /*! - Returns true if an application object has not been created yet; - otherwise returns false. + Returns \c true if an application object has not been created yet; + otherwise returns \c false. \sa closingDown() */ @@ -1012,8 +1012,8 @@ bool QCoreApplication::startingUp() } /*! - Returns true if the application objects are being destroyed; - otherwise returns false. + Returns \c true if the application objects are being destroyed; + otherwise returns \c false. \sa startingUp() */ @@ -1283,7 +1283,7 @@ void QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority) /*! \internal - Returns true if \a event was compressed away (possibly deleted) and should not be added to the list. + Returns \c true if \a event was compressed away (possibly deleted) and should not be added to the list. */ bool QCoreApplication::compressEvent(QEvent *event, QObject *receiver, QPostEventList *postedEvents) { @@ -1711,7 +1711,7 @@ void QCoreApplication::quit() generated by Qt Designer provide a \c retranslateUi() function that can be called. - The function returns true on success and false on failure. + The function returns \c true on success and false on failure. \sa removeTranslator(), translate(), QTranslator::load(), {Dynamic Translation} */ @@ -1744,7 +1744,7 @@ bool QCoreApplication::installTranslator(QTranslator *translationFile) translation files used by this application. (It does not delete the translation file from the file system.) - The function returns true on success and false on failure. + The function returns \c true on success and false on failure. \sa installTranslator(), translate(), QObject::tr() */ @@ -2478,8 +2478,8 @@ void QCoreApplication::removeNativeEventFilter(QAbstractNativeEventFilter *filte } /*! - This function returns true if there are pending events; otherwise - returns false. Pending events can be either from the window + This function returns \c true if there are pending events; otherwise + returns \c false. Pending events can be either from the window system or posted events using postEvent(). \sa QAbstractEventDispatcher::hasPendingEvents() diff --git a/src/corelib/kernel/qcoreevent.cpp b/src/corelib/kernel/qcoreevent.cpp index 09fe7c60ca..cce385352e 100644 --- a/src/corelib/kernel/qcoreevent.cpp +++ b/src/corelib/kernel/qcoreevent.cpp @@ -61,9 +61,9 @@ QT_BEGIN_NAMESPACE QEvents, and sends the translated events to \l{QObject}s. In general, events come from the underlying window system - (spontaneous() returns true), but it is also possible to manually + (spontaneous() returns \c true), but it is also possible to manually send events using QCoreApplication::sendEvent() and - QCoreApplication::postEvent() (spontaneous() returns false). + QCoreApplication::postEvent() (spontaneous() returns \c false). QObjects receive events by having their QObject::event() function called. The function can be reimplemented in subclasses to @@ -382,8 +382,8 @@ QEvent::~QEvent() /*! \fn bool QEvent::spontaneous() const - Returns true if the event originated outside the application (a - system event); otherwise returns false. + Returns \c true if the event originated outside the application (a + system event); otherwise returns \c false. The return value of this function is not defined for paint events. */ @@ -487,7 +487,7 @@ QTimerEvent::~QTimerEvent() added or removed. In both cases you can only rely on the child being a QObject (or, - if QObject::isWidgetType() returns true, a QWidget). This is + if QObject::isWidgetType() returns \c true, a QWidget). This is because in the QEvent::ChildAdded case the child is not yet fully constructed; in the QEvent::ChildRemoved case it might have already been destructed. @@ -524,21 +524,21 @@ QChildEvent::~QChildEvent() /*! \fn bool QChildEvent::added() const - Returns true if type() is QEvent::ChildAdded; otherwise returns + Returns \c true if type() is QEvent::ChildAdded; otherwise returns false. */ /*! \fn bool QChildEvent::removed() const - Returns true if type() is QEvent::ChildRemoved; otherwise returns + Returns \c true if type() is QEvent::ChildRemoved; otherwise returns false. */ /*! \fn bool QChildEvent::polished() const - Returns true if type() is QEvent::ChildPolished; otherwise returns + Returns \c true if type() is QEvent::ChildPolished; otherwise returns false. */ diff --git a/src/corelib/kernel/qeventloop.cpp b/src/corelib/kernel/qeventloop.cpp index 3cb6890821..a93d6e4a21 100644 --- a/src/corelib/kernel/qeventloop.cpp +++ b/src/corelib/kernel/qeventloop.cpp @@ -117,8 +117,8 @@ QEventLoop::~QEventLoop() /*! Processes pending events that match \a flags until there are no - more events to process. Returns true if pending events were handled; - otherwise returns false. + more events to process. Returns \c true if pending events were handled; + otherwise returns \c false. This function is especially useful if you have a long running operation and want to show its progress without allowing user @@ -272,7 +272,7 @@ void QEventLoop::exit(int returnCode) } /*! - Returns true if the event loop is running; otherwise returns + Returns \c true if the event loop is running; otherwise returns false. The event loop is considered running from the time when exec() is called until exit() is called. diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp index 8d6cf5beb5..ff2675dfc8 100644 --- a/src/corelib/kernel/qmetaobject.cpp +++ b/src/corelib/kernel/qmetaobject.cpp @@ -548,9 +548,9 @@ int QMetaObject::classInfoCount() const return n; } -// Returns true if the method defined by the given meta-object&handle +// Returns \c true if the method defined by the given meta-object&handle // matches the given name, argument count and argument types, otherwise -// returns false. +// returns \c false. static bool methodMatch(const QMetaObject *m, int handle, const QByteArray &name, int argc, const QArgumentType *types) @@ -886,8 +886,8 @@ QMetaMethod QMetaObjectPrivate::signal(const QMetaObject *m, int signal_index) /*! \internal - Returns true if the \a signalTypes and \a methodTypes are - compatible; otherwise returns false. + Returns \c true if the \a signalTypes and \a methodTypes are + compatible; otherwise returns \c false. */ bool QMetaObjectPrivate::checkConnectArgs(int signalArgc, const QArgumentType *signalTypes, int methodArgc, const QArgumentType *methodTypes) @@ -904,8 +904,8 @@ bool QMetaObjectPrivate::checkConnectArgs(int signalArgc, const QArgumentType *s /*! \internal - Returns true if the \a signal and \a method arguments are - compatible; otherwise returns false. + Returns \c true if the \a signal and \a method arguments are + compatible; otherwise returns \c false. */ bool QMetaObjectPrivate::checkConnectArgs(const QMetaMethodPrivate *signal, const QMetaMethodPrivate *method) @@ -1191,8 +1191,8 @@ QMetaClassInfo QMetaObject::classInfo(int index) const } /*! - Returns true if the \a signal and \a method arguments are - compatible; otherwise returns false. + Returns \c true if the \a signal and \a method arguments are + compatible; otherwise returns \c false. Both \a signal and \a method are expected to be normalized. @@ -1217,8 +1217,8 @@ bool QMetaObject::checkConnectArgs(const char *signal, const char *method) \since 5.0 \overload - Returns true if the \a signal and \a method arguments are - compatible; otherwise returns false. + Returns \c true if the \a signal and \a method arguments are + compatible; otherwise returns \c false. */ bool QMetaObject::checkConnectArgs(const QMetaMethod &signal, const QMetaMethod &method) @@ -1340,7 +1340,7 @@ enum { MaximumParamCount = 11 }; // up to 10 arguments + 1 return value /*! Invokes the \a member (a signal or a slot name) on the object \a - obj. Returns true if the member could be invoked. Returns false + obj. Returns \c true if the member could be invoked. Returns \c false if there is no such member or the parameters did not match. The invocation can be either synchronous or asynchronous, @@ -1549,8 +1549,8 @@ bool QMetaObject::invokeMethod(QObject *obj, \fn bool QMetaMethod::isValid() const \since 5.0 - Returns true if this method is valid (can be introspected and - invoked), otherwise returns false. + Returns \c true if this method is valid (can be introspected and + invoked), otherwise returns \c false. */ /*! \fn bool operator==(const QMetaMethod &m1, const QMetaMethod &m2) @@ -1558,8 +1558,8 @@ bool QMetaObject::invokeMethod(QObject *obj, \relates QMetaMethod \overload - Returns true if method \a m1 is equal to method \a m2, - otherwise returns false. + Returns \c true if method \a m1 is equal to method \a m2, + otherwise returns \c false. */ /*! \fn bool operator!=(const QMetaMethod &m1, const QMetaMethod &m2) @@ -1567,8 +1567,8 @@ bool QMetaObject::invokeMethod(QObject *obj, \relates QMetaMethod \overload - Returns true if method \a m1 is not equal to method \a m2, - otherwise returns false. + Returns \c true if method \a m1 is not equal to method \a m2, + otherwise returns \c false. */ /*! @@ -2007,8 +2007,8 @@ QMetaMethod QMetaMethod::fromSignalImpl(const QMetaObject *metaObject, void **si } /*! - Invokes this method on the object \a object. Returns true if the member could be invoked. - Returns false if there is no such member or the parameters did not match. + Invokes this method on the object \a object. Returns \c true if the member could be invoked. + Returns \c false if there is no such member or the parameters did not match. The invocation can be either synchronous or asynchronous, depending on the \a connectionType: @@ -2308,7 +2308,7 @@ bool QMetaMethod::invoke(QObject *object, /*! \fn bool QMetaEnum::isValid() const - Returns true if this enum is valid (has a name); otherwise returns + Returns \c true if this enum is valid (has a name); otherwise returns false. \sa name() @@ -2388,7 +2388,7 @@ int QMetaEnum::value(int index) const /*! - Returns true if this enumerator is used as a flag; otherwise returns + Returns \c true if this enumerator is used as a flag; otherwise returns false. When used as flags, enumerators can be combined using the OR @@ -2575,7 +2575,7 @@ static QByteArray qualifiedName(const QMetaEnum &e) attributes that specify its behavior: isReadable(), isWritable(), isDesignable(), isScriptable(), revision(), and isStored(). - If the property is an enumeration, isEnumType() returns true; if the + If the property is an enumeration, isEnumType() returns \c true; if the property is an enumeration that is also a flag (i.e. its values can be combined using the OR operator), isEnumType() and isFlagType() both return true. The enumerator for these types is @@ -2597,8 +2597,8 @@ static QByteArray qualifiedName(const QMetaEnum &e) /*! \fn bool QMetaProperty::isValid() const - Returns true if this property is valid (readable); otherwise - returns false. + Returns \c true if this property is valid (readable); otherwise + returns \c false. \sa isReadable() */ @@ -2722,8 +2722,8 @@ int QMetaProperty::propertyIndex() const } /*! - Returns true if the property's type is an enumeration value that - is used as a flag; otherwise returns false. + Returns \c true if the property's type is an enumeration value that + is used as a flag; otherwise returns \c false. Flags can be combined using the OR operator. A flag type is implicitly also an enum type. @@ -2737,8 +2737,8 @@ bool QMetaProperty::isFlagType() const } /*! - Returns true if the property's type is an enumeration value; - otherwise returns false. + Returns \c true if the property's type is an enumeration value; + otherwise returns \c false. \sa enumerator(), isFlagType() */ @@ -2754,7 +2754,7 @@ bool QMetaProperty::isEnumType() const /*! \internal - Returns true if the property has a C++ setter function that + Returns \c true if the property has a C++ setter function that follows Qt's standard "name" / "setName" pattern. Designer and uic query hasStdCppSet() in order to avoid expensive QObject::setProperty() calls. All properties in Qt [should] follow @@ -2853,7 +2853,7 @@ QVariant QMetaProperty::read(const QObject *object) const /*! Writes \a value as the property's value to the given \a object. Returns - true if the write succeeded; otherwise returns false. + true if the write succeeded; otherwise returns \c false. \sa read(), reset(), isWritable() */ @@ -2925,7 +2925,7 @@ bool QMetaProperty::write(QObject *object, const QVariant &value) const /*! Resets the property for the given \a object with a reset method. - Returns true if the reset worked; otherwise returns false. + Returns \c true if the reset worked; otherwise returns \c false. Reset methods are optional; only a few properties support them. @@ -2941,8 +2941,8 @@ bool QMetaProperty::reset(QObject *object) const } /*! - Returns true if this property can be reset to a default value; otherwise - returns false. + Returns \c true if this property can be reset to a default value; otherwise + returns \c false. \sa reset() */ @@ -2955,7 +2955,7 @@ bool QMetaProperty::isResettable() const } /*! - Returns true if this property is readable; otherwise returns false. + Returns \c true if this property is readable; otherwise returns \c false. \sa isWritable(), read(), isValid() */ @@ -2968,8 +2968,8 @@ bool QMetaProperty::isReadable() const } /*! - Returns true if this property has a corresponding change notify signal; - otherwise returns false. + Returns \c true if this property has a corresponding change notify signal; + otherwise returns \c false. \sa notifySignal() */ @@ -3048,7 +3048,7 @@ int QMetaProperty::revision() const } /*! - Returns true if this property is writable; otherwise returns + Returns \c true if this property is writable; otherwise returns false. \sa isReadable(), write() @@ -3063,12 +3063,12 @@ bool QMetaProperty::isWritable() const /*! - Returns true if this property is designable for the given \a object; - otherwise returns false. + Returns \c true if this property is designable for the given \a object; + otherwise returns \c false. - If no \a object is given, the function returns false if the + If no \a object is given, the function returns \c false if the \c{Q_PROPERTY()}'s \c DESIGNABLE attribute is false; otherwise - returns true (if the attribute is true or is a function or expression). + returns \c true (if the attribute is true or is a function or expression). \sa isScriptable(), isStored() */ @@ -3089,10 +3089,10 @@ bool QMetaProperty::isDesignable(const QObject *object) const } /*! - Returns true if the property is scriptable for the given \a object; - otherwise returns false. + Returns \c true if the property is scriptable for the given \a object; + otherwise returns \c false. - If no \a object is given, the function returns false if the + If no \a object is given, the function returns \c false if the \c{Q_PROPERTY()}'s \c SCRIPTABLE attribute is false; otherwise returns true (if the attribute is true or is a function or expression). @@ -3113,10 +3113,10 @@ bool QMetaProperty::isScriptable(const QObject *object) const } /*! - Returns true if the property is stored for \a object; otherwise returns + Returns \c true if the property is stored for \a object; otherwise returns false. - If no \a object is given, the function returns false if the + If no \a object is given, the function returns \c false if the \c{Q_PROPERTY()}'s \c STORED attribute is false; otherwise returns true (if the attribute is true or is a function or expression). @@ -3137,13 +3137,13 @@ bool QMetaProperty::isStored(const QObject *object) const } /*! - Returns true if this property is designated as the \c USER + Returns \c true if this property is designated as the \c USER property, i.e., the one that the user can edit for \a object or that is significant in some other way. Otherwise it returns false. e.g., the \c text property is the \c USER editable property of a QLineEdit. - If \a object is null, the function returns false if the \c + If \a object is null, the function returns \c false if the \c {Q_PROPERTY()}'s \c USER attribute is false. Otherwise it returns true. @@ -3165,7 +3165,7 @@ bool QMetaProperty::isUser(const QObject *object) const /*! \since 4.6 - Returns true if the property is constant; otherwise returns false. + Returns \c true if the property is constant; otherwise returns \c false. A property is constant if the \c{Q_PROPERTY()}'s \c CONSTANT attribute is set. @@ -3180,7 +3180,7 @@ bool QMetaProperty::isConstant() const /*! \since 4.6 - Returns true if the property is final; otherwise returns false. + Returns \c true if the property is final; otherwise returns \c false. A property is final if the \c{Q_PROPERTY()}'s \c FINAL attribute is set. @@ -3196,10 +3196,10 @@ bool QMetaProperty::isFinal() const /*! \obsolete - Returns true if the property is editable for the given \a object; - otherwise returns false. + Returns \c true if the property is editable for the given \a object; + otherwise returns \c false. - If no \a object is given, the function returns false if the + If no \a object is given, the function returns \c false if the \c{Q_PROPERTY()}'s \c EDITABLE attribute is false; otherwise returns true (if the attribute is true or is a function or expression). diff --git a/src/corelib/kernel/qmetaobjectbuilder.cpp b/src/corelib/kernel/qmetaobjectbuilder.cpp index ac57454169..4518d702cd 100644 --- a/src/corelib/kernel/qmetaobjectbuilder.cpp +++ b/src/corelib/kernel/qmetaobjectbuilder.cpp @@ -2144,7 +2144,7 @@ QByteArray QMetaPropertyBuilder::type() const } /*! - Returns true if this property has a notify signal; false otherwise. + Returns \c true if this property has a notify signal; false otherwise. \sa notifySignal(), setNotifySignal(), removeNotifySignal() */ @@ -2205,7 +2205,7 @@ void QMetaPropertyBuilder::removeNotifySignal() } /*! - Returns true if this property is readable; otherwise returns false. + Returns \c true if this property is readable; otherwise returns \c false. The default value is true. \sa setReadable(), isWritable() @@ -2220,7 +2220,7 @@ bool QMetaPropertyBuilder::isReadable() const } /*! - Returns true if this property is writable; otherwise returns false. + Returns \c true if this property is writable; otherwise returns \c false. The default value is true. \sa setWritable(), isReadable() @@ -2235,8 +2235,8 @@ bool QMetaPropertyBuilder::isWritable() const } /*! - Returns true if this property can be reset to a default value; otherwise - returns false. The default value is false. + Returns \c true if this property can be reset to a default value; otherwise + returns \c false. The default value is false. \sa setResettable() */ @@ -2250,7 +2250,7 @@ bool QMetaPropertyBuilder::isResettable() const } /*! - Returns true if this property is designable; otherwise returns false. + Returns \c true if this property is designable; otherwise returns \c false. This default value is false. \sa setDesignable(), isScriptable(), isStored() @@ -2265,7 +2265,7 @@ bool QMetaPropertyBuilder::isDesignable() const } /*! - Returns true if the property is scriptable; otherwise returns false. + Returns \c true if the property is scriptable; otherwise returns \c false. This default value is true. \sa setScriptable(), isDesignable(), isStored() @@ -2280,7 +2280,7 @@ bool QMetaPropertyBuilder::isScriptable() const } /*! - Returns true if the property is stored; otherwise returns false. + Returns \c true if the property is stored; otherwise returns \c false. This default value is false. \sa setStored(), isDesignable(), isScriptable() @@ -2295,7 +2295,7 @@ bool QMetaPropertyBuilder::isStored() const } /*! - Returns true if the property is editable; otherwise returns false. + Returns \c true if the property is editable; otherwise returns \c false. This default value is false. \sa setEditable(), isDesignable(), isScriptable(), isStored() @@ -2310,7 +2310,7 @@ bool QMetaPropertyBuilder::isEditable() const } /*! - Returns true if this property is designated as the \c USER + Returns \c true if this property is designated as the \c USER property, i.e., the one that the user can edit or that is significant in some other way. Otherwise it returns false. This default value is false. @@ -2327,7 +2327,7 @@ bool QMetaPropertyBuilder::isUser() const } /*! - Returns true if the property has a C++ setter function that + Returns \c true if the property has a C++ setter function that follows Qt's standard "name" / "setName" pattern. Designer and uic query hasStdCppSet() in order to avoid expensive QObject::setProperty() calls. All properties in Qt [should] follow @@ -2345,8 +2345,8 @@ bool QMetaPropertyBuilder::hasStdCppSet() const } /*! - Returns true if the property is an enumerator or flag type; - otherwise returns false. This default value is false. + Returns \c true if the property is an enumerator or flag type; + otherwise returns \c false. This default value is false. \sa setEnumOrFlag() */ @@ -2360,7 +2360,7 @@ bool QMetaPropertyBuilder::isEnumOrFlag() const } /*! - Returns true if the property is constant; otherwise returns false. + Returns \c true if the property is constant; otherwise returns \c false. The default value is false. */ bool QMetaPropertyBuilder::isConstant() const @@ -2373,7 +2373,7 @@ bool QMetaPropertyBuilder::isConstant() const } /*! - Returns true if the property is final; otherwise returns false. + Returns \c true if the property is final; otherwise returns \c false. The default value is false. */ bool QMetaPropertyBuilder::isFinal() const @@ -2600,7 +2600,7 @@ QByteArray QMetaEnumBuilder::name() const } /*! - Returns true if this enumerator is used as a flag; otherwise returns + Returns \c true if this enumerator is used as a flag; otherwise returns false. \sa setIsFlag() diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index a9ba4aaaad..f74c592e8c 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -331,7 +331,7 @@ struct DefinedTypesFilter { \fn bool QMetaType::isValid() const \since 5.0 - Returns true if this QMetaType object contains valid + Returns \c true if this QMetaType object contains valid information about a type, false otherwise. */ @@ -339,7 +339,7 @@ struct DefinedTypesFilter { \fn bool QMetaType::isRegistered() const \since 5.0 - Returns true if this QMetaType object contains valid + Returns \c true if this QMetaType object contains valid information about a type, false otherwise. */ @@ -540,7 +540,7 @@ Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry) \fn bool QMetaType::registerConverter() \since 5.2 Registers the possibility of an implicit conversion from type From to type To in the meta - type system. Returns true if the registration succeeded, otherwise false. + type system. Returns \c true if the registration succeeded, otherwise false. */ /*! @@ -548,7 +548,7 @@ Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry) \since 5.2 \overload Registers a method \a function like To From::function() const as converter from type From - to type To in the meta type system. Returns true if the registration succeeded, otherwise false. + to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false. */ /*! @@ -556,7 +556,7 @@ Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry) \since 5.2 \overload Registers a method \a function like To From::function(bool *ok) const as converter from type From - to type To in the meta type system. Returns true if the registration succeeded, otherwise false. + to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false. */ /*! @@ -564,7 +564,7 @@ Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry) \since 5.2 \overload Registers a unary function object \a function as converter from type From - to type To in the meta type system. Returns true if the registration succeeded, otherwise false. + to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false. */ /*! @@ -572,7 +572,7 @@ Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry) \since 5.2 Registers comparison operetarors for the user-registered type T. This requires T to have both an operator== and an operator<. - Returns true if the registration succeeded, otherwise false. + Returns \c true if the registration succeeded, otherwise false. */ #ifndef QT_NO_DEBUG_STREAM @@ -580,14 +580,14 @@ Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry) \fn bool QMetaType::registerDebugStreamOperator() Registers the debug stream operator for the user-registered type T. This requires T to have an operator<<(QDebug dbg, T). - Returns true if the registration succeeded, otherwise false. + Returns \c true if the registration succeeded, otherwise false. */ #endif /*! Registers function \a f as converter function from type id \a from to \a to. If there's already a conversion registered, this does nothing but deleting \a f. - Returns true if the registration succeeded, otherwise false. + Returns \c true if the registration succeeded, otherwise false. \since 5.2 \internal */ @@ -624,12 +624,12 @@ bool QMetaType::registerComparatorFunction(const QtPrivate::AbstractComparatorFu /*! \fn bool QMetaType::hasRegisteredComparators() - Returns true, if the meta type system has registered comparators for type T. + Returns \c true, if the meta type system has registered comparators for type T. \since 5.2 */ /*! - Returns true, if the meta type system has registered comparators for type id \a typeId. + Returns \c true, if the meta type system has registered comparators for type id \a typeId. \since 5.2 */ bool QMetaType::hasRegisteredComparators(int typeId) @@ -650,12 +650,12 @@ bool QMetaType::registerDebugStreamOperatorFunction(const QtPrivate::AbstractDeb /*! \fn bool QMetaType::hasRegisteredDebugStreamOperator() - Returns true, if the meta type system has a registered debug stream operator for type T. + Returns \c true, if the meta type system has a registered debug stream operator for type T. \since 5.2 */ /*! - Returns true, if the meta type system has a registered debug stream operator for type + Returns \c true, if the meta type system has a registered debug stream operator for type id \a typeId. \since 5.2 */ @@ -667,7 +667,7 @@ bool QMetaType::hasRegisteredDebugStreamOperator(int typeId) /*! Converts the object at \a from from \a fromTypeId to the preallocated space at \a to - typed \a toTypeId. Returns true, if the conversion succeeded, otherwise false. + typed \a toTypeId. Returns \c true, if the conversion succeeded, otherwise false. \since 5.2 */ bool QMetaType::convert(const void *from, int fromTypeId, void *to, int toTypeId) @@ -680,7 +680,7 @@ bool QMetaType::convert(const void *from, int fromTypeId, void *to, int toTypeId /*! Compares the objects at \a lhs and \a rhs. Both objects need to be of type \a typeId. \a result is set to less than, equal to or greater than zero, if \a lhs is less than, equal to - or greater than \a rhs. Returns true, if the comparison succeeded, otherwiess false. + or greater than \a rhs. Returns \c true, if the comparison succeeded, otherwiess false. \since 5.2 */ bool QMetaType::compare(const void *lhs, const void *rhs, int typeId, int* result) @@ -697,7 +697,7 @@ bool QMetaType::compare(const void *lhs, const void *rhs, int typeId, int* resul } /*! - Streams the object at \a rhs of type \a typeId to the debug stream \a dbg. Returns true + Streams the object at \a rhs of type \a typeId to the debug stream \a dbg. Returns \c true on success, otherwise false. \since 5.2 */ @@ -712,13 +712,13 @@ bool QMetaType::debugStream(QDebug& dbg, const void *rhs, int typeId) /*! \fn bool QMetaType::hasRegisteredConverterFunction() - Returns true, if the meta type system has a registered conversion from type From to type To. + Returns \c true, if the meta type system has a registered conversion from type From to type To. \since 5.2 \overload */ /*! - Returns true, if the meta type system has a registered conversion from meta type id \a fromTypeId + Returns \c true, if the meta type system has a registered conversion from meta type id \a fromTypeId to \a toTypeId \since 5.2 */ @@ -1027,8 +1027,8 @@ int QMetaType::registerNormalizedTypedef(const NS(QByteArray) &normalizedTypeNam } /*! - Returns true if the datatype with ID \a type is registered; - otherwise returns false. + Returns \c true if the datatype with ID \a type is registered; + otherwise returns \c false. \sa type(), typeName(), Type */ @@ -1103,8 +1103,8 @@ int qMetaTypeTypeInternal(const char *typeName) #ifndef QT_NO_DATASTREAM /*! Writes the object pointed to by \a data with the ID \a type to - the given \a stream. Returns true if the object is saved - successfully; otherwise returns false. + the given \a stream. Returns \c true if the object is saved + successfully; otherwise returns \c false. The type must have been registered with qRegisterMetaType() and qRegisterMetaTypeStreamOperators() beforehand. @@ -1320,8 +1320,8 @@ bool QMetaType::save(QDataStream &stream, int type, const void *data) /*! Reads the object of the specified \a type from the given \a - stream into \a data. Returns true if the object is loaded - successfully; otherwise returns false. + stream into \a data. Returns \c true if the object is loaded + successfully; otherwise returns \c false. The type must have been registered with qRegisterMetaType() and qRegisterMetaTypeStreamOperators() beforehand. diff --git a/src/corelib/kernel/qmimedata.cpp b/src/corelib/kernel/qmimedata.cpp index 6e571d2969..483692cdf8 100644 --- a/src/corelib/kernel/qmimedata.cpp +++ b/src/corelib/kernel/qmimedata.cpp @@ -363,8 +363,8 @@ void QMimeData::setUrls(const QList &urls) } /*! - Returns true if the object can return a list of urls; otherwise - returns false. + Returns \c true if the object can return a list of urls; otherwise + returns \c false. URLs correspond to the MIME type \c text/uri-list. @@ -402,8 +402,8 @@ void QMimeData::setText(const QString &text) } /*! - Returns true if the object can return plain text (MIME type \c - text/plain); otherwise returns false. + Returns \c true if the object can return plain text (MIME type \c + text/plain); otherwise returns \c false. \sa setText(), text(), hasHtml(), hasFormat() */ @@ -438,8 +438,8 @@ void QMimeData::setHtml(const QString &html) } /*! - Returns true if the object can return HTML (MIME type \c - text/html); otherwise returns false. + Returns \c true if the object can return HTML (MIME type \c + text/html); otherwise returns \c false. \sa setHtml(), html(), hasFormat() */ @@ -484,7 +484,7 @@ void QMimeData::setImageData(const QVariant &image) } /*! - Returns true if the object can return an image; otherwise returns + Returns \c true if the object can return an image; otherwise returns false. \sa setImageData(), imageData(), hasFormat() @@ -528,8 +528,8 @@ void QMimeData::setColorData(const QVariant &color) /*! - Returns true if the object can return a color (MIME type \c - application/x-color); otherwise returns false. + Returns \c true if the object can return a color (MIME type \c + application/x-color); otherwise returns \c false. \sa setColorData(), colorData(), hasFormat() */ @@ -572,8 +572,8 @@ void QMimeData::setData(const QString &mimeType, const QByteArray &data) } /*! - Returns true if the object can return data for the MIME type - specified by \a mimeType; otherwise returns false. + Returns \c true if the object can return data for the MIME type + specified by \a mimeType; otherwise returns \c false. For the most common types of data, you can call the higher-level functions hasText(), hasHtml(), hasUrls(), hasImage(), and diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index 3e9129a1eb..a52fd25e08 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -1005,9 +1005,9 @@ QObjectPrivate::Connection::~Connection() /*! \fn bool QObject::inherits(const char *className) const - Returns true if this object is an instance of a class that + Returns \c true if this object is an instance of a class that inherits \a className or a QObject subclass that inherits \a - className; otherwise returns false. + className; otherwise returns \c false. A class is considered to inherit itself. @@ -1068,7 +1068,7 @@ void QObject::setObjectName(const QString &name) /*! \fn bool QObject::isWidgetType() const - Returns true if the object is a widget; otherwise returns false. + Returns \c true if the object is a widget; otherwise returns \c false. Calling this function is equivalent to calling \c{inherits("QWidget")}, except that it is much faster. @@ -1077,7 +1077,7 @@ void QObject::setObjectName(const QString &name) /*! \fn bool QObject::isWindowType() const - Returns true if the object is a window; otherwise returns false. + Returns \c true if the object is a window; otherwise returns \c false. Calling this function is equivalent to calling \c{inherits("QWindow")}, except that it is much faster. @@ -1172,7 +1172,7 @@ void QObject::timerEvent(QTimerEvent *) QEvent::ChildAdded and QEvent::ChildRemoved events are sent to objects when children are added or removed. In both cases you can only rely on the child being a QObject, or if isWidgetType() - returns true, a QWidget. (This is because, in the + returns \c true, a QWidget. (This is because, in the \l{QEvent::ChildAdded}{ChildAdded} case, the child is not yet fully constructed, and in the \l{QEvent::ChildRemoved}{ChildRemoved} case it might have been destructed already). @@ -1249,7 +1249,7 @@ bool QObject::eventFilter(QObject * /* watched */, QEvent * /* event */) /*! \fn bool QObject::signalsBlocked() const - Returns true if signals are blocked; otherwise returns false. + Returns \c true if signals are blocked; otherwise returns \c false. Signals are not blocked by default. @@ -2279,8 +2279,8 @@ int QObject::receivers(const char *signal) const /*! \since 5.0 - Returns true if the \a signal is connected to at least one receiver, - otherwise returns false. + Returns \c true if the \a signal is connected to at least one receiver, + otherwise returns \c false. \a signal must be a signal member of this object, otherwise the behaviour is undefined. @@ -2682,8 +2682,8 @@ QMetaObject::Connection QObject::connect(const QObject *sender, const QMetaMetho \threadsafe Disconnects \a signal in object \a sender from \a method in object - \a receiver. Returns true if the connection is successfully broken; - otherwise returns false. + \a receiver. Returns \c true if the connection is successfully broken; + otherwise returns \c false. A signal-slot connection is removed when either of the objects involved are destroyed. @@ -2848,8 +2848,8 @@ bool QObject::disconnect(const QObject *sender, const char *signal, \since 4.8 Disconnects \a signal in object \a sender from \a method in object - \a receiver. Returns true if the connection is successfully broken; - otherwise returns false. + \a receiver. Returns \c true if the connection is successfully broken; + otherwise returns \c false. This function provides the same possibilities like disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method) @@ -2998,7 +2998,7 @@ void QObject::connectNotify(const QMetaMethod &signal) If all signals were disconnected from this object (e.g., the signal argument to disconnect() was 0), disconnectNotify() is only called once, and the \a signal will be an invalid - QMetaMethod (QMetaMethod::isValid() returns false). + QMetaMethod (QMetaMethod::isValid() returns \c false). \warning This function violates the object-oriented principle of modularity. However, it might be useful for optimizing access to @@ -4506,8 +4506,8 @@ bool QObject::disconnect(const QMetaObject::Connection &connection) \threadsafe Disconnects \a signal in object \a sender from \a method in object - \a receiver. Returns true if the connection is successfully broken; - otherwise returns false. + \a receiver. Returns \c true if the connection is successfully broken; + otherwise returns \c false. A signal-slot connection is removed when either of the objects involved are destroyed. @@ -4657,7 +4657,7 @@ QMetaObject::Connection::~Connection() /*! \fn QMetaObject::Connection::operator bool() const - Returns true if the connection is valid. + Returns \c true if the connection is valid. The connection is valid if the call to QObject::connect succeeded. The connection is invalid if QObject::connect was not able to find diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h index 562b0d24c7..f5745515c9 100644 --- a/src/corelib/kernel/qobject_p.h +++ b/src/corelib/kernel/qobject_p.h @@ -237,7 +237,7 @@ public: /*! \internal - Returns true if the signal with index \a signal_index from object \a sender is connected. + Returns \c true if the signal with index \a signal_index from object \a sender is connected. Signals with indices above a certain range are always considered connected (see connectedSignals in QObjectPrivate). If a signal spy is installed, all signals are considered connected. diff --git a/src/corelib/kernel/qobjectcleanuphandler.cpp b/src/corelib/kernel/qobjectcleanuphandler.cpp index 3a4fd3a648..6638fc5c86 100644 --- a/src/corelib/kernel/qobjectcleanuphandler.cpp +++ b/src/corelib/kernel/qobjectcleanuphandler.cpp @@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE someone else it will automatically be removed from the cleanup handler. You can delete all the objects in the cleanup handler with clear(), or by destroying the cleanup handler. isEmpty() - returns true if the QObjectCleanupHandler has no objects to keep + returns \c true if the QObjectCleanupHandler has no objects to keep track of. \sa QPointer @@ -119,7 +119,7 @@ void QObjectCleanupHandler::remove(QObject *object) } /*! - Returns true if this cleanup handler is empty or if all objects in + Returns \c true if this cleanup handler is empty or if all objects in this cleanup handler have been destroyed; otherwise return false. \sa add(), remove(), clear() diff --git a/src/corelib/kernel/qpointer.cpp b/src/corelib/kernel/qpointer.cpp index 4fd6cd1779..692329f942 100644 --- a/src/corelib/kernel/qpointer.cpp +++ b/src/corelib/kernel/qpointer.cpp @@ -153,7 +153,7 @@ \fn bool QPointer::isNull() const Returns \c true if the referenced object has been destroyed or if - there is no referenced object; otherwise returns false. + there is no referenced object; otherwise returns \c false. */ /*! @@ -191,45 +191,45 @@ \fn bool operator==(const T *o, const QPointer &p) \relates QPointer - Equality operator. Returns true if \a o and the guarded + Equality operator. Returns \c true if \a o and the guarded pointer \a p are pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator==(const QPointer &p, const T *o) \relates QPointer - Equality operator. Returns true if \a o and the guarded + Equality operator. Returns \c true if \a o and the guarded pointer \a p are pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator==(T *o, const QPointer &p) \relates QPointer - Equality operator. Returns true if \a o and the guarded + Equality operator. Returns \c true if \a o and the guarded pointer \a p are pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator==(const QPointer &p, T *o) \relates QPointer - Equality operator. Returns true if \a o and the guarded + Equality operator. Returns \c true if \a o and the guarded pointer \a p are pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator==(const QPointer &p1, const QPointer &p2) \relates QPointer - Equality operator. Returns true if the guarded pointers \a p1 and \a p2 + Equality operator. Returns \c true if the guarded pointers \a p1 and \a p2 are pointing to the same object, otherwise - returns false. + returns \c false. */ @@ -238,41 +238,41 @@ \fn bool operator!=(const T *o, const QPointer &p) \relates QPointer - Inequality operator. Returns true if \a o and the guarded + Inequality operator. Returns \c true if \a o and the guarded pointer \a p are not pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator!=(const QPointer &p, const T *o) \relates QPointer - Inequality operator. Returns true if \a o and the guarded + Inequality operator. Returns \c true if \a o and the guarded pointer \a p are not pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator!=(T *o, const QPointer &p) \relates QPointer - Inequality operator. Returns true if \a o and the guarded + Inequality operator. Returns \c true if \a o and the guarded pointer \a p are not pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator!=(const QPointer &p, T *o) \relates QPointer - Inequality operator. Returns true if \a o and the guarded + Inequality operator. Returns \c true if \a o and the guarded pointer \a p are not pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn bool operator!=(const QPointer &p1, const QPointer &p2) \relates QPointer - Inequality operator. Returns true if the guarded pointers \a p1 and + Inequality operator. Returns \c true if the guarded pointers \a p1 and \a p2 are not pointing to the same object, otherwise - returns false. + returns \c false. */ /*! \fn QPointer qPointerFromVariant(const QVariant &variant) diff --git a/src/corelib/kernel/qsharedmemory.cpp b/src/corelib/kernel/qsharedmemory.cpp index 51c402501d..1f53b94c4d 100644 --- a/src/corelib/kernel/qsharedmemory.cpp +++ b/src/corelib/kernel/qsharedmemory.cpp @@ -389,7 +389,7 @@ int QSharedMemory::size() const identified by the key that was passed to the constructor or to a call to setKey() or setNativeKey(). The access \a mode is \l {QSharedMemory::} {ReadWrite} by default. It can also be \l {QSharedMemory::} - {ReadOnly}. Returns true if the attach operation is successful. If + {ReadOnly}. Returns \c true if the attach operation is successful. If false is returned, call error() to determine which error occurred. After attaching the shared memory segment, a pointer to the shared memory can be obtained by calling data(). @@ -415,7 +415,7 @@ bool QSharedMemory::attach(AccessMode mode) } /*! - Returns true if this process is attached to the shared memory + Returns \c true if this process is attached to the shared memory segment. \sa attach(), detach() @@ -430,8 +430,8 @@ bool QSharedMemory::isAttached() const Detaches the process from the shared memory segment. If this was the last process attached to the shared memory segment, then the shared memory segment is released by the system, i.e., the contents are - destroyed. The function returns true if it detaches the shared - memory segment. If it returns false, it usually means the segment + destroyed. The function returns \c true if it detaches the shared + memory segment. If it returns \c false, it usually means the segment either isn't attached, or it is locked by another process. \sa attach(), isAttached() @@ -493,9 +493,9 @@ const void *QSharedMemory::data() const #ifndef QT_NO_SYSTEMSEMAPHORE /*! This is a semaphore that locks the shared memory segment for access - by this process and returns true. If another process has locked the + by this process and returns \c true. If another process has locked the segment, this function blocks until the lock is released. Then it - acquires the lock and returns true. If this function returns false, + acquires the lock and returns \c true. If this function returns \c false, it means that you have ignored a false return from create() or attach(), that you have set the key with setNativeKey() or that QSystemSemaphore::acquire() failed due to an unknown system error. @@ -520,7 +520,7 @@ bool QSharedMemory::lock() } /*! - Releases the lock on the shared memory segment and returns true, if + Releases the lock on the shared memory segment and returns \c true, if the lock is currently held by this process. If the segment is not locked, or if the lock is held by another process, nothing happens and false is returned. diff --git a/src/corelib/kernel/qsharedmemory_unix.cpp b/src/corelib/kernel/qsharedmemory_unix.cpp index fdd73657a9..24598538e5 100644 --- a/src/corelib/kernel/qsharedmemory_unix.cpp +++ b/src/corelib/kernel/qsharedmemory_unix.cpp @@ -143,7 +143,7 @@ key_t QSharedMemoryPrivate::handle() /*! \internal Creates the unix file if needed. - returns true if the unix file was created. + returns \c true if the unix file was created. -1 error 0 already existed diff --git a/src/corelib/kernel/qsocketnotifier.cpp b/src/corelib/kernel/qsocketnotifier.cpp index 6c88ed4531..6470873d9a 100644 --- a/src/corelib/kernel/qsocketnotifier.cpp +++ b/src/corelib/kernel/qsocketnotifier.cpp @@ -238,7 +238,7 @@ QSocketNotifier::Type QSocketNotifier::type() const } /*! - Returns true if the notifier is enabled; otherwise returns false. + Returns \c true if the notifier is enabled; otherwise returns \c false. \sa setEnabled() */ diff --git a/src/corelib/kernel/qsystemsemaphore.cpp b/src/corelib/kernel/qsystemsemaphore.cpp index 46269c5a24..6f0e5ee011 100644 --- a/src/corelib/kernel/qsystemsemaphore.cpp +++ b/src/corelib/kernel/qsystemsemaphore.cpp @@ -261,7 +261,7 @@ QString QSystemSemaphore::key() const /*! Acquires one of the resources guarded by this semaphore, if there is - one available, and returns true. If all the resources guarded by this + one available, and returns \c true. If all the resources guarded by this semaphore have already been acquired, the call blocks until one of them is released by another process or thread having a semaphore with the same key. @@ -278,7 +278,7 @@ bool QSystemSemaphore::acquire() } /*! - Releases \a n resources guarded by the semaphore. Returns true + Releases \a n resources guarded by the semaphore. Returns \c true unless there is a system error. Example: Create a system semaphore having five resources; acquire diff --git a/src/corelib/kernel/qtimer.cpp b/src/corelib/kernel/qtimer.cpp index 71d8d99a91..db6ff568bd 100644 --- a/src/corelib/kernel/qtimer.cpp +++ b/src/corelib/kernel/qtimer.cpp @@ -175,14 +175,14 @@ QTimer::~QTimer() \property QTimer::active \since 4.3 - This boolean property is true if the timer is running; otherwise + This boolean property is \c true if the timer is running; otherwise false. */ /*! \fn bool QTimer::isActive() const - Returns true if the timer is running (pending); otherwise returns + Returns \c true if the timer is running (pending); otherwise returns false. */ diff --git a/src/corelib/kernel/qtimerinfo_unix.cpp b/src/corelib/kernel/qtimerinfo_unix.cpp index f1bbbe5338..3d3c566a8b 100644 --- a/src/corelib/kernel/qtimerinfo_unix.cpp +++ b/src/corelib/kernel/qtimerinfo_unix.cpp @@ -108,7 +108,7 @@ timespec qAbsTimespec(const timespec &t) } /* - Returns true if the real time clock has changed by more than 10% + Returns \c true if the real time clock has changed by more than 10% relative to the processor time since the last time this function was called. This presumably means that the system time has been changed. diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp index 903ab2e2cd..843a6edce1 100644 --- a/src/corelib/kernel/qtranslator.cpp +++ b/src/corelib/kernel/qtranslator.cpp @@ -431,8 +431,8 @@ QTranslator::~QTranslator() Loads \a filename + \a suffix (".qm" if the \a suffix is not specified), which may be an absolute file name or relative to \a - directory. Returns true if the translation is successfully loaded; - otherwise returns false. + directory. Returns \c true if the translation is successfully loaded; + otherwise returns \c false. If \a directory is not specified, the directory of the application's executable is used (i.e., as @@ -708,8 +708,8 @@ static QString find_translation(const QLocale & locale, Loads \a filename + \a prefix + \l{QLocale::uiLanguages()}{ui language name} + \a suffix (".qm" if the \a suffix is not specified), which may be - an absolute file name or relative to \a directory. Returns true if the - translation is successfully loaded; otherwise returns false. + an absolute file name or relative to \a directory. Returns \c true if the + translation is successfully loaded; otherwise returns \c false. The previous contents of this translator object are discarded. @@ -1104,7 +1104,7 @@ QString QTranslator::translate(const char *context, const char *sourceText, cons } /*! - Returns true if this translator is empty, otherwise returns false. + Returns \c true if this translator is empty, otherwise returns \c false. This function works with stripped and unstripped translation files. */ bool QTranslator::isEmpty() const diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index a7c0bd2321..20e13a050f 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -1988,8 +1988,8 @@ QDataStream& operator<<(QDataStream &s, const QVariant::Type p) /*! \fn bool QVariant::isValid() const - Returns true if the storage type of this variant is not - QVariant::Invalid; otherwise returns false. + Returns \c true if the storage type of this variant is not + QVariant::Invalid; otherwise returns \c false. */ template @@ -2521,12 +2521,12 @@ qulonglong QVariant::toULongLong(bool *ok) const /*! Returns the variant as a bool if the variant has userType() Bool. - Returns true if the variant has userType() \l QMetaType::Bool, + Returns \c true if the variant has userType() \l QMetaType::Bool, \l QMetaType::QChar, \l QMetaType::Double, \l QMetaType::Int, \l QMetaType::LongLong, \l QMetaType::UInt, or \l QMetaType::ULongLong and the value is non-zero, or if the variant has type \l QMetaType::QString or \l QMetaType::QByteArray and its lower-case content is not one of the - following: empty, "0" or "false"; otherwise returns false. + following: empty, "0" or "false"; otherwise returns \c false. \sa canConvert(), convert() */ @@ -2694,7 +2694,7 @@ static const quint32 qCanConvertMatrix[QVariant::LastCoreType + 1] = #ifndef QT_BOOTSTRAPPED /*! - Returns true if from inherits to. + Returns \c true if from inherits to. */ static bool canConvertMetaObject(const QMetaObject *from, const QMetaObject *to) { @@ -2730,7 +2730,7 @@ static bool canConvertMetaObject(int fromId, int toId, QObject *fromObject) /*! - Returns true if the variant's type can be cast to the requested + Returns \c true if the variant's type can be cast to the requested type, \a targetTypeId. Such casting is done automatically when calling the toInt(), toBool(), ... methods. @@ -2933,8 +2933,8 @@ bool QVariant::canConvert(int targetTypeId) const /*! Casts the variant to the requested type, \a targetTypeId. If the cast cannot be - done, the variant is cleared. Returns true if the current type of - the variant was successfully cast; otherwise returns false. + done, the variant is cleared. Returns \c true if the current type of + the variant was successfully cast; otherwise returns \c false. A QVariant containing a pointer to a type derived from QObject will also convert and return true for this function if a qobject_cast to the type described @@ -2991,7 +2991,7 @@ bool QVariant::convert(const int type, void *ptr) const \relates QVariant - Returns true if \a v1 and \a v2 are equal; otherwise returns false. + Returns \c true if \a v1 and \a v2 are equal; otherwise returns \c false. If \a v1 and \a v2 have the same \l{QVariant::}{type()}, the type's equality operator is used for comparison. If not, it is @@ -3012,7 +3012,7 @@ bool QVariant::convert(const int type, void *ptr) const \relates QVariant - Returns false if \a v1 and \a v2 are equal; otherwise returns true. + Returns \c false if \a v1 and \a v2 are equal; otherwise returns \c true. \warning To make this function work with a custom type registered with qRegisterMetaType(), its comparison operator must be registered using @@ -3021,8 +3021,8 @@ bool QVariant::convert(const int type, void *ptr) const /*! \fn bool QVariant::operator==(const QVariant &v) const - Compares this QVariant with \a v and returns true if they are - equal; otherwise returns false. + Compares this QVariant with \a v and returns \c true if they are + equal; otherwise returns \c false. QVariant uses the equality operator of the type() it contains to check for equality. QVariant will try to convert() \a v if its @@ -3037,8 +3037,8 @@ bool QVariant::convert(const int type, void *ptr) const /*! \fn bool QVariant::operator!=(const QVariant &v) const - Compares this QVariant with \a v and returns true if they are not - equal; otherwise returns false. + Compares this QVariant with \a v and returns \c true if they are not + equal; otherwise returns \c false. \warning To make this function work with a custom type registered with qRegisterMetaType(), its comparison operator must be registered using @@ -3048,7 +3048,7 @@ bool QVariant::convert(const int type, void *ptr) const /*! \fn bool QVariant::operator<(const QVariant &v) const - Compares this QVariant with \a v and returns true if this is less than \a v. + Compares this QVariant with \a v and returns \c true if this is less than \a v. \note Comparability might not be availabe for the type stored in this QVariant or in \a v. @@ -3061,7 +3061,7 @@ bool QVariant::convert(const int type, void *ptr) const /*! \fn bool QVariant::operator<=(const QVariant &v) const - Compares this QVariant with \a v and returns true if this is less or equal than \a v. + Compares this QVariant with \a v and returns \c true if this is less or equal than \a v. \note Comparability might not be available for the type stored in this QVariant or in \a v. @@ -3074,7 +3074,7 @@ bool QVariant::convert(const int type, void *ptr) const /*! \fn bool QVariant::operator>(const QVariant &v) const - Compares this QVariant with \a v and returns true if this is larger than \a v. + Compares this QVariant with \a v and returns \c true if this is larger than \a v. \note Comparability might not be available for the type stored in this QVariant or in \a v. @@ -3087,7 +3087,7 @@ bool QVariant::convert(const int type, void *ptr) const /*! \fn bool QVariant::operator>=(const QVariant &v) const - Compares this QVariant with \a v and returns true if this is larger or equal than \a v. + Compares this QVariant with \a v and returns \c true if this is larger or equal than \a v. \note Comparability might not be available for the type stored in this QVariant or in \a v. @@ -3207,7 +3207,7 @@ void* QVariant::data() /*! - Returns true if this is a null variant, false otherwise. A variant is + Returns \c true if this is a null variant, false otherwise. A variant is considered null if it contains a default constructed value or a built-in type instance that has an isNull method, in which case the result would be the same as calling isNull on the wrapped object. @@ -3298,7 +3298,7 @@ QDebug operator<<(QDebug dbg, const QVariant::Type p) /*! \fn bool QVariant::canConvert() const - Returns true if the variant can be converted to the template type \c{T}, + Returns \c true if the variant can be converted to the template type \c{T}, otherwise false. Example: @@ -3396,8 +3396,8 @@ QDebug operator<<(QDebug dbg, const QVariant::Type p) \relates QVariant \obsolete - Returns true if the given \a value can be converted to the - template type specified; otherwise returns false. + Returns \c true if the given \a value can be converted to the + template type specified; otherwise returns \c false. This function is equivalent to QVariant::canConvert(\a value). @@ -3608,8 +3608,8 @@ const QVariant QSequentialIterable::const_iterator::operator*() const } /*! - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -3619,8 +3619,8 @@ bool QSequentialIterable::const_iterator::operator==(const const_iterator &other } /*! - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -3942,8 +3942,8 @@ const QVariant QAssociativeIterable::const_iterator::value() const } /*! - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -3953,8 +3953,8 @@ bool QAssociativeIterable::const_iterator::operator==(const const_iterator &othe } /*! - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ diff --git a/src/corelib/kernel/qwineventnotifier.cpp b/src/corelib/kernel/qwineventnotifier.cpp index 242702b304..eab5a37645 100644 --- a/src/corelib/kernel/qwineventnotifier.cpp +++ b/src/corelib/kernel/qwineventnotifier.cpp @@ -183,7 +183,7 @@ HANDLE QWinEventNotifier::handle() const } /*! - Returns true if the notifier is enabled; otherwise returns false. + Returns \c true if the notifier is enabled; otherwise returns \c false. \sa setEnabled() */ diff --git a/src/corelib/mimetypes/qmimetype.cpp b/src/corelib/mimetypes/qmimetype.cpp index 31237797df..0ffa186d2e 100644 --- a/src/corelib/mimetypes/qmimetype.cpp +++ b/src/corelib/mimetypes/qmimetype.cpp @@ -177,7 +177,7 @@ QMimeType::~QMimeType() /*! \fn bool QMimeType::operator==(const QMimeType &other) const; - Returns true if \a other equals this QMimeType object, otherwise returns false. + Returns \c true if \a other equals this QMimeType object, otherwise returns \c false. The name is the unique identifier for a mimetype, so two mimetypes with the same name, are equal. */ @@ -188,12 +188,12 @@ bool QMimeType::operator==(const QMimeType &other) const /*! \fn bool QMimeType::operator!=(const QMimeType &other) const; - Returns true if \a other does not equal this QMimeType object, otherwise returns false. + Returns \c true if \a other does not equal this QMimeType object, otherwise returns \c false. */ /*! \fn bool QMimeType::isValid() const; - Returns true if the QMimeType object contains valid data, otherwise returns false. + Returns \c true if the QMimeType object contains valid data, otherwise returns \c false. A valid MIME type has a non-empty name(). The invalid MIME type is the default-constructed QMimeType. */ @@ -204,7 +204,7 @@ bool QMimeType::isValid() const /*! \fn bool QMimeType::isDefault() const; - Returns true if this MIME type is the default MIME type which + Returns \c true if this MIME type is the default MIME type which applies to all files: application/octet-stream. */ bool QMimeType::isDefault() const @@ -432,7 +432,7 @@ QString QMimeType::filterString() const /*! \fn bool QMimeType::inherits(const QString &mimeTypeName) const; - Returns true if this mimetype is \a mimeTypeName, + Returns \c true if this mimetype is \a mimeTypeName, or inherits \a mimeTypeName (see parentMimeTypes()), or \a mimeTypeName is an alias for this mimetype. */ diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 92e60c2216..77de4d594e 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -223,7 +223,7 @@ static long qt_find_pattern(const char *s, ulong s_len, we can get the verification data without have to actually load the library. This lets us detect mismatches more safely. - Returns false if version information is not present, or if the + Returns \c false if version information is not present, or if the information could not be read. Returns true if version information is present and successfully read. */ @@ -560,8 +560,8 @@ bool QLibraryPrivate::loadPlugin() } /*! - Returns true if \a fileName has a valid suffix for a loadable - library; otherwise returns false. + Returns \c true if \a fileName has a valid suffix for a loadable + library; otherwise returns \c false. \table \header \li Platform \li Valid suffixes @@ -736,8 +736,8 @@ void QLibraryPrivate::updatePluginState() } /*! - Loads the library and returns true if the library was loaded - successfully; otherwise returns false. Since resolve() always + Loads the library and returns \c true if the library was loaded + successfully; otherwise returns \c false. Since resolve() always calls this function before resolving any symbols it is not necessary to call it explicitly. In some situations you might want the library loaded in advance, in which case you would use this @@ -756,8 +756,8 @@ bool QLibrary::load() } /*! - Unloads the library and returns true if the library could be - unloaded; otherwise returns false. + Unloads the library and returns \c true if the library could be + unloaded; otherwise returns \c false. This happens automatically on application termination, so you shouldn't normally need to call this function. @@ -780,7 +780,7 @@ bool QLibrary::unload() } /*! - Returns true if the library is loaded; otherwise returns false. + Returns \c true if the library is loaded; otherwise returns \c false. \sa load() */ diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp index ded4f6bfa2..e4a1d725ec 100644 --- a/src/corelib/plugin/qpluginloader.cpp +++ b/src/corelib/plugin/qpluginloader.cpp @@ -219,8 +219,8 @@ QJsonObject QPluginLoader::metaData() const } /*! - Loads the plugin and returns true if the plugin was loaded - successfully; otherwise returns false. Since instance() always + Loads the plugin and returns \c true if the plugin was loaded + successfully; otherwise returns \c false. Since instance() always calls this function before resolving any symbols it is not necessary to call it explicitly. In some situations you might want the plugin loaded in advance, in which case you would use this @@ -242,8 +242,8 @@ bool QPluginLoader::load() /*! - Unloads the plugin and returns true if the plugin could be - unloaded; otherwise returns false. + Unloads the plugin and returns \c true if the plugin could be + unloaded; otherwise returns \c false. This happens automatically on application termination, so you shouldn't normally need to call this function. @@ -269,7 +269,7 @@ bool QPluginLoader::unload() } /*! - Returns true if the plugin is loaded; otherwise returns false. + Returns \c true if the plugin is loaded; otherwise returns \c false. \sa load() */ diff --git a/src/corelib/plugin/quuid.cpp b/src/corelib/plugin/quuid.cpp index 4de83c62ee..183a16a7ad 100644 --- a/src/corelib/plugin/quuid.cpp +++ b/src/corelib/plugin/quuid.cpp @@ -512,15 +512,15 @@ QUuid QUuid::fromRfc4122(const QByteArray &bytes) /*! \fn bool QUuid::operator==(const QUuid &other) const - Returns true if this QUuid and the \a other QUuid are identical; - otherwise returns false. + Returns \c true if this QUuid and the \a other QUuid are identical; + otherwise returns \c false. */ /*! \fn bool QUuid::operator!=(const QUuid &other) const - Returns true if this QUuid and the \a other QUuid are different; - otherwise returns false. + Returns \c true if this QUuid and the \a other QUuid are different; + otherwise returns \c false. */ /*! @@ -735,8 +735,8 @@ QDataStream &operator>>(QDataStream &s, QUuid &id) #endif // QT_NO_DATASTREAM /*! - Returns true if this is the null UUID - {00000000-0000-0000-0000-000000000000}; otherwise returns false. + Returns \c true if this is the null UUID + {00000000-0000-0000-0000-000000000000}; otherwise returns \c false. */ bool QUuid::isNull() const { @@ -823,7 +823,7 @@ QUuid::Version QUuid::version() const /*! \fn bool QUuid::operator<(const QUuid &other) const - Returns true if this QUuid has the same \l{Variant field} + Returns \c true if this QUuid has the same \l{Variant field} {variant field} as the \a other QUuid and is lexicographically \e{before} the \a other QUuid. If the \a other QUuid has a different variant field, the return value is determined by @@ -849,7 +849,7 @@ bool QUuid::operator<(const QUuid &other) const /*! \fn bool QUuid::operator>(const QUuid &other) const - Returns true if this QUuid has the same \l{Variant field} + Returns \c true if this QUuid has the same \l{Variant field} {variant field} as the \a other QUuid and is lexicographically \e{after} the \a other QUuid. If the \a other QUuid has a different variant field, the return value is determined by @@ -992,15 +992,15 @@ QUuid QUuid::createUuid() /*! \fn bool QUuid::operator==(const GUID &guid) const - Returns true if this UUID is equal to the Windows GUID \a guid; - otherwise returns false. + Returns \c true if this UUID is equal to the Windows GUID \a guid; + otherwise returns \c false. */ /*! \fn bool QUuid::operator!=(const GUID &guid) const - Returns true if this UUID is not equal to the Windows GUID \a - guid; otherwise returns false. + Returns \c true if this UUID is not equal to the Windows GUID \a + guid; otherwise returns \c false. */ #ifndef QT_NO_DEBUG_STREAM diff --git a/src/corelib/statemachine/qsignaltransition.cpp b/src/corelib/statemachine/qsignaltransition.cpp index 9da075bc7f..f1f4786bcc 100644 --- a/src/corelib/statemachine/qsignaltransition.cpp +++ b/src/corelib/statemachine/qsignaltransition.cpp @@ -212,9 +212,9 @@ void QSignalTransition::setSignal(const QByteArray &signal) /*! \reimp - The default implementation returns true if the \a event is a + The default implementation returns \c true if the \a event is a QStateMachine::SignalEvent object and the event's sender and signal index - match this transition, and returns false otherwise. + match this transition, and returns \c false otherwise. */ bool QSignalTransition::eventTest(QEvent *event) { diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp index 883d62113c..4dba12e1b0 100644 --- a/src/corelib/statemachine/qstatemachine.cpp +++ b/src/corelib/statemachine/qstatemachine.cpp @@ -169,7 +169,7 @@ QT_BEGIN_NAMESPACE \brief whether animations are enabled - The default value of this property is true. + The default value of this property is \c true. \sa QAbstractTransition::addAnimation() */ @@ -862,8 +862,8 @@ bool QStateMachinePrivate::isInFinalState(QAbstractState* s) const /*! \internal - Returns true if the given state has saved the value of the given property, - otherwise returns false. + Returns \c true if the given state has saved the value of the given property, + otherwise returns \c false. */ bool QStateMachinePrivate::hasRestorable(QAbstractState *state, QObject *object, const QByteArray &propertyName) const @@ -2264,8 +2264,8 @@ int QStateMachine::postDelayedEvent(QEvent *event, int delay) \threadsafe Cancels the delayed event identified by the given \a id. The id should be a - value returned by a call to postDelayedEvent(). Returns true if the event - was successfully cancelled, otherwise returns false. + value returned by a call to postDelayedEvent(). Returns \c true if the event + was successfully cancelled, otherwise returns \c false. \sa postDelayedEvent() */ diff --git a/src/corelib/thread/qatomic.cpp b/src/corelib/thread/qatomic.cpp index 11623f80dc..39d136c006 100644 --- a/src/corelib/thread/qatomic.cpp +++ b/src/corelib/thread/qatomic.cpp @@ -256,18 +256,18 @@ /*! \fn bool QAtomicInt::isReferenceCountingNative() - Returns true if reference counting is implemented using atomic + Returns \c true if reference counting is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicInt::isReferenceCountingWaitFree() - Returns true if atomic reference counting is wait-free, false + Returns \c true if atomic reference counting is wait-free, false otherwise. */ /*! \fn bool QAtomicInt::ref() - Atomically increments the value of this QAtomicInt. Returns true + Atomically increments the value of this QAtomicInt. Returns \c true if the new value is non-zero, false otherwise. This function uses \e ordered \l {QAtomicInt#Memory @@ -279,7 +279,7 @@ */ /*! \fn bool QAtomicInt::deref() - Atomically decrements the value of this QAtomicInt. Returns true + Atomically decrements the value of this QAtomicInt. Returns \c true if the new value is non-zero, false otherwise. This function uses \e ordered \l {QAtomicInt#Memory @@ -292,13 +292,13 @@ /*! \fn bool QAtomicInt::isTestAndSetNative() - Returns true if test-and-set is implemented using atomic processor + Returns \c true if test-and-set is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicInt::isTestAndSetWaitFree() - Returns true if atomic test-and-set is wait-free, false otherwise. + Returns \c true if atomic test-and-set is wait-free, false otherwise. */ /*! \fn bool QAtomicInt::testAndSetRelaxed(int expectedValue, int newValue) @@ -308,7 +308,7 @@ If the current value of this QAtomicInt is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicInt and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e relaxed \l {QAtomicInt#Memory ordering}{memory ordering} semantics, leaving the compiler and @@ -322,7 +322,7 @@ If the current value of this QAtomicInt is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicInt and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e acquire \l {QAtomicInt#Memory ordering}{memory ordering} semantics, which ensures that memory @@ -337,7 +337,7 @@ If the current value of this QAtomicInt is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicInt and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e release \l {QAtomicInt#Memory ordering}{memory ordering} semantics, which ensures that memory @@ -352,7 +352,7 @@ If the current value of this QAtomicInt is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicInt and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e ordered \l {QAtomicInt#Memory ordering}{memory ordering} semantics, which ensures that memory @@ -362,13 +362,13 @@ /*! \fn bool QAtomicInt::isFetchAndStoreNative() - Returns true if fetch-and-store is implemented using atomic + Returns \c true if fetch-and-store is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicInt::isFetchAndStoreWaitFree() - Returns true if atomic fetch-and-store is wait-free, false + Returns \c true if atomic fetch-and-store is wait-free, false otherwise. */ @@ -425,13 +425,13 @@ /*! \fn bool QAtomicInt::isFetchAndAddNative() - Returns true if fetch-and-add is implemented using atomic + Returns \c true if fetch-and-add is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicInt::isFetchAndAddWaitFree() - Returns true if atomic fetch-and-add is wait-free, false + Returns \c true if atomic fetch-and-add is wait-free, false otherwise. */ @@ -828,13 +828,13 @@ /*! \fn bool QAtomicPointer::isTestAndSetNative() - Returns true if test-and-set is implemented using atomic processor + Returns \c true if test-and-set is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicPointer::isTestAndSetWaitFree() - Returns true if atomic test-and-set is wait-free, false otherwise. + Returns \c true if atomic test-and-set is wait-free, false otherwise. */ /*! \fn bool QAtomicPointer::testAndSetRelaxed(T *expectedValue, T *newValue) @@ -844,7 +844,7 @@ If the current value of this QAtomicPointer is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicPointer and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e relaxed \l {QAtomicPointer#Memory ordering}{memory ordering} semantics, leaving the compiler and @@ -858,7 +858,7 @@ If the current value of this QAtomicPointer is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicPointer and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e acquire \l {QAtomicPointer#Memory ordering}{memory ordering} semantics, which ensures that memory @@ -873,7 +873,7 @@ If the current value of this QAtomicPointer is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicPointer and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e release \l {QAtomicPointer#Memory ordering}{memory ordering} semantics, which ensures that memory @@ -888,7 +888,7 @@ If the current value of this QAtomicPointer is the \a expectedValue, the test-and-set functions assign the \a newValue to this QAtomicPointer and return true. If the values are \e not the same, - this function does nothing and returns false. + this function does nothing and returns \c false. This function uses \e ordered \l {QAtomicPointer#Memory ordering}{memory ordering} semantics, which ensures that memory @@ -898,13 +898,13 @@ /*! \fn bool QAtomicPointer::isFetchAndStoreNative() - Returns true if fetch-and-store is implemented using atomic + Returns \c true if fetch-and-store is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicPointer::isFetchAndStoreWaitFree() - Returns true if atomic fetch-and-store is wait-free, false + Returns \c true if atomic fetch-and-store is wait-free, false otherwise. */ @@ -961,13 +961,13 @@ /*! \fn bool QAtomicPointer::isFetchAndAddNative() - Returns true if fetch-and-add is implemented using atomic + Returns \c true if fetch-and-add is implemented using atomic processor instructions, false otherwise. */ /*! \fn bool QAtomicPointer::isFetchAndAddWaitFree() - Returns true if atomic fetch-and-add is wait-free, false + Returns \c true if atomic fetch-and-add is wait-free, false otherwise. */ diff --git a/src/corelib/thread/qfuture.qdoc b/src/corelib/thread/qfuture.qdoc index 7ae3e4a87e..951b369fad 100644 --- a/src/corelib/thread/qfuture.qdoc +++ b/src/corelib/thread/qfuture.qdoc @@ -127,12 +127,12 @@ /*! \fn bool QFuture::operator==(const QFuture &other) const - Returns true if \a other is a copy of this future; otherwise returns false. + Returns \c true if \a other is a copy of this future; otherwise returns \c false. */ /*! \fn bool QFuture::operator!=(const QFuture &other) const - Returns true if \a other is \e not a copy of this future; otherwise returns + Returns \c true if \a other is \e not a copy of this future; otherwise returns false. */ @@ -154,11 +154,11 @@ /*! \fn bool QFuture::isCanceled() const - Returns true if the asynchronous computation has been canceled with the - cancel() function; otherwise returns false. + Returns \c true if the asynchronous computation has been canceled with the + cancel() function; otherwise returns \c false. Be aware that the computation may still be running even though this - function returns true. See cancel() for more details. + function returns \c true. See cancel() for more details. */ /*! \fn void QFuture::setPaused(bool paused) @@ -182,11 +182,11 @@ /*! \fn bool QFuture::isPaused() const - Returns true if the asynchronous computation has been paused with the - pause() function; otherwise returns false. + Returns \c true if the asynchronous computation has been paused with the + pause() function; otherwise returns \c false. Be aware that the computation may still be running even though this - function returns true. See setPaused() for more details. + function returns \c true. See setPaused() for more details. \sa setPaused(), togglePaused() */ @@ -219,20 +219,20 @@ /*! \fn bool QFuture::isStarted() const - Returns true if the asynchronous computation represented by this future - has been started; otherwise returns false. + Returns \c true if the asynchronous computation represented by this future + has been started; otherwise returns \c false. */ /*! \fn bool QFuture::isFinished() const - Returns true if the asynchronous computation represented by this future - has finished; otherwise returns false. + Returns \c true if the asynchronous computation represented by this future + has finished; otherwise returns \c false. */ /*! \fn bool QFuture::isRunning() const - Returns true if the asynchronous computation represented by this future is - currently running; otherwise returns false. + Returns \c true if the asynchronous computation represented by this future is + currently running; otherwise returns \c false. */ /*! \fn int QFuture::resultCount() const @@ -301,8 +301,8 @@ /*! \fn bool QFuture::isResultReadyAt(int index) const - Returns true if the result at \a index is immediately available; otherwise - returns false. + Returns \c true if the result at \a index is immediately available; otherwise + returns \c false. \sa resultAt(), resultCount() */ @@ -441,16 +441,16 @@ /*! \fn bool QFuture::const_iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different result than this iterator; - otherwise returns false. + Returns \c true if \a other points to a different result than this iterator; + otherwise returns \c false. \sa operator==() */ /*! \fn bool QFuture::const_iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same result as this iterator; - otherwise returns false. + Returns \c true if \a other points to the same result as this iterator; + otherwise returns \c false. \sa operator!=() */ @@ -616,7 +616,7 @@ /*! \fn bool QFutureIterator::hasNext() const - Returns true if there is at least one result ahead of the iterator, e.g., + Returns \c true if there is at least one result ahead of the iterator, e.g., the iterator is \e not at the back of the result list; otherwise returns false. @@ -645,7 +645,7 @@ /*! \fn bool QFutureIterator::hasPrevious() const - Returns true if there is at least one result ahead of the iterator, e.g., + Returns \c true if there is at least one result ahead of the iterator, e.g., the iterator is \e not at the front of the result list; otherwise returns false. @@ -675,7 +675,7 @@ /*! \fn bool QFutureIterator::findNext(const T &value) Searches for \a value starting from the current iterator position forward. - Returns true if \a value is found; otherwise returns false. + Returns \c true if \a value is found; otherwise returns \c false. After the call, if \a value was found, the iterator is positioned just after the matching result; otherwise, the iterator is positioned at the @@ -687,7 +687,7 @@ /*! \fn bool QFutureIterator::findPrevious(const T &value) Searches for \a value starting from the current iterator position - backward. Returns true if \a value is found; otherwise returns false. + backward. Returns \c true if \a value is found; otherwise returns \c false. After the call, if \a value was found, the iterator is positioned just before the matching result; otherwise, the iterator is positioned at the diff --git a/src/corelib/thread/qfuturesynchronizer.qdoc b/src/corelib/thread/qfuturesynchronizer.qdoc index cc31dff46d..0112935a00 100644 --- a/src/corelib/thread/qfuturesynchronizer.qdoc +++ b/src/corelib/thread/qfuturesynchronizer.qdoc @@ -114,7 +114,7 @@ /*! \fn void QFutureSynchronizer::waitForFinished() - Waits for all futures to finish. If cancelOnWait() returns true, each + Waits for all futures to finish. If cancelOnWait() returns \c true, each future is canceled before waiting for them to finish. \sa cancelOnWait(), setCancelOnWait() @@ -149,7 +149,7 @@ /*! \fn bool QFutureSynchronizer::cancelOnWait() const - Returns true if the cancel-on-wait feature is enabled; otherwise returns + Returns \c true if the cancel-on-wait feature is enabled; otherwise returns false. If cancel-on-wait is enabled, the waitForFinished() function will cancel all futures before waiting for them to finish. diff --git a/src/corelib/thread/qfuturewatcher.cpp b/src/corelib/thread/qfuturewatcher.cpp index a7f2dd9f73..c986d4e59f 100644 --- a/src/corelib/thread/qfuturewatcher.cpp +++ b/src/corelib/thread/qfuturewatcher.cpp @@ -245,8 +245,8 @@ QString QFutureWatcherBase::progressText() const /*! \fn bool QFutureWatcher::isStarted() const - Returns true if the asynchronous computation represented by the future() - has been started; otherwise returns false. + Returns \c true if the asynchronous computation represented by the future() + has been started; otherwise returns \c false. */ bool QFutureWatcherBase::isStarted() const { @@ -255,8 +255,8 @@ bool QFutureWatcherBase::isStarted() const /*! \fn bool QFutureWatcher::isFinished() const - Returns true if the asynchronous computation represented by the future() - has finished; otherwise returns false. + Returns \c true if the asynchronous computation represented by the future() + has finished; otherwise returns \c false. */ bool QFutureWatcherBase::isFinished() const { @@ -266,8 +266,8 @@ bool QFutureWatcherBase::isFinished() const /*! \fn bool QFutureWatcher::isRunning() const - Returns true if the asynchronous computation represented by the future() - is currently running; otherwise returns false. + Returns \c true if the asynchronous computation represented by the future() + is currently running; otherwise returns \c false. */ bool QFutureWatcherBase::isRunning() const { @@ -276,11 +276,11 @@ bool QFutureWatcherBase::isRunning() const /*! \fn bool QFutureWatcher::isCanceled() const - Returns true if the asynchronous computation has been canceled with the - cancel() function; otherwise returns false. + Returns \c true if the asynchronous computation has been canceled with the + cancel() function; otherwise returns \c false. Be aware that the computation may still be running even though this - function returns true. See cancel() for more details. + function returns \c true. See cancel() for more details. */ bool QFutureWatcherBase::isCanceled() const { @@ -289,11 +289,11 @@ bool QFutureWatcherBase::isCanceled() const /*! \fn bool QFutureWatcher::isPaused() const - Returns true if the asynchronous computation has been paused with the - pause() function; otherwise returns false. + Returns \c true if the asynchronous computation has been paused with the + pause() function; otherwise returns \c false. Be aware that the computation may still be running even though this - function returns true. See setPaused() for more details. + function returns \c true. See setPaused() for more details. \sa setPaused(), togglePaused() */ diff --git a/src/corelib/thread/qmutex.cpp b/src/corelib/thread/qmutex.cpp index ed84504a58..0f305b79af 100644 --- a/src/corelib/thread/qmutex.cpp +++ b/src/corelib/thread/qmutex.cpp @@ -227,8 +227,8 @@ void QMutex::lock() QT_MUTEX_LOCK_NOEXCEPT /*! \fn bool QMutex::tryLock(int timeout) - Attempts to lock the mutex. This function returns true if the lock - was obtained; otherwise it returns false. If another thread has + Attempts to lock the mutex. This function returns \c true if the lock + was obtained; otherwise it returns \c false. If another thread has locked the mutex, this function will wait for at most \a timeout milliseconds for the mutex to become available. @@ -281,7 +281,7 @@ void QMutex::unlock() Q_DECL_NOTHROW \fn void QMutex::isRecursive() \since 5.0 - Returns true if the mutex is recursive + Returns \c true if the mutex is recursive */ bool QBasicMutex::isRecursive() diff --git a/src/corelib/thread/qreadwritelock.cpp b/src/corelib/thread/qreadwritelock.cpp index 0de826fddf..e4cdf7a985 100644 --- a/src/corelib/thread/qreadwritelock.cpp +++ b/src/corelib/thread/qreadwritelock.cpp @@ -172,7 +172,7 @@ void QReadWriteLock::lockForRead() /*! Attempts to lock for reading. If the lock was obtained, this - function returns true, otherwise it returns false instead of + function returns \c true, otherwise it returns \c false instead of waiting for the lock to become available, i.e. it does not block. The lock attempt will fail if another thread has locked for @@ -217,8 +217,8 @@ bool QReadWriteLock::tryLockForRead() /*! \overload - Attempts to lock for reading. This function returns true if the - lock was obtained; otherwise it returns false. If another thread + Attempts to lock for reading. This function returns \c true if the + lock was obtained; otherwise it returns \c false. If another thread has locked for writing, this function will wait for at most \a timeout milliseconds for the lock to become available. @@ -309,7 +309,7 @@ void QReadWriteLock::lockForWrite() /*! Attempts to lock for writing. If the lock was obtained, this - function returns true; otherwise, it returns false immediately. + function returns \c true; otherwise, it returns \c false immediately. The lock attempt will fail if another thread has locked for reading or writing. @@ -352,8 +352,8 @@ bool QReadWriteLock::tryLockForWrite() /*! \overload - Attempts to lock for writing. This function returns true if the - lock was obtained; otherwise it returns false. If another thread + Attempts to lock for writing. This function returns \c true if the + lock was obtained; otherwise it returns \c false. If another thread has locked for reading or writing, this function will wait for at most \a timeout milliseconds for the lock to become available. diff --git a/src/corelib/thread/qrunnable.cpp b/src/corelib/thread/qrunnable.cpp index e271582b9b..c12307ab71 100644 --- a/src/corelib/thread/qrunnable.cpp +++ b/src/corelib/thread/qrunnable.cpp @@ -53,7 +53,7 @@ You can use QThreadPool to execute your code in a separate thread. QThreadPool deletes the QRunnable automatically if - autoDelete() returns true (the default). Use setAutoDelete() to + autoDelete() returns \c true (the default). Use setAutoDelete() to change the auto-deletion flag. QThreadPool supports executing the same QRunnable more than once @@ -82,7 +82,7 @@ /*! \fn bool QRunnable::autoDelete() const - Returns true is auto-deletion is enabled; false otherwise. + Returns \c true is auto-deletion is enabled; false otherwise. If auto-deletion is enabled, QThreadPool will automatically delete this runnable after calling run(); otherwise, ownership remains diff --git a/src/corelib/thread/qsemaphore.cpp b/src/corelib/thread/qsemaphore.cpp index 90e4f2a20a..9393ca0d59 100644 --- a/src/corelib/thread/qsemaphore.cpp +++ b/src/corelib/thread/qsemaphore.cpp @@ -178,8 +178,8 @@ int QSemaphore::available() const /*! Tries to acquire \c n resources guarded by the semaphore and - returns true on success. If available() < \a n, this call - immediately returns false without acquiring any resources. + returns \c true on success. If available() < \a n, this call + immediately returns \c false without acquiring any resources. Example: @@ -199,7 +199,7 @@ bool QSemaphore::tryAcquire(int n) /*! Tries to acquire \c n resources guarded by the semaphore and - returns true on success. If available() < \a n, this call will + returns \c true on success. If available() < \a n, this call will wait for at most \a timeout milliseconds for resources to become available. diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index 35d57b3d83..27529f8644 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -405,7 +405,7 @@ QThread::QThread(QThreadPrivate &dd, QObject *parent) Note that deleting a QThread object will not stop the execution of the thread it manages. Deleting a running QThread (i.e. - isFinished() returns false) will probably result in a program + isFinished() returns \c false) will probably result in a program crash. Wait for the finished() signal before deleting the QThread. */ @@ -427,7 +427,7 @@ QThread::~QThread() } /*! - Returns true if the thread is finished; otherwise returns false. + Returns \c true if the thread is finished; otherwise returns \c false. \sa isRunning() */ @@ -439,7 +439,7 @@ bool QThread::isFinished() const } /*! - Returns true if the thread is running; otherwise returns false. + Returns \c true if the thread is running; otherwise returns \c false. \sa isFinished() */ diff --git a/src/corelib/thread/qthreadpool.cpp b/src/corelib/thread/qthreadpool.cpp index 9ef40a5209..fb1d1ee7cc 100644 --- a/src/corelib/thread/qthreadpool.cpp +++ b/src/corelib/thread/qthreadpool.cpp @@ -441,10 +441,10 @@ QThreadPool *QThreadPool::globalInstance() be used to control the run queue's order of execution. Note that the thread pool takes ownership of the \a runnable if - \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns true, + \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns \c true, and the \a runnable will be deleted automatically by the thread pool after the \l{QRunnable::run()}{runnable->run()} returns. If - \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns false, + \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns \c false, ownership of \a runnable remains with the caller. Note that changing the auto-deletion on \a runnable after calling this functions results in undefined behavior. @@ -470,14 +470,14 @@ void QThreadPool::start(QRunnable *runnable, int priority) Attempts to reserve a thread to run \a runnable. If no threads are available at the time of calling, then this function - does nothing and returns false. Otherwise, \a runnable is run immediately - using one available thread and this function returns true. + does nothing and returns \c false. Otherwise, \a runnable is run immediately + using one available thread and this function returns \c true. Note that the thread pool takes ownership of the \a runnable if - \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns true, + \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns \c true, and the \a runnable will be deleted automatically by the thread pool after the \l{QRunnable::run()}{runnable->run()} returns. If - \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns false, + \l{QRunnable::autoDelete()}{runnable->autoDelete()} returns \c false, ownership of \a runnable remains with the caller. Note that changing the auto-deletion on \a runnable after calling this function results in undefined behavior. @@ -612,8 +612,8 @@ void QThreadPool::releaseThread() /*! Waits up to \a msecs milliseconds for all threads to exit and removes all - threads from the thread pool. Returns true if all threads were removed; - otherwise it returns false. If \a msecs is -1 (the default), the timeout + threads from the thread pool. Returns \c true if all threads were removed; + otherwise it returns \c false. If \a msecs is -1 (the default), the timeout is ignored (waits for the last thread to exit). */ bool QThreadPool::waitForDone(int msecs) @@ -630,7 +630,7 @@ bool QThreadPool::waitForDone(int msecs) Removes the runnables that are not yet started from the queue. The runnables for which \l{QRunnable::autoDelete()}{runnable->autoDelete()} - returns true are deleted. + returns \c true are deleted. \sa start() */ diff --git a/src/corelib/thread/qthreadstorage.cpp b/src/corelib/thread/qthreadstorage.cpp index 6000ece7dc..2d95b0880d 100644 --- a/src/corelib/thread/qthreadstorage.cpp +++ b/src/corelib/thread/qthreadstorage.cpp @@ -282,7 +282,7 @@ void QThreadStorageData::finish(void **p) /*! \fn bool QThreadStorage::hasLocalData() const - If T is a pointer type, returns true if the calling thread has + If T is a pointer type, returns \c true if the calling thread has non-zero data available. If T is a value type, returns whether the data has already been diff --git a/src/corelib/tools/qalgorithms.qdoc b/src/corelib/tools/qalgorithms.qdoc index fce65b9a87..4eb7a170dc 100644 --- a/src/corelib/tools/qalgorithms.qdoc +++ b/src/corelib/tools/qalgorithms.qdoc @@ -139,7 +139,7 @@ \row \li \c{i - n} \li returns the iterator for the item \c n positions behind of iterator \c i \row \li \c{i - j} \li returns the number of items between iterators \c i and \c j \row \li \c{i[n]} \li same as \c{*(i + n)} - \row \li \c{i < j} \li returns true if iterator \c j comes after iterator \c i + \row \li \c{i < j} \li returns \c true if iterator \c j comes after iterator \c i \endtable QList and QVector's non-const iterator types are random access iterators. @@ -273,8 +273,8 @@ Use std::equal instead. Compares the items in the range [\a begin1, \a end1) with the - items in the range [\a begin2, ...). Returns true if all the - items compare equal; otherwise returns false. + items in the range [\a begin2, ...). Returns \c true if all the + items compare equal; otherwise returns \c false. Example: \snippet code/doc_src_qalgorithms.cpp 6 diff --git a/src/corelib/tools/qbitarray.cpp b/src/corelib/tools/qbitarray.cpp index 4f1fce3077..f583444d3c 100644 --- a/src/corelib/tools/qbitarray.cpp +++ b/src/corelib/tools/qbitarray.cpp @@ -262,7 +262,7 @@ void QBitArray::resize(int size) /*! \fn bool QBitArray::isEmpty() const - Returns true if this bit array has size 0; otherwise returns + Returns \c true if this bit array has size 0; otherwise returns false. \sa size() @@ -270,7 +270,7 @@ void QBitArray::resize(int size) /*! \fn bool QBitArray::isNull() const - Returns true if this bit array is null; otherwise returns false. + Returns \c true if this bit array is null; otherwise returns \c false. Example: \snippet code/src_corelib_tools_qbitarray.cpp 5 @@ -286,7 +286,7 @@ void QBitArray::resize(int size) /*! \fn bool QBitArray::fill(bool value, int size = -1) Sets every bit in the bit array to \a value, returning true if successful; - otherwise returns false. If \a size is different from -1 (the default), + otherwise returns \c false. If \a size is different from -1 (the default), the bit array is resized to \a size beforehand. Example: @@ -363,8 +363,8 @@ void QBitArray::fill(bool value, int begin, int end) /*! \fn bool QBitArray::testBit(int i) const - Returns true if the bit at index position \a i is 1; otherwise - returns false. + Returns \c true if the bit at index position \a i is 1; otherwise + returns \c false. \a i must be a valid index position in the bit array (i.e., 0 <= \a i < size()). @@ -478,16 +478,16 @@ void QBitArray::fill(bool value, int begin, int end) /*! \fn bool QBitArray::operator==(const QBitArray &other) const - Returns true if \a other is equal to this bit array; otherwise - returns false. + Returns \c true if \a other is equal to this bit array; otherwise + returns \c false. \sa operator!=() */ /*! \fn bool QBitArray::operator!=(const QBitArray &other) const - Returns true if \a other is not equal to this bit array; - otherwise returns false. + Returns \c true if \a other is not equal to this bit array; + otherwise returns \c false. \sa operator==() */ diff --git a/src/corelib/tools/qbytearray.cpp b/src/corelib/tools/qbytearray.cpp index 92d0d30f54..eb06bd4713 100644 --- a/src/corelib/tools/qbytearray.cpp +++ b/src/corelib/tools/qbytearray.cpp @@ -1009,7 +1009,7 @@ QByteArray &QByteArray::operator=(const char *str) /*! \fn bool QByteArray::isEmpty() const - Returns true if the byte array has size 0; otherwise returns false. + Returns \c true if the byte array has size 0; otherwise returns \c false. Example: \snippet code/src_corelib_tools_qbytearray.cpp 7 @@ -1212,8 +1212,8 @@ QByteArray &QByteArray::operator=(const char *str) /*! \fn bool QByteArray::contains(const QByteArray &ba) const - Returns true if the byte array contains an occurrence of the byte - array \a ba; otherwise returns false. + Returns \c true if the byte array contains an occurrence of the byte + array \a ba; otherwise returns \c false. \sa indexOf(), count() */ @@ -1222,16 +1222,16 @@ QByteArray &QByteArray::operator=(const char *str) \overload - Returns true if the byte array contains the string \a str; - otherwise returns false. + Returns \c true if the byte array contains the string \a str; + otherwise returns \c false. */ /*! \fn bool QByteArray::contains(char ch) const \overload - Returns true if the byte array contains the character \a ch; - otherwise returns false. + Returns \c true if the byte array contains the character \a ch; + otherwise returns \c false. */ /*! @@ -1334,7 +1334,7 @@ void QByteArray::chop(int n) /*! \fn bool QByteArray::isNull() const - Returns true if this byte array is null; otherwise returns false. + Returns \c true if this byte array is null; otherwise returns \c false. Example: \snippet code/src_corelib_tools_qbytearray.cpp 13 @@ -2534,8 +2534,8 @@ int QByteArray::count(char ch) const */ /*! - Returns true if this byte array starts with byte array \a ba; - otherwise returns false. + Returns \c true if this byte array starts with byte array \a ba; + otherwise returns \c false. Example: \snippet code/src_corelib_tools_qbytearray.cpp 25 @@ -2553,8 +2553,8 @@ bool QByteArray::startsWith(const QByteArray &ba) const /*! \overload - Returns true if this byte array starts with string \a str; - otherwise returns false. + Returns \c true if this byte array starts with string \a str; + otherwise returns \c false. */ bool QByteArray::startsWith(const char *str) const { @@ -2568,8 +2568,8 @@ bool QByteArray::startsWith(const char *str) const /*! \overload - Returns true if this byte array starts with character \a ch; - otherwise returns false. + Returns \c true if this byte array starts with character \a ch; + otherwise returns \c false. */ bool QByteArray::startsWith(char ch) const { @@ -2579,8 +2579,8 @@ bool QByteArray::startsWith(char ch) const } /*! - Returns true if this byte array ends with byte array \a ba; - otherwise returns false. + Returns \c true if this byte array ends with byte array \a ba; + otherwise returns \c false. Example: \snippet code/src_corelib_tools_qbytearray.cpp 26 @@ -2598,8 +2598,8 @@ bool QByteArray::endsWith(const QByteArray &ba) const /*! \overload - Returns true if this byte array ends with string \a str; otherwise - returns false. + Returns \c true if this byte array ends with string \a str; otherwise + returns \c false. */ bool QByteArray::endsWith(const char *str) const { @@ -2613,8 +2613,8 @@ bool QByteArray::endsWith(const char *str) const /*! \overload - Returns true if this byte array ends with character \a ch; - otherwise returns false. + Returns \c true if this byte array ends with character \a ch; + otherwise returns \c false. */ bool QByteArray::endsWith(char ch) const { @@ -2812,8 +2812,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) /*! \fn bool QByteArray::operator==(const QString &str) const - Returns true if this byte array is equal to string \a str; - otherwise returns false. + Returns \c true if this byte array is equal to string \a str; + otherwise returns \c false. The Unicode data is converted into 8-bit characters using QString::toUtf8(). @@ -2829,8 +2829,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) /*! \fn bool QByteArray::operator!=(const QString &str) const - Returns true if this byte array is not equal to string \a str; - otherwise returns false. + Returns \c true if this byte array is not equal to string \a str; + otherwise returns \c false. The Unicode data is converted into 8-bit characters using QString::toUtf8(). @@ -2846,8 +2846,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) /*! \fn bool QByteArray::operator<(const QString &str) const - Returns true if this byte array is lexically less than string \a - str; otherwise returns false. + Returns \c true if this byte array is lexically less than string \a + str; otherwise returns \c false. The Unicode data is converted into 8-bit characters using QString::toUtf8(). @@ -2863,8 +2863,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) /*! \fn bool QByteArray::operator>(const QString &str) const - Returns true if this byte array is lexically greater than string - \a str; otherwise returns false. + Returns \c true if this byte array is lexically greater than string + \a str; otherwise returns \c false. The Unicode data is converted into 8-bit characters using QString::toUtf8(). @@ -2880,8 +2880,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) /*! \fn bool QByteArray::operator<=(const QString &str) const - Returns true if this byte array is lexically less than or equal - to string \a str; otherwise returns false. + Returns \c true if this byte array is lexically less than or equal + to string \a str; otherwise returns \c false. The Unicode data is converted into 8-bit characters using QString::toUtf8(). @@ -2897,8 +2897,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) /*! \fn bool QByteArray::operator>=(const QString &str) const - Returns true if this byte array is greater than or equal to string - \a str; otherwise returns false. + Returns \c true if this byte array is greater than or equal to string + \a str; otherwise returns \c false. The Unicode data is converted into 8-bit characters using QString::toUtf8(). @@ -2917,8 +2917,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is equal to byte array \a a2; - otherwise returns false. + Returns \c true if byte array \a a1 is equal to byte array \a a2; + otherwise returns \c false. */ /*! \fn bool operator==(const QByteArray &a1, const char *a2) @@ -2926,8 +2926,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is equal to string \a a2; - otherwise returns false. + Returns \c true if byte array \a a1 is equal to string \a a2; + otherwise returns \c false. */ /*! \fn bool operator==(const char *a1, const QByteArray &a2) @@ -2935,8 +2935,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if string \a a1 is equal to byte array \a a2; - otherwise returns false. + Returns \c true if string \a a1 is equal to byte array \a a2; + otherwise returns \c false. */ /*! \fn bool operator!=(const QByteArray &a1, const QByteArray &a2) @@ -2944,8 +2944,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is not equal to byte array \a a2; - otherwise returns false. + Returns \c true if byte array \a a1 is not equal to byte array \a a2; + otherwise returns \c false. */ /*! \fn bool operator!=(const QByteArray &a1, const char *a2) @@ -2953,8 +2953,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is not equal to string \a a2; - otherwise returns false. + Returns \c true if byte array \a a1 is not equal to string \a a2; + otherwise returns \c false. */ /*! \fn bool operator!=(const char *a1, const QByteArray &a2) @@ -2962,8 +2962,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if string \a a1 is not equal to byte array \a a2; - otherwise returns false. + Returns \c true if string \a a1 is not equal to byte array \a a2; + otherwise returns \c false. */ /*! \fn bool operator<(const QByteArray &a1, const QByteArray &a2) @@ -2971,8 +2971,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically less than byte array - \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically less than byte array + \a a2; otherwise returns \c false. */ /*! \fn inline bool operator<(const QByteArray &a1, const char *a2) @@ -2980,8 +2980,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically less than string - \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically less than string + \a a2; otherwise returns \c false. */ /*! \fn bool operator<(const char *a1, const QByteArray &a2) @@ -2989,8 +2989,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if string \a a1 is lexically less than byte array - \a a2; otherwise returns false. + Returns \c true if string \a a1 is lexically less than byte array + \a a2; otherwise returns \c false. */ /*! \fn bool operator<=(const QByteArray &a1, const QByteArray &a2) @@ -2998,8 +2998,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically less than or equal - to byte array \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically less than or equal + to byte array \a a2; otherwise returns \c false. */ /*! \fn bool operator<=(const QByteArray &a1, const char *a2) @@ -3007,8 +3007,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically less than or equal - to string \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically less than or equal + to string \a a2; otherwise returns \c false. */ /*! \fn bool operator<=(const char *a1, const QByteArray &a2) @@ -3016,8 +3016,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if string \a a1 is lexically less than or equal - to byte array \a a2; otherwise returns false. + Returns \c true if string \a a1 is lexically less than or equal + to byte array \a a2; otherwise returns \c false. */ /*! \fn bool operator>(const QByteArray &a1, const QByteArray &a2) @@ -3025,8 +3025,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically greater than byte - array \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically greater than byte + array \a a2; otherwise returns \c false. */ /*! \fn bool operator>(const QByteArray &a1, const char *a2) @@ -3034,8 +3034,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically greater than string - \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically greater than string + \a a2; otherwise returns \c false. */ /*! \fn bool operator>(const char *a1, const QByteArray &a2) @@ -3043,8 +3043,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if string \a a1 is lexically greater than byte array - \a a2; otherwise returns false. + Returns \c true if string \a a1 is lexically greater than byte array + \a a2; otherwise returns \c false. */ /*! \fn bool operator>=(const QByteArray &a1, const QByteArray &a2) @@ -3052,8 +3052,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically greater than or - equal to byte array \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically greater than or + equal to byte array \a a2; otherwise returns \c false. */ /*! \fn bool operator>=(const QByteArray &a1, const char *a2) @@ -3061,8 +3061,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if byte array \a a1 is lexically greater than or - equal to string \a a2; otherwise returns false. + Returns \c true if byte array \a a1 is lexically greater than or + equal to string \a a2; otherwise returns \c false. */ /*! \fn bool operator>=(const char *a1, const QByteArray &a2) @@ -3070,8 +3070,8 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) \overload - Returns true if string \a a1 is lexically greater than or - equal to byte array \a a2; otherwise returns false. + Returns \c true if string \a a1 is lexically greater than or + equal to byte array \a a2; otherwise returns \c false. */ /*! \fn const QByteArray operator+(const QByteArray &a1, const QByteArray &a2) @@ -3125,7 +3125,7 @@ QDataStream &operator>>(QDataStream &in, QByteArray &ba) replaced with a single space. Whitespace means any character for which the standard C++ - isspace() function returns true. This includes the ASCII + isspace() function returns \c true. This includes the ASCII characters '\\t', '\\n', '\\v', '\\f', '\\r', and ' '. Example: @@ -3163,7 +3163,7 @@ QByteArray QByteArray::simplified() const and the end. Whitespace means any character for which the standard C++ - isspace() function returns true. This includes the ASCII + isspace() function returns \c true. This includes the ASCII characters '\\t', '\\n', '\\v', '\\f', '\\r', and ' '. Example: diff --git a/src/corelib/tools/qcache.qdoc b/src/corelib/tools/qcache.qdoc index 4d19d671fd..6d8bf4da59 100644 --- a/src/corelib/tools/qcache.qdoc +++ b/src/corelib/tools/qcache.qdoc @@ -134,8 +134,8 @@ /*! \fn bool QCache::isEmpty() const - Returns true if the cache contains no objects; otherwise - returns false. + Returns \c true if the cache contains no objects; otherwise + returns \c false. \sa size() */ @@ -163,8 +163,8 @@ deleted at any time. In particular, if \a cost is greater than maxCost(), the object will be deleted immediately. - The function returns true if the object was inserted into the - cache; otherwise it returns false. + The function returns \c true if the object was inserted into the + cache; otherwise it returns \c false. \sa take(), remove() */ @@ -182,8 +182,8 @@ /*! \fn bool QCache::contains(const Key &key) const - Returns true if the cache contains an object associated with key \a - key; otherwise returns false. + Returns \c true if the cache contains an object associated with key \a + key; otherwise returns \c false. \sa take(), remove() */ @@ -201,8 +201,8 @@ /*! \fn bool QCache::remove(const Key &key) - Deletes the object associated with key \a key. Returns true if the - object was found in the cache; otherwise returns false. + Deletes the object associated with key \a key. Returns \c true if the + object was found in the cache; otherwise returns \c false. \sa take(), clear() */ diff --git a/src/corelib/tools/qchar.cpp b/src/corelib/tools/qchar.cpp index d99bba93ee..4ed0cd5eea 100644 --- a/src/corelib/tools/qchar.cpp +++ b/src/corelib/tools/qchar.cpp @@ -115,7 +115,7 @@ QT_BEGIN_NAMESPACE operating on the full range of Unicode characters, not just for the ASCII range. They all return true if the character is a certain type of character; otherwise they return false. These classification functions are - isNull() (returns true if the character is '\\0'), isPrint() + isNull() (returns \c true if the character is '\\0'), isPrint() (true if the character is any sort of printable character, including whitespace), isPunct() (any sort of punctation), isMark() (Unicode Mark), isLetter() (a letter), isNumber() (any @@ -123,7 +123,7 @@ QT_BEGIN_NAMESPACE isDigit() (decimal digits). All of these are wrappers around category() which return the Unicode-defined category of each character. Some of these also calculate the derived properties - (for example isSpace() returns true if the character is of category + (for example isSpace() returns \c true if the character is of category Separator_* or an exceptional code point from Other_Control category). QChar also provides direction(), which indicates the "natural" @@ -597,8 +597,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QChar::isNull() const - Returns true if the character is the Unicode character 0x0000 - ('\\0'); otherwise returns false. + Returns \c true if the character is the Unicode character 0x0000 + ('\\0'); otherwise returns \c false. */ /*! @@ -620,8 +620,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QChar::isPrint() const - Returns true if the character is a printable character; otherwise - returns false. This is any character not of category Other_*. + Returns \c true if the character is a printable character; otherwise + returns \c false. This is any character not of category Other_*. Note that this gives no indication of whether the character is available in a particular font. @@ -631,8 +631,8 @@ QT_BEGIN_NAMESPACE \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a printable character; otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a printable character; otherwise returns \c false. This is any character not of category Other_*. Note that this gives no indication of whether the character is @@ -653,9 +653,9 @@ bool QChar::isPrint(uint ucs4) /*! \fn bool QChar::isSpace() const - Returns true if the character is a separator character + Returns \c true if the character is a separator character (Separator_* categories or certain code points from Other_Control category); - otherwise returns false. + otherwise returns \c false. */ /*! @@ -663,9 +663,9 @@ bool QChar::isPrint(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is a separator character (Separator_* categories or certain code points - from Other_Control category); otherwise returns false. + from Other_Control category); otherwise returns \c false. */ /*! @@ -684,8 +684,8 @@ bool QT_FASTCALL QChar::isSpace_helper(uint ucs4) /*! \fn bool QChar::isMark() const - Returns true if the character is a mark (Mark_* categories); - otherwise returns false. + Returns \c true if the character is a mark (Mark_* categories); + otherwise returns \c false. See QChar::Category for more information regarding marks. */ @@ -694,8 +694,8 @@ bool QT_FASTCALL QChar::isSpace_helper(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a mark (Mark_* categories); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a mark (Mark_* categories); otherwise returns \c false. */ bool QChar::isMark(uint ucs4) { @@ -710,16 +710,16 @@ bool QChar::isMark(uint ucs4) /*! \fn bool QChar::isPunct() const - Returns true if the character is a punctuation mark (Punctuation_* - categories); otherwise returns false. + Returns \c true if the character is a punctuation mark (Punctuation_* + categories); otherwise returns \c false. */ /*! \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a punctuation mark (Punctuation_* categories); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a punctuation mark (Punctuation_* categories); otherwise returns \c false. */ bool QChar::isPunct(uint ucs4) { @@ -738,16 +738,16 @@ bool QChar::isPunct(uint ucs4) /*! \fn bool QChar::isSymbol() const - Returns true if the character is a symbol (Symbol_* categories); - otherwise returns false. + Returns \c true if the character is a symbol (Symbol_* categories); + otherwise returns \c false. */ /*! \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a symbol (Symbol_* categories); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a symbol (Symbol_* categories); otherwise returns \c false. */ bool QChar::isSymbol(uint ucs4) { @@ -763,8 +763,8 @@ bool QChar::isSymbol(uint ucs4) /*! \fn bool QChar::isLetter() const - Returns true if the character is a letter (Letter_* categories); - otherwise returns false. + Returns \c true if the character is a letter (Letter_* categories); + otherwise returns \c false. */ /*! @@ -772,8 +772,8 @@ bool QChar::isSymbol(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a letter (Letter_* categories); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a letter (Letter_* categories); otherwise returns \c false. */ /*! @@ -794,8 +794,8 @@ bool QT_FASTCALL QChar::isLetter_helper(uint ucs4) /*! \fn bool QChar::isNumber() const - Returns true if the character is a number (Number_* categories, - not just 0-9); otherwise returns false. + Returns \c true if the character is a number (Number_* categories, + not just 0-9); otherwise returns \c false. \sa isDigit() */ @@ -805,8 +805,8 @@ bool QT_FASTCALL QChar::isLetter_helper(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a number (Number_* categories, not just 0-9); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a number (Number_* categories, not just 0-9); otherwise returns \c false. \sa isDigit() */ @@ -827,8 +827,8 @@ bool QT_FASTCALL QChar::isNumber_helper(uint ucs4) /*! \fn bool QChar::isLetterOrNumber() const - Returns true if the character is a letter or number (Letter_* or - Number_* categories); otherwise returns false. + Returns \c true if the character is a letter or number (Letter_* or + Number_* categories); otherwise returns \c false. */ /*! @@ -836,8 +836,8 @@ bool QT_FASTCALL QChar::isNumber_helper(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a letter or number (Letter_* or Number_* categories); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a letter or number (Letter_* or Number_* categories); otherwise returns \c false. */ /*! @@ -861,8 +861,8 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) /*! \fn bool QChar::isDigit() const - Returns true if the character is a decimal digit - (Number_DecimalDigit); otherwise returns false. + Returns \c true if the character is a decimal digit + (Number_DecimalDigit); otherwise returns \c false. \sa isNumber() */ @@ -872,8 +872,8 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 is - a decimal digit (Number_DecimalDigit); otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is + a decimal digit (Number_DecimalDigit); otherwise returns \c false. \sa isNumber() */ @@ -882,7 +882,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \fn bool QChar::isNonCharacter() const \since 5.0 - Returns true if the QChar is a non-character; false otherwise. + Returns \c true if the QChar is a non-character; false otherwise. Unicode has a certain number of code points that are classified as "non-characters:" that is, they can be used for internal purposes @@ -894,14 +894,14 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) /*! \fn bool QChar::isHighSurrogate() const - Returns true if the QChar is the high part of a UTF16 surrogate + Returns \c true if the QChar is the high part of a UTF16 surrogate (for example if its code point is in range [0xd800..0xdbff]); false otherwise. */ /*! \fn bool QChar::isLowSurrogate() const - Returns true if the QChar is the low part of a UTF16 surrogate + Returns \c true if the QChar is the low part of a UTF16 surrogate (for example if its code point is in range [0xdc00..0xdfff]); false otherwise. */ @@ -909,7 +909,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \fn bool QChar::isSurrogate() const \since 5.0 - Returns true if the QChar contains a code point that is in either + Returns \c true if the QChar contains a code point that is in either the high or the low part of the UTF-16 surrogate range (for example if its code point is in range [0xd800..0xdfff]); false otherwise. */ @@ -919,7 +919,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is a non-character; false otherwise. Unicode has a certain number of code points that are classified @@ -933,7 +933,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \fn static bool QChar::isHighSurrogate(uint ucs4) \overload - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is the high part of a UTF16 surrogate (for example if its code point is in range [0xd800..0xdbff]); false otherwise. */ @@ -942,7 +942,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \fn static bool QChar::isLowSurrogate(uint ucs4) \overload - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is the low part of a UTF16 surrogate (for example if its code point is in range [0xdc00..0xdfff]); false otherwise. */ @@ -952,7 +952,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 contains a code point that is in either the high or the low part of the UTF-16 surrogate range (for example if its code point is in range [0xd800..0xdfff]); false otherwise. @@ -961,7 +961,7 @@ bool QT_FASTCALL QChar::isLetterOrNumber_helper(uint ucs4) /*! \fn static bool QChar::requiresSurrogates(uint ucs4) - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 can be split into the high and low parts of a UTF16 surrogate (for example if its code point is greater than or equals to 0x10000); false otherwise. @@ -1069,8 +1069,8 @@ QChar::Joining QChar::joining(uint ucs4) /*! \fn bool QChar::hasMirrored() const - Returns true if the character should be reversed if the text - direction is reversed; otherwise returns false. + Returns \c true if the character should be reversed if the text + direction is reversed; otherwise returns \c false. A bit faster equivalent of (ch.mirroredChar() != ch). @@ -1081,8 +1081,8 @@ QChar::Joining QChar::joining(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 - should be reversed if the text direction is reversed; otherwise returns false. + Returns \c true if the UCS-4-encoded character specified by \a ucs4 + should be reversed if the text direction is reversed; otherwise returns \c false. A bit faster equivalent of (QChar::mirroredChar(ucs4) != ucs4). @@ -1098,7 +1098,7 @@ bool QChar::hasMirrored(uint ucs4) /*! \fn bool QChar::isLower() const - Returns true if the character is a lowercase letter, for example + Returns \c true if the character is a lowercase letter, for example category() is Letter_Lowercase. \sa isUpper(), toLower(), toUpper() @@ -1109,7 +1109,7 @@ bool QChar::hasMirrored(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is a lowercase letter, for example category() is Letter_Lowercase. \sa isUpper(), toLower(), toUpper() @@ -1118,7 +1118,7 @@ bool QChar::hasMirrored(uint ucs4) /*! \fn bool QChar::isUpper() const - Returns true if the character is an uppercase letter, for example + Returns \c true if the character is an uppercase letter, for example category() is Letter_Uppercase. \sa isLower(), toUpper(), toLower() @@ -1129,7 +1129,7 @@ bool QChar::hasMirrored(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is an uppercase letter, for example category() is Letter_Uppercase. \sa isLower(), toUpper(), toLower() @@ -1138,7 +1138,7 @@ bool QChar::hasMirrored(uint ucs4) /*! \fn bool QChar::isTitleCase() const - Returns true if the character is a titlecase letter, for example + Returns \c true if the character is a titlecase letter, for example category() is Letter_Titlecase. \sa isLower(), toUpper(), toLower(), toTitleCase() @@ -1149,7 +1149,7 @@ bool QChar::hasMirrored(uint ucs4) \overload \since 5.0 - Returns true if the UCS-4-encoded character specified by \a ucs4 + Returns \c true if the UCS-4-encoded character specified by \a ucs4 is a titlecase letter, for example category() is Letter_Titlecase. \sa isLower(), toUpper(), toLower(), toTitleCase() @@ -1586,8 +1586,8 @@ QDataStream &operator>>(QDataStream &in, QChar &chr) \relates QChar - Returns true if \a c1 and \a c2 are the same Unicode character; - otherwise returns false. + Returns \c true if \a c1 and \a c2 are the same Unicode character; + otherwise returns \c false. */ /*! @@ -1595,8 +1595,8 @@ QDataStream &operator>>(QDataStream &in, QChar &chr) \relates QChar - Returns true if \a c1 and \a c2 are not the same Unicode - character; otherwise returns false. + Returns \c true if \a c1 and \a c2 are not the same Unicode + character; otherwise returns \c false. */ /*! @@ -1604,8 +1604,8 @@ QDataStream &operator>>(QDataStream &in, QChar &chr) \relates QChar - Returns true if the numeric Unicode value of \a c1 is less than - or equal to that of \a c2; otherwise returns false. + Returns \c true if the numeric Unicode value of \a c1 is less than + or equal to that of \a c2; otherwise returns \c false. */ /*! @@ -1613,8 +1613,8 @@ QDataStream &operator>>(QDataStream &in, QChar &chr) \relates QChar - Returns true if the numeric Unicode value of \a c1 is greater than - or equal to that of \a c2; otherwise returns false. + Returns \c true if the numeric Unicode value of \a c1 is greater than + or equal to that of \a c2; otherwise returns \c false. */ /*! @@ -1622,8 +1622,8 @@ QDataStream &operator>>(QDataStream &in, QChar &chr) \relates QChar - Returns true if the numeric Unicode value of \a c1 is less than - that of \a c2; otherwise returns false. + Returns \c true if the numeric Unicode value of \a c1 is less than + that of \a c2; otherwise returns \c false. */ /*! @@ -1631,8 +1631,8 @@ QDataStream &operator>>(QDataStream &in, QChar &chr) \relates QChar - Returns true if the numeric Unicode value of \a c1 is greater than - that of \a c2; otherwise returns false. + Returns \c true if the numeric Unicode value of \a c1 is greater than + that of \a c2; otherwise returns \c false. */ diff --git a/src/corelib/tools/qcollator.cpp b/src/corelib/tools/qcollator.cpp index 7d5915a1cb..a3a9ef940b 100644 --- a/src/corelib/tools/qcollator.cpp +++ b/src/corelib/tools/qcollator.cpp @@ -184,7 +184,7 @@ QLocale QCollator::locale() const /*! \fn bool QCollator::numericMode() const - Returns true if numeric sorting is enabled, false otherwise. + Returns \c true if numeric sorting is enabled, false otherwise. \sa setNumericMode() */ @@ -202,7 +202,7 @@ QLocale QCollator::locale() const /*! \fn bool QCollator::ignorePunctuation() const - Returns true if punctuation characters and symbols are ignored when determining sort order. + Returns \c true if punctuation characters and symbols are ignored when determining sort order. \sa setIgnorePunctuation() */ @@ -303,8 +303,8 @@ QCollatorSortKey& QCollatorSortKey::operator=(const QCollatorSortKey &other) /*! \fn bool QCollatorSortKey::operator<(const QCollatorSortKey &otherKey) const - According to the QCollator that created the key, returns true if the - key should be sorted before than \a otherKey; otherwise returns false. + According to the QCollator that created the key, returns \c true if the + key should be sorted before than \a otherKey; otherwise returns \c false. \sa compare() */ diff --git a/src/corelib/tools/qcommandlineparser.cpp b/src/corelib/tools/qcommandlineparser.cpp index e2e410c059..8054542333 100644 --- a/src/corelib/tools/qcommandlineparser.cpp +++ b/src/corelib/tools/qcommandlineparser.cpp @@ -242,7 +242,7 @@ void QCommandLineParser::setSingleDashWordOptionMode(QCommandLineParser::SingleD /*! Adds the option \a option to look for while parsing. - Returns true if adding the option was successful; otherwise returns false. + Returns \c true if adding the option was successful; otherwise returns \c false. Adding the option fails if there is no name attached to the option, or the option has a name that clashes with an option name added before. @@ -370,7 +370,7 @@ void QCommandLineParser::clearPositionalArguments() Most programs don't need to call this, a simple call to process() is enough. parse() is more low-level, and only does the parsing. The application will have to - take care of the error handling, using errorText() if parse() returns false. + take care of the error handling, using errorText() if parse() returns \c false. This can be useful for instance to show a graphical error message in graphical programs. Calling parse() instead of process() can also be useful in order to ignore unknown @@ -379,7 +379,7 @@ void QCommandLineParser::clearPositionalArguments() Don't forget that \a arguments must start with the name of the executable (ignored, though). - Returns false in case of a parse error (unknown option or missing value); returns true otherwise. + Returns \c false in case of a parse error (unknown option or missing value); returns \c true otherwise. \sa process() */ @@ -390,7 +390,7 @@ bool QCommandLineParser::parse(const QStringList &arguments) /*! Returns a translated error text for the user. - This should only be called when parse() returns false. + This should only be called when parse() returns \c false. */ QString QCommandLineParser::errorText() const { @@ -453,7 +453,7 @@ void QCommandLineParserPrivate::checkParsed(const char *method) /*! \internal Looks up the option \a optionName (found on the command line) and register it as found. - Returns true on success. + Returns \c true on success. */ bool QCommandLineParserPrivate::registerFoundOption(const QString &optionName) { @@ -476,7 +476,7 @@ bool QCommandLineParserPrivate::registerFoundOption(const QString &optionName) \param argument the argument from the command line currently parsed. Only used for -k=value parsing. \param argumentIterator iterator to the currently parsed argument. Incremented if the next argument contains the value. \param argsEnd args.end(), to check if ++argumentIterator goes out of bounds - Returns true on success. + Returns \c true on success. */ bool QCommandLineParserPrivate::parseOptionValue(const QString &optionName, const QString &argument, QStringList::const_iterator *argumentIterator, QStringList::const_iterator argsEnd) @@ -620,7 +620,7 @@ bool QCommandLineParserPrivate::parse(const QStringList &args) /*! Checks whether the option \a name was passed to the application. - Returns true if the option \a name was set, false otherwise. + Returns \c true if the option \a name was set, false otherwise. The name provided can be any long or short name of any option that was added with \c addOption(). All the options names are treated as being @@ -711,7 +711,7 @@ QStringList QCommandLineParser::values(const QString &optionName) const \overload Checks whether the \a option was passed to the application. - Returns true if the \a option was set, false otherwise. + Returns \c true if the \a option was set, false otherwise. This is the recommended way to check for options with no values. diff --git a/src/corelib/tools/qcontiguouscache.cpp b/src/corelib/tools/qcontiguouscache.cpp index 6ccdb7b771..e284ce1e5d 100644 --- a/src/corelib/tools/qcontiguouscache.cpp +++ b/src/corelib/tools/qcontiguouscache.cpp @@ -219,7 +219,7 @@ MyRecord record(int row) const /*! \fn bool QContiguousCache::operator==(const QContiguousCache &other) const - Returns true if \a other is equal to this cache; otherwise returns false. + Returns \c true if \a other is equal to this cache; otherwise returns \c false. Two caches are considered equal if they contain the same values at the same indexes. This function requires the value type to implement the \c operator==(). @@ -229,8 +229,8 @@ MyRecord record(int row) const /*! \fn bool QContiguousCache::operator!=(const QContiguousCache &other) const - Returns true if \a other is not equal to this cache; otherwise - returns false. + Returns \c true if \a other is not equal to this cache; otherwise + returns \c false. Two caches are considered equal if they contain the same values at the same indexes. This function requires the value type to implement the \c operator==(). @@ -261,14 +261,14 @@ MyRecord record(int row) const /*! \fn bool QContiguousCache::isEmpty() const - Returns true if no items are stored within the cache. + Returns \c true if no items are stored within the cache. \sa size(), capacity() */ /*! \fn bool QContiguousCache::isFull() const - Returns true if the number of items stored within the cache is equal + Returns \c true if the number of items stored within the cache is equal to the capacity of the cache. \sa size(), capacity() @@ -373,7 +373,7 @@ MyRecord record(int row) const /*! \fn bool QContiguousCache::containsIndex(int i) const - Returns true if the cache's index range includes the given index \a i. + Returns \c true if the cache's index range includes the given index \a i. \sa firstIndex(), lastIndex() */ diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index f4f465a623..c425ee7e09 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -326,7 +326,7 @@ void QCryptographicHash::addData(const QByteArray &data) /*! Reads the data from the open QIODevice \a device until it ends - and hashes it. Returns true if reading was successful. + and hashes it. Returns \c true if reading was successful. \since 5.0 */ bool QCryptographicHash::addData(QIODevice* device) diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 4839560c51..9ddb96b424 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -383,7 +383,7 @@ static int fromOffsetString(const QString &offsetString, bool *valid) Constructs a date with year \a y, month \a m and day \a d. If the specified date is invalid, the date is not set and - isValid() returns false. + isValid() returns \c false. \warning Years 1 to 99 are interpreted as is. Year 0 is invalid. @@ -399,7 +399,7 @@ QDate::QDate(int y, int m, int d) /*! \fn bool QDate::isNull() const - Returns true if the date is null; otherwise returns false. A null + Returns \c true if the date is null; otherwise returns \c false. A null date is invalid. \note The behavior of this function is equivalent to isValid(). @@ -411,7 +411,7 @@ QDate::QDate(int y, int m, int d) /*! \fn bool QDate::isValid() const - Returns true if this date is valid; otherwise returns false. + Returns \c true if this date is valid; otherwise returns \c false. \sa isNull() */ @@ -983,8 +983,8 @@ QString QDate::toString(const QString& format) const /*! \since 4.2 - Sets the date's \a year, \a month, and \a day. Returns true if - the date is valid; otherwise returns false. + Sets the date's \a year, \a month, and \a day. Returns \c true if + the date is valid; otherwise returns \c false. If the specified date is invalid, the QDate object is set to be invalid. @@ -1162,7 +1162,7 @@ qint64 QDate::daysTo(const QDate &d) const /*! \fn bool QDate::operator==(const QDate &d) const - Returns true if this date is equal to \a d; otherwise returns + Returns \c true if this date is equal to \a d; otherwise returns false. */ @@ -1170,36 +1170,36 @@ qint64 QDate::daysTo(const QDate &d) const /*! \fn bool QDate::operator!=(const QDate &d) const - Returns true if this date is different from \a d; otherwise - returns false. + Returns \c true if this date is different from \a d; otherwise + returns \c false. */ /*! \fn bool QDate::operator<(const QDate &d) const - Returns true if this date is earlier than \a d; otherwise returns + Returns \c true if this date is earlier than \a d; otherwise returns false. */ /*! \fn bool QDate::operator<=(const QDate &d) const - Returns true if this date is earlier than or equal to \a d; - otherwise returns false. + Returns \c true if this date is earlier than or equal to \a d; + otherwise returns \c false. */ /*! \fn bool QDate::operator>(const QDate &d) const - Returns true if this date is later than \a d; otherwise returns + Returns \c true if this date is later than \a d; otherwise returns false. */ /*! \fn bool QDate::operator>=(const QDate &d) const - Returns true if this date is later than or equal to \a d; - otherwise returns false. + Returns \c true if this date is later than or equal to \a d; + otherwise returns \c false. */ /*! @@ -1373,8 +1373,8 @@ QDate QDate::fromString(const QString &string, const QString &format) /*! \overload - Returns true if the specified date (\a year, \a month, and \a - day) is valid; otherwise returns false. + Returns \c true if the specified date (\a year, \a month, and \a + day) is valid; otherwise returns \c false. Example: \snippet code/src_corelib_tools_qdatetime.cpp 4 @@ -1395,8 +1395,8 @@ bool QDate::isValid(int year, int month, int day) /*! \fn bool QDate::isLeapYear(int year) - Returns true if the specified \a year is a leap year; otherwise - returns false. + Returns \c true if the specified \a year is a leap year; otherwise + returns \c false. */ bool QDate::isLeapYear(int y) @@ -1475,8 +1475,8 @@ bool QDate::isLeapYear(int y) \fn QTime::QTime() Constructs a null time object. A null time can be a QTime(0, 0, 0, 0) - (i.e., midnight) object, except that isNull() returns true and isValid() - returns false. + (i.e., midnight) object, except that isNull() returns \c true and isValid() + returns \c false. \sa isNull(), isValid() */ @@ -1500,7 +1500,7 @@ QTime::QTime(int h, int m, int s, int ms) /*! \fn bool QTime::isNull() const - Returns true if the time is null (i.e., the QTime object was + Returns \c true if the time is null (i.e., the QTime object was constructed using the default constructor); otherwise returns false. A null time is also an invalid time. @@ -1508,7 +1508,7 @@ QTime::QTime(int h, int m, int s, int ms) */ /*! - Returns true if the time is valid; otherwise returns false. For example, + Returns \c true if the time is valid; otherwise returns \c false. For example, the time 23:30:55.746 is valid, but 24:12:30 is invalid. \sa isNull() @@ -1709,7 +1709,7 @@ QString QTime::toString(const QString& format) const \a h must be in the range 0 to 23, \a m and \a s must be in the range 0 to 59, and \a ms must be in the range 0 to 999. - Returns true if the set time is valid; otherwise returns false. + Returns \c true if the set time is valid; otherwise returns \c false. \sa isValid() */ @@ -1835,39 +1835,39 @@ int QTime::msecsTo(const QTime &t) const /*! \fn bool QTime::operator==(const QTime &t) const - Returns true if this time is equal to \a t; otherwise returns false. + Returns \c true if this time is equal to \a t; otherwise returns \c false. */ /*! \fn bool QTime::operator!=(const QTime &t) const - Returns true if this time is different from \a t; otherwise returns false. + Returns \c true if this time is different from \a t; otherwise returns \c false. */ /*! \fn bool QTime::operator<(const QTime &t) const - Returns true if this time is earlier than \a t; otherwise returns false. + Returns \c true if this time is earlier than \a t; otherwise returns \c false. */ /*! \fn bool QTime::operator<=(const QTime &t) const - Returns true if this time is earlier than or equal to \a t; - otherwise returns false. + Returns \c true if this time is earlier than or equal to \a t; + otherwise returns \c false. */ /*! \fn bool QTime::operator>(const QTime &t) const - Returns true if this time is later than \a t; otherwise returns false. + Returns \c true if this time is later than \a t; otherwise returns \c false. */ /*! \fn bool QTime::operator>=(const QTime &t) const - Returns true if this time is later than or equal to \a t; - otherwise returns false. + Returns \c true if this time is later than or equal to \a t; + otherwise returns \c false. */ /*! @@ -2074,7 +2074,7 @@ QTime QTime::fromString(const QString &string, const QString &format) /*! \overload - Returns true if the specified time is valid; otherwise returns + Returns \c true if the specified time is valid; otherwise returns false. The time is valid if \a h is in the range 0 to 23, \a m and @@ -3060,8 +3060,8 @@ QDateTime &QDateTime::operator=(const QDateTime &other) */ /*! - Returns true if both the date and the time are null; otherwise - returns false. A null datetime is invalid. + Returns \c true if both the date and the time are null; otherwise + returns \c false. A null datetime is invalid. \sa QDate::isNull(), QTime::isNull(), isValid() */ @@ -3072,8 +3072,8 @@ bool QDateTime::isNull() const } /*! - Returns true if both the date and the time are valid and they are valid in - the current Qt::TimeSpec, otherwise returns false. + Returns \c true if both the date and the time are valid and they are valid in + the current Qt::TimeSpec, otherwise returns \c false. If the timeSpec() is Qt::LocalTime or Qt::TimeZone then the date and time are checked to see if they fall in the Standard Time to Daylight Time transition @@ -3958,8 +3958,8 @@ QDateTime QDateTime::toTimeZone(const QTimeZone &timeZone) const #endif // QT_BOOTSTRAPPED /*! - Returns true if this datetime is equal to the \a other datetime; - otherwise returns false. + Returns \c true if this datetime is equal to the \a other datetime; + otherwise returns \c false. \sa operator!=() */ @@ -3978,8 +3978,8 @@ bool QDateTime::operator==(const QDateTime &other) const /*! \fn bool QDateTime::operator!=(const QDateTime &other) const - Returns true if this datetime is different from the \a other - datetime; otherwise returns false. + Returns \c true if this datetime is different from the \a other + datetime; otherwise returns \c false. Two datetimes are different if either the date, the time, or the time zone components are different. @@ -3988,8 +3988,8 @@ bool QDateTime::operator==(const QDateTime &other) const */ /*! - Returns true if this datetime is earlier than the \a other - datetime; otherwise returns false. + Returns \c true if this datetime is earlier than the \a other + datetime; otherwise returns \c false. */ bool QDateTime::operator<(const QDateTime &other) const @@ -4006,22 +4006,22 @@ bool QDateTime::operator<(const QDateTime &other) const /*! \fn bool QDateTime::operator<=(const QDateTime &other) const - Returns true if this datetime is earlier than or equal to the - \a other datetime; otherwise returns false. + Returns \c true if this datetime is earlier than or equal to the + \a other datetime; otherwise returns \c false. */ /*! \fn bool QDateTime::operator>(const QDateTime &other) const - Returns true if this datetime is later than the \a other datetime; - otherwise returns false. + Returns \c true if this datetime is later than the \a other datetime; + otherwise returns \c false. */ /*! \fn bool QDateTime::operator>=(const QDateTime &other) const - Returns true if this datetime is later than or equal to the - \a other datetime; otherwise returns false. + Returns \c true if this datetime is later than or equal to the + \a other datetime; otherwise returns \c false. */ /*! diff --git a/src/corelib/tools/qdatetimeparser.cpp b/src/corelib/tools/qdatetimeparser.cpp index 5da0305a69..fb5c5f5943 100644 --- a/src/corelib/tools/qdatetimeparser.cpp +++ b/src/corelib/tools/qdatetimeparser.cpp @@ -340,8 +340,8 @@ static QString unquote(const QString &str) /*! \internal - Parses the format \a newFormat. If successful, returns true and - sets up the format. Else keeps the old format and returns false. + Parses the format \a newFormat. If successful, returns \c true and + sets up the format. Else keeps the old format and returns \c false. */ @@ -1587,7 +1587,7 @@ QString QDateTimeParser::sectionFormat(Section s, int count) const /*! \internal - Returns true if str can be modified to represent a + Returns \c true if str can be modified to represent a number that is within min and max. */ diff --git a/src/corelib/tools/qeasingcurve.cpp b/src/corelib/tools/qeasingcurve.cpp index fc9a1ca867..5daf067c71 100644 --- a/src/corelib/tools/qeasingcurve.cpp +++ b/src/corelib/tools/qeasingcurve.cpp @@ -1123,7 +1123,7 @@ QEasingCurve::~QEasingCurve() */ /*! - Compare this easing curve with \a other and returns true if they are + Compare this easing curve with \a other and returns \c true if they are equal. It will also compare the properties of a curve. */ bool QEasingCurve::operator==(const QEasingCurve &other) const @@ -1147,7 +1147,7 @@ bool QEasingCurve::operator==(const QEasingCurve &other) const /*! \fn bool QEasingCurve::operator!=(const QEasingCurve &other) const - Compare this easing curve with \a other and returns true if they are not equal. + Compare this easing curve with \a other and returns \c true if they are not equal. It will also compare the properties of a curve. \sa operator==() diff --git a/src/corelib/tools/qelapsedtimer.cpp b/src/corelib/tools/qelapsedtimer.cpp index bdca60757f..1da85fce96 100644 --- a/src/corelib/tools/qelapsedtimer.cpp +++ b/src/corelib/tools/qelapsedtimer.cpp @@ -204,13 +204,13 @@ QT_BEGIN_NAMESPACE /*! \fn bool QElapsedTimer::operator ==(const QElapsedTimer &other) const - Returns true if this object and \a other contain the same time. + Returns \c true if this object and \a other contain the same time. */ /*! \fn bool QElapsedTimer::operator !=(const QElapsedTimer &other) const - Returns true if this object and \a other contain different times. + Returns \c true if this object and \a other contain different times. */ static const qint64 invalidData = Q_INT64_C(0x8000000000000000); @@ -230,7 +230,7 @@ void QElapsedTimer::invalidate() Q_DECL_NOTHROW } /*! - Returns false if this object was invalidated by a call to invalidate() and + Returns \c false if this object was invalidated by a call to invalidate() and has not been restarted since. \sa invalidate(), start(), restart() @@ -241,7 +241,7 @@ bool QElapsedTimer::isValid() const Q_DECL_NOTHROW } /*! - Returns true if this QElapsedTimer has already expired by \a timeout + Returns \c true if this QElapsedTimer has already expired by \a timeout milliseconds (that is, more than \a timeout milliseconds have elapsed). The value of \a timeout can be -1 to indicate that this timer does not expire, in which case this function will always return false. diff --git a/src/corelib/tools/qelapsedtimer_generic.cpp b/src/corelib/tools/qelapsedtimer_generic.cpp index 51e500fe8d..6324be00c0 100644 --- a/src/corelib/tools/qelapsedtimer_generic.cpp +++ b/src/corelib/tools/qelapsedtimer_generic.cpp @@ -55,7 +55,7 @@ QElapsedTimer::ClockType QElapsedTimer::clockType() Q_DECL_NOTHROW } /*! - Returns true if this is a monotonic clock, false otherwise. See the + Returns \c true if this is a monotonic clock, false otherwise. See the information on the different clock types to understand which ones are monotonic. @@ -180,7 +180,7 @@ qint64 QElapsedTimer::secsTo(const QElapsedTimer &other) const Q_DECL_NOTHROW /*! \relates QElapsedTimer - Returns true if \a v1 was started before \a v2, false otherwise. + Returns \c true if \a v1 was started before \a v2, false otherwise. The returned value is undefined if one of the two parameters is invalid and the other isn't. However, two invalid timers are equal and thus this diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index b6257c8907..7f6feaf8a0 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -1007,7 +1007,7 @@ void QHashData::checkSanity() /*! \fn bool QHash::operator==(const QHash &other) const - Returns true if \a other is equal to this hash; otherwise returns + Returns \c true if \a other is equal to this hash; otherwise returns false. Two hashes are considered equal if they contain the same (key, @@ -1020,8 +1020,8 @@ void QHashData::checkSanity() /*! \fn bool QHash::operator!=(const QHash &other) const - Returns true if \a other is not equal to this hash; otherwise - returns false. + Returns \c true if \a other is not equal to this hash; otherwise + returns \c false. Two hashes are considered equal if they contain the same (key, value) pairs. @@ -1040,7 +1040,7 @@ void QHashData::checkSanity() /*! \fn bool QHash::isEmpty() const - Returns true if the hash contains no items; otherwise returns + Returns \c true if the hash contains no items; otherwise returns false. \sa size() @@ -1107,8 +1107,8 @@ void QHashData::checkSanity() \internal - Returns true if the hash's internal data isn't shared with any - other hash object; otherwise returns false. + Returns \c true if the hash's internal data isn't shared with any + other hash object; otherwise returns \c false. \sa detach() */ @@ -1157,8 +1157,8 @@ void QHashData::checkSanity() /*! \fn bool QHash::contains(const Key &key) const - Returns true if the hash contains an item with the \a key; - otherwise returns false. + Returns \c true if the hash contains an item with the \a key; + otherwise returns \c false. \sa count(), QMultiHash::contains() */ @@ -1453,7 +1453,7 @@ void QHashData::checkSanity() This function is provided for STL compatibility. It is equivalent to isEmpty(), returning true if the hash is empty; otherwise - returns false. + returns \c false. */ /*! \typedef QHash::ConstIterator @@ -1656,8 +1656,8 @@ void QHashData::checkSanity() \fn bool QHash::iterator::operator==(const iterator &other) const \fn bool QHash::iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -1666,8 +1666,8 @@ void QHashData::checkSanity() \fn bool QHash::iterator::operator!=(const iterator &other) const \fn bool QHash::iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -1847,16 +1847,16 @@ void QHashData::checkSanity() /*! \fn bool QHash::const_iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ /*! \fn bool QHash::const_iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -2089,8 +2089,8 @@ void QHashData::checkSanity() \fn bool QMultiHash::contains(const Key &key, const T &value) const \since 4.3 - Returns true if the hash contains an item with the \a key and - \a value; otherwise returns false. + Returns \c true if the hash contains an item with the \a key and + \a value; otherwise returns \c false. \sa QHash::contains() */ diff --git a/src/corelib/tools/qiterator.qdoc b/src/corelib/tools/qiterator.qdoc index 25914967a9..1ae9c58daa 100644 --- a/src/corelib/tools/qiterator.qdoc +++ b/src/corelib/tools/qiterator.qdoc @@ -580,9 +580,9 @@ \fn bool QMutableVectorIterator::hasNext() const \fn bool QMutableSetIterator::hasNext() const - Returns true if there is at least one item ahead of the iterator, + Returns \c true if there is at least one item ahead of the iterator, i.e. the iterator is \e not at the back of the container; - otherwise returns false. + otherwise returns \c false. \sa hasPrevious(), next() */ @@ -649,9 +649,9 @@ \fn bool QMutableVectorIterator::hasPrevious() const \fn bool QMutableSetIterator::hasPrevious() const - Returns true if there is at least one item behind the iterator, + Returns \c true if there is at least one item behind the iterator, i.e. the iterator is \e not at the front of the container; - otherwise returns false. + otherwise returns \c false. \sa hasNext(), previous() */ @@ -720,7 +720,7 @@ \fn bool QMutableSetIterator::findNext(const T &value) Searches for \a value starting from the current iterator position - forward. Returns true if \a value is found; otherwise returns false. + forward. Returns \c true if \a value is found; otherwise returns \c false. After the call, if \a value was found, the iterator is positioned just after the matching item; otherwise, the iterator is @@ -739,7 +739,7 @@ \fn bool QMutableSetIterator::findPrevious(const T &value) Searches for \a value starting from the current iterator position - backward. Returns true if \a value is found; otherwise returns + backward. Returns \c true if \a value is found; otherwise returns false. After the call, if \a value was found, the iterator is positioned @@ -1175,9 +1175,9 @@ \fn bool QMutableMapIterator::hasNext() const \fn bool QMutableHashIterator::hasNext() const - Returns true if there is at least one item ahead of the iterator, + Returns \c true if there is at least one item ahead of the iterator, i.e. the iterator is \e not at the back of the container; - otherwise returns false. + otherwise returns \c false. \sa hasPrevious(), next() */ @@ -1243,9 +1243,9 @@ \fn bool QMutableMapIterator::hasPrevious() const \fn bool QMutableHashIterator::hasPrevious() const - Returns true if there is at least one item behind the iterator, + Returns \c true if there is at least one item behind the iterator, i.e. the iterator is \e not at the front of the container; - otherwise returns false. + otherwise returns \c false. \sa hasNext(), previous() */ @@ -1369,8 +1369,8 @@ \fn bool QMutableHashIterator::findNext(const T &value) Searches for \a value starting from the current iterator position - forward. Returns true if a (key, value) pair with value \a value - is found; otherwise returns false. + forward. Returns \c true if a (key, value) pair with value \a value + is found; otherwise returns \c false. After the call, if \a value was found, the iterator is positioned just after the matching item; otherwise, the iterator is @@ -1385,8 +1385,8 @@ \fn bool QMutableHashIterator::findPrevious(const T &value) Searches for \a value starting from the current iterator position - backward. Returns true if a (key, value) pair with value \a value - is found; otherwise returns false. + backward. Returns \c true if a (key, value) pair with value \a value + is found; otherwise returns \c false. After the call, if \a value was found, the iterator is positioned just before the matching item; otherwise, the iterator is diff --git a/src/corelib/tools/qline.cpp b/src/corelib/tools/qline.cpp index 3fb958fae6..990e6bef09 100644 --- a/src/corelib/tools/qline.cpp +++ b/src/corelib/tools/qline.cpp @@ -101,8 +101,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QLine::isNull() const - Returns true if the line is not set up with valid start and end point; - otherwise returns false. + Returns \c true if the line is not set up with valid start and end point; + otherwise returns \c false. */ /*! @@ -172,7 +172,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QLine::operator!=(const QLine &line) const - Returns true if the given \a line is not the same as \e this line. + Returns \c true if the given \a line is not the same as \e this line. A line is different from another line if any of their start or end points differ, or the internal order of the points is different. @@ -181,7 +181,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QLine::operator==(const QLine &line) const - Returns true if the given \a line is the same as \e this line. + Returns \c true if the given \a line is the same as \e this line. A line is identical to another line if the start and end points are identical, and the internal order of the points is the same. @@ -416,8 +416,8 @@ QDataStream &operator>>(QDataStream &stream, QLine &line) /*! \fn bool QLineF::isNull() const - Returns true if the line is not set up with valid start and end point; - otherwise returns false. + Returns \c true if the line is not set up with valid start and end point; + otherwise returns \c false. */ /*! @@ -520,7 +520,7 @@ QDataStream &operator>>(QDataStream &stream, QLine &line) /*! \fn bool QLineF::operator!=(const QLineF &line) const - Returns true if the given \a line is not the same as \e this line. + Returns \c true if the given \a line is not the same as \e this line. A line is different from another line if their start or end points differ, or the internal order of the points is different. @@ -529,7 +529,7 @@ QDataStream &operator>>(QDataStream &stream, QLine &line) /*! \fn bool QLineF::operator==(const QLineF &line) const - Returns true if the given \a line is the same as this line. + Returns \c true if the given \a line is the same as this line. A line is identical to another line if the start and end points are identical, and the internal order of the points is the same. diff --git a/src/corelib/tools/qlinkedlist.cpp b/src/corelib/tools/qlinkedlist.cpp index c6e79c02a3..28319f3fda 100644 --- a/src/corelib/tools/qlinkedlist.cpp +++ b/src/corelib/tools/qlinkedlist.cpp @@ -176,7 +176,7 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::operator==(const QLinkedList &other) const - Returns true if \a other is equal to this list; otherwise returns + Returns \c true if \a other is equal to this list; otherwise returns false. Two lists are considered equal if they contain the same values in @@ -190,8 +190,8 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::operator!=(const QLinkedList &other) const - Returns true if \a other is not equal to this list; otherwise - returns false. + Returns \c true if \a other is not equal to this list; otherwise + returns \c false. Two lists are considered equal if they contain the same values in the same order. @@ -231,7 +231,7 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::isEmpty() const - Returns true if the list contains no items; otherwise returns + Returns \c true if the list contains no items; otherwise returns false. \sa size() @@ -285,8 +285,8 @@ const QLinkedListData QLinkedListData::shared_null = { \fn bool QLinkedList::removeOne(const T &value) \since 4.4 - Removes the first occurrences of \a value in the list. Returns true on - success; otherwise returns false. + Removes the first occurrences of \a value in the list. Returns \c true on + success; otherwise returns \c false. Example: \snippet code/src_corelib_tools_qlinkedlist.cpp 6 @@ -299,8 +299,8 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::contains(const T &value) const - Returns true if the list contains an occurrence of \a value; - otherwise returns false. + Returns \c true if the list contains an occurrence of \a value; + otherwise returns \c false. This function requires the value type to have an implementation of \c operator==(). @@ -321,8 +321,8 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::startsWith(const T &value) const \since 4.5 - Returns true if the list is not empty and its first - item is equal to \a value; otherwise returns false. + Returns \c true if the list is not empty and its first + item is equal to \a value; otherwise returns \c false. \sa isEmpty(), first() */ @@ -330,8 +330,8 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::endsWith(const T &value) const \since 4.5 - Returns true if the list is not empty and its last - item is equal to \a value; otherwise returns false. + Returns \c true if the list is not empty and its last + item is equal to \a value; otherwise returns \c false. \sa isEmpty(), last() */ @@ -589,7 +589,7 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::empty() const This function is provided for STL compatibility. It is equivalent - to isEmpty() and returns true if the list is empty. + to isEmpty() and returns \c true if the list is empty. */ /*! \fn QLinkedList &QLinkedList::operator+=(const QLinkedList &other) @@ -780,8 +780,8 @@ const QLinkedListData QLinkedListData::shared_null = { \fn bool QLinkedList::iterator::operator==(const iterator &other) const \fn bool QLinkedList::iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -790,8 +790,8 @@ const QLinkedListData QLinkedListData::shared_null = { \fn bool QLinkedList::iterator::operator!=(const iterator &other) const \fn bool QLinkedList::iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -986,16 +986,16 @@ const QLinkedListData QLinkedListData::shared_null = { /*! \fn bool QLinkedList::const_iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ /*! \fn bool QLinkedList::const_iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index 4770054d79..5bced19404 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -553,7 +553,7 @@ void **QListData::erase(void **xi) /*! \fn bool QList::operator==(const QList &other) const - Returns true if \a other is equal to this list; otherwise returns + Returns \c true if \a other is equal to this list; otherwise returns false. Two lists are considered equal if they contain the same values in @@ -567,8 +567,8 @@ void **QListData::erase(void **xi) /*! \fn bool QList::operator!=(const QList &other) const - Returns true if \a other is not equal to this list; otherwise - returns false. + Returns \c true if \a other is not equal to this list; otherwise + returns \c false. Two lists are considered equal if they contain the same values in the same order. @@ -618,7 +618,7 @@ void **QListData::erase(void **xi) /*! \fn bool QList::isEmpty() const - Returns true if the list contains no items; otherwise returns + Returns \c true if the list contains no items; otherwise returns false. \sa size() @@ -767,7 +767,7 @@ void **QListData::erase(void **xi) \since 4.4 Removes the first occurrence of \a value in the list and returns - true on success; otherwise returns false. + true on success; otherwise returns \c false. Example: \snippet code/src_corelib_tools_qlistdata.cpp 10 @@ -894,8 +894,8 @@ void **QListData::erase(void **xi) /*! \fn bool QList::contains(const T &value) const - Returns true if the list contains an occurrence of \a value; - otherwise returns false. + Returns \c true if the list contains an occurrence of \a value; + otherwise returns \c false. This function requires the value type to have an implementation of \c operator==(). @@ -916,8 +916,8 @@ void **QListData::erase(void **xi) /*! \fn bool QList::startsWith(const T &value) const \since 4.5 - Returns true if this list is not empty and its first - item is equal to \a value; otherwise returns false. + Returns \c true if this list is not empty and its first + item is equal to \a value; otherwise returns \c false. \sa isEmpty(), contains() */ @@ -925,8 +925,8 @@ void **QListData::erase(void **xi) /*! \fn bool QList::endsWith(const T &value) const \since 4.5 - Returns true if this list is not empty and its last - item is equal to \a value; otherwise returns false. + Returns \c true if this list is not empty and its last + item is equal to \a value; otherwise returns \c false. \sa isEmpty(), contains() */ @@ -1196,7 +1196,7 @@ void **QListData::erase(void **xi) /*! \fn bool QList::empty() const This function is provided for STL compatibility. It is equivalent - to isEmpty() and returns true if the list is empty. + to isEmpty() and returns \c true if the list is empty. */ /*! \fn QList &QList::operator+=(const QList &other) @@ -1372,8 +1372,8 @@ void **QListData::erase(void **xi) \fn bool QList::iterator::operator==(const iterator &other) const \fn bool QList::iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -1382,8 +1382,8 @@ void **QListData::erase(void **xi) \fn bool QList::iterator::operator!=(const iterator &other) const \fn bool QList::iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -1392,7 +1392,7 @@ void **QListData::erase(void **xi) \fn bool QList::iterator::operator<(const iterator& other) const \fn bool QList::iterator::operator<(const const_iterator& other) const - Returns true if the item pointed to by this iterator is less than + Returns \c true if the item pointed to by this iterator is less than the item pointed to by the \a other iterator. */ @@ -1400,7 +1400,7 @@ void **QListData::erase(void **xi) \fn bool QList::iterator::operator<=(const iterator& other) const \fn bool QList::iterator::operator<=(const const_iterator& other) const - Returns true if the item pointed to by this iterator is less than + Returns \c true if the item pointed to by this iterator is less than or equal to the item pointed to by the \a other iterator. */ @@ -1408,7 +1408,7 @@ void **QListData::erase(void **xi) \fn bool QList::iterator::operator>(const iterator& other) const \fn bool QList::iterator::operator>(const const_iterator& other) const - Returns true if the item pointed to by this iterator is greater + Returns \c true if the item pointed to by this iterator is greater than the item pointed to by the \a other iterator. */ @@ -1416,7 +1416,7 @@ void **QListData::erase(void **xi) \fn bool QList::iterator::operator>=(const iterator& other) const \fn bool QList::iterator::operator>=(const const_iterator& other) const - Returns true if the item pointed to by this iterator is greater + Returns \c true if the item pointed to by this iterator is greater than or equal to the item pointed to by the \a other iterator. */ @@ -1619,16 +1619,16 @@ void **QListData::erase(void **xi) /*! \fn bool QList::const_iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ /*! \fn bool QList::const_iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -1636,28 +1636,28 @@ void **QListData::erase(void **xi) /*! \fn bool QList::const_iterator::operator<(const const_iterator& other) const - Returns true if the item pointed to by this iterator is less than + Returns \c true if the item pointed to by this iterator is less than the item pointed to by the \a other iterator. */ /*! \fn bool QList::const_iterator::operator<=(const const_iterator& other) const - Returns true if the item pointed to by this iterator is less than + Returns \c true if the item pointed to by this iterator is less than or equal to the item pointed to by the \a other iterator. */ /*! \fn bool QList::const_iterator::operator>(const const_iterator& other) const - Returns true if the item pointed to by this iterator is greater + Returns \c true if the item pointed to by this iterator is greater than the item pointed to by the \a other iterator. */ /*! \fn bool QList::const_iterator::operator>=(const const_iterator& other) const - Returns true if the item pointed to by this iterator is greater + Returns \c true if the item pointed to by this iterator is greater than or equal to the item pointed to by the \a other iterator. */ diff --git a/src/corelib/tools/qlocale.qdoc b/src/corelib/tools/qlocale.qdoc index a3b38c41f4..aceb130857 100644 --- a/src/corelib/tools/qlocale.qdoc +++ b/src/corelib/tools/qlocale.qdoc @@ -907,15 +907,15 @@ /*! \fn bool QLocale::operator==(const QLocale &other) const - Returns true if the QLocale object is the same as the \a other - locale specified; otherwise returns false. + Returns \c true if the QLocale object is the same as the \a other + locale specified; otherwise returns \c false. */ /*! \fn bool QLocale::operator!=(const QLocale &other) const - Returns true if the QLocale object is not the same as the \a other - locale specified; otherwise returns false. + Returns \c true if the QLocale object is not the same as the \a other + locale specified; otherwise returns \c false. */ /*! diff --git a/src/corelib/tools/qmap.cpp b/src/corelib/tools/qmap.cpp index 01a6a22631..ab9b1d23ab 100644 --- a/src/corelib/tools/qmap.cpp +++ b/src/corelib/tools/qmap.cpp @@ -600,7 +600,7 @@ void QMapDataBase::freeData(QMapDataBase *d) /*! \fn bool QMap::operator==(const QMap &other) const - Returns true if \a other is equal to this map; otherwise returns + Returns \c true if \a other is equal to this map; otherwise returns false. Two maps are considered equal if they contain the same (key, @@ -614,8 +614,8 @@ void QMapDataBase::freeData(QMapDataBase *d) /*! \fn bool QMap::operator!=(const QMap &other) const - Returns true if \a other is not equal to this map; otherwise - returns false. + Returns \c true if \a other is not equal to this map; otherwise + returns \c false. Two maps are considered equal if they contain the same (key, value) pairs. @@ -636,7 +636,7 @@ void QMapDataBase::freeData(QMapDataBase *d) /*! \fn bool QMap::isEmpty() const - Returns true if the map contains no items; otherwise returns + Returns \c true if the map contains no items; otherwise returns false. \sa size() @@ -656,8 +656,8 @@ void QMapDataBase::freeData(QMapDataBase *d) \internal - Returns true if the map's internal data isn't shared with any - other map object; otherwise returns false. + Returns \c true if the map's internal data isn't shared with any + other map object; otherwise returns \c false. \sa detach() */ @@ -706,8 +706,8 @@ void QMapDataBase::freeData(QMapDataBase *d) /*! \fn bool QMap::contains(const Key &key) const - Returns true if the map contains an item with key \a key; - otherwise returns false. + Returns \c true if the map contains an item with key \a key; + otherwise returns \c false. \sa count(), QMultiMap::contains() */ @@ -1303,8 +1303,8 @@ void QMapDataBase::freeData(QMapDataBase *d) \fn bool QMap::iterator::operator==(const iterator &other) const \fn bool QMap::iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -1313,8 +1313,8 @@ void QMapDataBase::freeData(QMapDataBase *d) \fn bool QMap::iterator::operator!=(const iterator &other) const \fn bool QMap::iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -1515,16 +1515,16 @@ void QMapDataBase::freeData(QMapDataBase *d) /*! \fn bool QMap::const_iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ /*! \fn bool QMap::const_iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ @@ -1772,8 +1772,8 @@ void QMapDataBase::freeData(QMapDataBase *d) \fn bool QMultiMap::contains(const Key &key, const T &value) const \since 4.3 - Returns true if the map contains an item with key \a key and - value \a value; otherwise returns false. + Returns \c true if the map contains an item with key \a key and + value \a value; otherwise returns \c false. \sa QMap::contains() */ diff --git a/src/corelib/tools/qmargins.cpp b/src/corelib/tools/qmargins.cpp index 2cdc3f3f03..c5bd8468bc 100644 --- a/src/corelib/tools/qmargins.cpp +++ b/src/corelib/tools/qmargins.cpp @@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE QMargin defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle. - The isNull() function returns true only if all margins are set to zero. + The isNull() function returns \c true only if all margins are set to zero. QMargin objects can be streamed as well as compared. */ @@ -85,7 +85,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QMargins::isNull() const - Returns true if all margins are is 0; otherwise returns + Returns \c true if all margins are is 0; otherwise returns false. */ @@ -147,14 +147,14 @@ QT_BEGIN_NAMESPACE \fn bool operator==(const QMargins &m1, const QMargins &m2) \relates QMargins - Returns true if \a m1 and \a m2 are equal; otherwise returns false. + Returns \c true if \a m1 and \a m2 are equal; otherwise returns \c false. */ /*! \fn bool operator!=(const QMargins &m1, const QMargins &m2) \relates QMargins - Returns true if \a m1 and \a m2 are different; otherwise returns false. + Returns \c true if \a m1 and \a m2 are different; otherwise returns \c false. */ /*! diff --git a/src/corelib/tools/qmessageauthenticationcode.cpp b/src/corelib/tools/qmessageauthenticationcode.cpp index becaaaa704..2eeebed6cd 100644 --- a/src/corelib/tools/qmessageauthenticationcode.cpp +++ b/src/corelib/tools/qmessageauthenticationcode.cpp @@ -227,7 +227,7 @@ void QMessageAuthenticationCode::addData(const QByteArray &data) /*! Reads the data from the open QIODevice \a device until it ends - and adds it to message. Returns true if reading was successful. + and adds it to message. Returns \c true if reading was successful. \note \a device must be already opened. */ diff --git a/src/corelib/tools/qpair.qdoc b/src/corelib/tools/qpair.qdoc index dd3df8c464..be329a0df0 100644 --- a/src/corelib/tools/qpair.qdoc +++ b/src/corelib/tools/qpair.qdoc @@ -120,7 +120,7 @@ \relates QPair - Returns true if \a p1 is equal to \a p2; otherwise returns false. + Returns \c true if \a p1 is equal to \a p2; otherwise returns \c false. Two pairs compare equal if their \c first data members compare equal and if their \c second data members compare equal. @@ -132,7 +132,7 @@ \relates QPair - Returns true if \a p1 is not equal to \a p2; otherwise returns + Returns \c true if \a p1 is not equal to \a p2; otherwise returns false. Two pairs compare as not equal if their \c first data members are not equal or if their \c second data members are not equal. @@ -145,7 +145,7 @@ \relates QPair - Returns true if \a p1 is less than \a p2; otherwise returns + Returns \c true if \a p1 is less than \a p2; otherwise returns false. The comparison is done on the \c first members of \a p1 and \a p2; if they compare equal, the \c second members are compared to break the tie. @@ -158,7 +158,7 @@ \relates QPair - Returns true if \a p1 is greater than \a p2; otherwise returns + Returns \c true if \a p1 is greater than \a p2; otherwise returns false. The comparison is done on the \c first members of \a p1 and \a p2; if they compare equal, the \c second members are compared to break the tie. @@ -171,8 +171,8 @@ \relates QPair - Returns true if \a p1 is less than or equal to \a p2; otherwise - returns false. The comparison is done on the \c first members of + Returns \c true if \a p1 is less than or equal to \a p2; otherwise + returns \c false. The comparison is done on the \c first members of \a p1 and \a p2; if they compare equal, the \c second members are compared to break the tie. @@ -184,8 +184,8 @@ \relates QPair - Returns true if \a p1 is greater than or equal to \a p2; - otherwise returns false. The comparison is done on the \c first + Returns \c true if \a p1 is greater than or equal to \a p2; + otherwise returns \c false. The comparison is done on the \c first members of \a p1 and \a p2; if they compare equal, the \c second members are compared to break the tie. diff --git a/src/corelib/tools/qpoint.cpp b/src/corelib/tools/qpoint.cpp index 784d96bf1c..565b1223fe 100644 --- a/src/corelib/tools/qpoint.cpp +++ b/src/corelib/tools/qpoint.cpp @@ -55,7 +55,7 @@ QT_BEGIN_NAMESPACE A point is specified by a x coordinate and an y coordinate which can be accessed using the x() and y() functions. The isNull() - function returns true if both x and y are set to 0. The + function returns \c true if both x and y are set to 0. The coordinates can be set (or altered) using the setX() and setY() functions, or alternatively the rx() and ry() functions which return references to the coordinates (allowing direct @@ -102,8 +102,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QPoint::isNull() const - Returns true if both the x and y coordinates are set to 0, - otherwise returns false. + Returns \c true if both the x and y coordinates are set to 0, + otherwise returns \c false. */ /*! @@ -235,7 +235,7 @@ QT_BEGIN_NAMESPACE \fn bool operator==(const QPoint &p1, const QPoint &p2) \relates QPoint - Returns true if \a p1 and \a p2 are equal; otherwise returns + Returns \c true if \a p1 and \a p2 are equal; otherwise returns false. */ @@ -243,7 +243,7 @@ QT_BEGIN_NAMESPACE \fn bool operator!=(const QPoint &p1, const QPoint &p2) \relates QPoint - Returns true if \a p1 and \a p2 are not equal; otherwise returns false. + Returns \c true if \a p1 and \a p2 are not equal; otherwise returns \c false. */ /*! @@ -474,7 +474,7 @@ QDebug operator<<(QDebug d, const QPointF &p) A point is specified by a x coordinate and an y coordinate which can be accessed using the x() and y() functions. The coordinates of the point are specified using floating point numbers for - accuracy. The isNull() function returns true if both x and y are + accuracy. The isNull() function returns \c true if both x and y are set to 0.0. The coordinates can be set (or altered) using the setX() and setY() functions, or alternatively the rx() and ry() functions which return references to the coordinates (allowing direct @@ -524,8 +524,8 @@ QDebug operator<<(QDebug d, const QPointF &p) /*! \fn bool QPointF::isNull() const - Returns true if both the x and y coordinates are set to +0.0; - otherwise returns false. + Returns \c true if both the x and y coordinates are set to +0.0; + otherwise returns \c false. \note Since this function treats +0.0 and -0.0 differently, points with zero-valued coordinates where either or both values have a @@ -733,14 +733,14 @@ QDebug operator<<(QDebug d, const QPointF &p) \fn bool operator==(const QPointF &p1, const QPointF &p2) \relates QPointF - Returns true if \a p1 is equal to \a p2; otherwise returns false. + Returns \c true if \a p1 is equal to \a p2; otherwise returns \c false. */ /*! \fn bool operator!=(const QPointF &p1, const QPointF &p2); \relates QPointF - Returns true if \a p1 is not equal to \a p2; otherwise returns false. + Returns \c true if \a p1 is not equal to \a p2; otherwise returns \c false. */ #ifndef QT_NO_DATASTREAM diff --git a/src/corelib/tools/qrect.cpp b/src/corelib/tools/qrect.cpp index 41b2b266ee..fcff8931e8 100644 --- a/src/corelib/tools/qrect.cpp +++ b/src/corelib/tools/qrect.cpp @@ -92,7 +92,7 @@ QT_BEGIN_NAMESPACE setRight(). The contains() function tells whether a given point is inside the - rectangle or not, and the intersects() function returns true if + rectangle or not, and the intersects() function returns \c true if this rectangle intersects with a given rectangle. The QRect class also provides the intersected() function which returns the intersection rectangle, and the united() function which returns the @@ -107,9 +107,9 @@ QT_BEGIN_NAMESPACE \li united() \endtable - The isEmpty() function returns true if left() > right() or top() > + The isEmpty() function returns \c true if left() > right() or top() > bottom(). Note that an empty rectangle is not valid: The isValid() - function returns true if left() <= right() \e and top() <= + function returns \c true if left() <= right() \e and top() <= bottom(). A null rectangle (isNull() == true) on the other hand, has both width and height set to 0. @@ -254,8 +254,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QRect::isNull() const - Returns true if the rectangle is a null rectangle, otherwise - returns false. + Returns \c true if the rectangle is a null rectangle, otherwise + returns \c false. A null rectangle has both the width and the height set to 0 (i.e., right() == left() - 1 and bottom() == top() - 1). A null rectangle @@ -267,7 +267,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QRect::isEmpty() const - Returns true if the rectangle is empty, otherwise returns false. + Returns \c true if the rectangle is empty, otherwise returns \c false. An empty rectangle has a left() > right() or top() > bottom(). An empty rectangle is not valid (i.e., isEmpty() == !isValid()). @@ -281,7 +281,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QRect::isValid() const - Returns true if the rectangle is valid, otherwise returns false. + Returns \c true if the rectangle is valid, otherwise returns \c false. A valid rectangle has a left() < right() and top() < bottom(). Note that non-trivial operations like intersections are @@ -803,9 +803,9 @@ QRect QRect::normalized() const /*! \fn bool QRect::contains(const QPoint &point, bool proper) const - Returns true if the given \a point is inside or on the edge of - the rectangle, otherwise returns false. If \a proper is true, this - function only returns true if the given \a point is \e inside the + Returns \c true if the given \a point is inside or on the edge of + the rectangle, otherwise returns \c false. If \a proper is true, this + function only returns \c true if the given \a point is \e inside the rectangle (i.e., not on the edge). \sa intersects() @@ -851,9 +851,9 @@ bool QRect::contains(const QPoint &p, bool proper) const \fn bool QRect::contains(int x, int y, bool proper) const \overload - Returns true if the point (\a x, \a y) is inside or on the edge of - the rectangle, otherwise returns false. If \a proper is true, this - function only returns true if the point is entirely inside the + Returns \c true if the point (\a x, \a y) is inside or on the edge of + the rectangle, otherwise returns \c false. If \a proper is true, this + function only returns \c true if the point is entirely inside the rectangle(not on the edge). */ @@ -861,17 +861,17 @@ bool QRect::contains(const QPoint &p, bool proper) const \fn bool QRect::contains(int x, int y) const \overload - Returns true if the point (\a x, \a y) is inside this rectangle, - otherwise returns false. + Returns \c true if the point (\a x, \a y) is inside this rectangle, + otherwise returns \c false. */ /*! \fn bool QRect::contains(const QRect &rectangle, bool proper) const \overload - Returns true if the given \a rectangle is inside this rectangle. - otherwise returns false. If \a proper is true, this function only - returns true if the \a rectangle is entirely inside this + Returns \c true if the given \a rectangle is inside this rectangle. + otherwise returns \c false. If \a proper is true, this function only + returns \c true if the \a rectangle is entirely inside this rectangle (not on the edge). */ @@ -1093,9 +1093,9 @@ QRect QRect::operator&(const QRect &r) const /*! \fn bool QRect::intersects(const QRect &rectangle) const - Returns true if this rectangle intersects with the given \a + Returns \c true if this rectangle intersects with the given \a rectangle (i.e., there is at least one pixel that is within both - rectangles), otherwise returns false. + rectangles), otherwise returns \c false. The intersection rectangle can be retrieved using the intersected() function. @@ -1149,8 +1149,8 @@ bool QRect::intersects(const QRect &r) const \fn bool operator==(const QRect &r1, const QRect &r2) \relates QRect - Returns true if the rectangles \a r1 and \a r2 are equal, - otherwise returns false. + Returns \c true if the rectangles \a r1 and \a r2 are equal, + otherwise returns \c false. */ @@ -1158,8 +1158,8 @@ bool QRect::intersects(const QRect &r) const \fn bool operator!=(const QRect &r1, const QRect &r2) \relates QRect - Returns true if the rectangles \a r1 and \a r2 are different, otherwise - returns false. + Returns \c true if the rectangles \a r1 and \a r2 are different, otherwise + returns \c false. */ @@ -1267,7 +1267,7 @@ QDebug operator<<(QDebug dbg, const QRect &r) { setRight(). The contains() function tells whether a given point is inside the - rectangle or not, and the intersects() function returns true if + rectangle or not, and the intersects() function returns \c true if this rectangle intersects with a given rectangle (otherwise false). The QRectF class also provides the intersected() function which returns the intersection rectangle, and the united() function @@ -1283,9 +1283,9 @@ QDebug operator<<(QDebug dbg, const QRect &r) { \li united() \endtable - The isEmpty() function returns true if the rectangle's width or + The isEmpty() function returns \c true if the rectangle's width or height is less than, or equal to, 0. Note that an empty rectangle - is not valid: The isValid() function returns true if both width + is not valid: The isValid() function returns \c true if both width and height is larger than 0. A null rectangle (isNull() == true) on the other hand, has both width and height set to 0. @@ -1412,7 +1412,7 @@ QDebug operator<<(QDebug dbg, const QRect &r) { /*! \fn bool QRectF::isNull() const - Returns true if the rectangle is a null rectangle, otherwise returns false. + Returns \c true if the rectangle is a null rectangle, otherwise returns \c false. A null rectangle has both the width and the height set to 0. A null rectangle is also empty, and hence not valid. @@ -1423,7 +1423,7 @@ QDebug operator<<(QDebug dbg, const QRect &r) { /*! \fn bool QRectF::isEmpty() const - Returns true if the rectangle is empty, otherwise returns false. + Returns \c true if the rectangle is empty, otherwise returns \c false. An empty rectangle has width() <= 0 or height() <= 0. An empty rectangle is not valid (i.e., isEmpty() == !isValid()). @@ -1437,7 +1437,7 @@ QDebug operator<<(QDebug dbg, const QRect &r) { /*! \fn bool QRectF::isValid() const - Returns true if the rectangle is valid, otherwise returns false. + Returns \c true if the rectangle is valid, otherwise returns \c false. A valid rectangle has a width() > 0 and height() > 0. Note that non-trivial operations like intersections are not defined for @@ -1865,8 +1865,8 @@ QRectF QRectF::normalized() const /*! \fn bool QRectF::contains(const QPointF &point) const - Returns true if the given \a point is inside or on the edge of the - rectangle; otherwise returns false. + Returns \c true if the given \a point is inside or on the edge of the + rectangle; otherwise returns \c false. \sa intersects() */ @@ -1905,16 +1905,16 @@ bool QRectF::contains(const QPointF &p) const \fn bool QRectF::contains(qreal x, qreal y) const \overload - Returns true if the point (\a x, \a y) is inside or on the edge of - the rectangle; otherwise returns false. + Returns \c true if the point (\a x, \a y) is inside or on the edge of + the rectangle; otherwise returns \c false. */ /*! \fn bool QRectF::contains(const QRectF &rectangle) const \overload - Returns true if the given \a rectangle is inside this rectangle; - otherwise returns false. + Returns \c true if the given \a rectangle is inside this rectangle; + otherwise returns \c false. */ bool QRectF::contains(const QRectF &r) const @@ -2199,9 +2199,9 @@ QRectF QRectF::operator&(const QRectF &r) const /*! \fn bool QRectF::intersects(const QRectF &rectangle) const - Returns true if this rectangle intersects with the given \a + Returns \c true if this rectangle intersects with the given \a rectangle (i.e. there is a non-empty area of overlap between - them), otherwise returns false. + them), otherwise returns \c false. The intersection rectangle can be retrieved using the intersected() function. @@ -2298,8 +2298,8 @@ QRect QRectF::toAlignedRect() const \fn bool operator==(const QRectF &r1, const QRectF &r2) \relates QRectF - Returns true if the rectangles \a r1 and \a r2 are equal, - otherwise returns false. + Returns \c true if the rectangles \a r1 and \a r2 are equal, + otherwise returns \c false. */ @@ -2307,8 +2307,8 @@ QRect QRectF::toAlignedRect() const \fn bool operator!=(const QRectF &r1, const QRectF &r2) \relates QRectF - Returns true if the rectangles \a r1 and \a r2 are different, otherwise - returns false. + Returns \c true if the rectangles \a r1 and \a r2 are different, otherwise + returns \c false. */ /***************************************************************************** diff --git a/src/corelib/tools/qregexp.cpp b/src/corelib/tools/qregexp.cpp index 5debb1a238..88499ad9d9 100644 --- a/src/corelib/tools/qregexp.cpp +++ b/src/corelib/tools/qregexp.cpp @@ -1794,7 +1794,7 @@ static bool isBetterCapture(int ncap, const int *begin1, const int *end1, const #endif /* - Returns true if anchor a matches at position pos + i in the input + Returns \c true if anchor a matches at position pos + i in the input string, otherwise false. */ bool QRegExpMatchState::testAnchor(int i, int a, const int *capBegin) @@ -4029,8 +4029,8 @@ QRegExp &QRegExp::operator=(const QRegExp &rx) */ /*! - Returns true if this regular expression is equal to \a rx; - otherwise returns false. + Returns \c true if this regular expression is equal to \a rx; + otherwise returns \c false. Two QRegExp objects are equal if they have the same pattern strings and the same settings for case sensitivity, wildcard and @@ -4044,18 +4044,18 @@ bool QRegExp::operator==(const QRegExp &rx) const /*! \fn bool QRegExp::operator!=(const QRegExp &rx) const - Returns true if this regular expression is not equal to \a rx; - otherwise returns false. + Returns \c true if this regular expression is not equal to \a rx; + otherwise returns \c false. \sa operator==() */ /*! - Returns true if the pattern string is empty; otherwise returns + Returns \c true if the pattern string is empty; otherwise returns false. If you call exactMatch() with an empty pattern on an empty string - it will return true; otherwise it returns false since it operates + it will return true; otherwise it returns \c false since it operates over the whole string. If you call indexIn() with an empty pattern on \e any string it will return the start offset (0 by default) because the empty pattern matches the 'emptiness' at the start of @@ -4071,7 +4071,7 @@ bool QRegExp::isEmpty() const } /*! - Returns true if the regular expression is valid; otherwise returns + Returns \c true if the regular expression is valid; otherwise returns false. An invalid regular expression never matches. The pattern \b{[a-z} is an example of an invalid pattern, since @@ -4181,8 +4181,8 @@ void QRegExp::setPatternSyntax(PatternSyntax syntax) } /*! - Returns true if minimal (non-greedy) matching is enabled; - otherwise returns false. + Returns \c true if minimal (non-greedy) matching is enabled; + otherwise returns \c false. \sa caseSensitivity(), setMinimal() */ @@ -4215,8 +4215,8 @@ void QRegExp::setMinimal(bool minimal) // ### Qt 5: make non-const /*! - Returns true if \a str is matched exactly by this regular - expression; otherwise returns false. You can determine how much of + Returns \c true if \a str is matched exactly by this regular + expression; otherwise returns \c false. You can determine how much of the string was matched by calling matchedLength(). For a given regexp string R, exactMatch("R") is the equivalent of @@ -4225,8 +4225,8 @@ void QRegExp::setMinimal(bool minimal) sets matchedLength() differently. For example, if the regular expression is \b{blue}, then - exactMatch() returns true only for input \c blue. For inputs \c - bluebell, \c blutak and \c lightblue, exactMatch() returns false + exactMatch() returns \c true only for input \c blue. For inputs \c + bluebell, \c blutak and \c lightblue, exactMatch() returns \c false and matchedLength() will return 4, 3 and 0 respectively. Although const, this function sets matchedLength(), diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp index a2a58f8926..d5bd1dff00 100644 --- a/src/corelib/tools/qregularexpression.cpp +++ b/src/corelib/tools/qregularexpression.cpp @@ -1580,7 +1580,7 @@ QStringList QRegularExpression::namedCaptureGroups() const } /*! - Returns true if the regular expression is a valid regular expression (that + Returns \c true if the regular expression is a valid regular expression (that is, it contains no syntax errors, etc.), or false otherwise. Use errorString() to obtain a textual description of the error. @@ -1666,7 +1666,7 @@ QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QString &s } /*! - Returns true if the regular expression is equal to \a re, or false + Returns \c true if the regular expression is equal to \a re, or false otherwise. Two QRegularExpression objects are equal if they have the same pattern string and the same pattern options. @@ -1681,7 +1681,7 @@ bool QRegularExpression::operator==(const QRegularExpression &re) const /*! \fn bool QRegularExpression::operator!=(const QRegularExpression &re) const - Returns true if the regular expression is different from \a re, or + Returns \c true if the regular expression is different from \a re, or false otherwise. \sa operator==() @@ -2058,7 +2058,7 @@ int QRegularExpressionMatch::capturedEnd(const QString &name) const } /*! - Returns true if the regular expression matched against the subject string, + Returns \c true if the regular expression matched against the subject string, or false otherwise. \sa QRegularExpression::match(), hasPartialMatch() @@ -2069,7 +2069,7 @@ bool QRegularExpressionMatch::hasMatch() const } /*! - Returns true if the regular expression partially matched against the + Returns \c true if the regular expression partially matched against the subject string, or false otherwise. \note Only a match that explicitly used the one of the partial match types @@ -2084,9 +2084,9 @@ bool QRegularExpressionMatch::hasPartialMatch() const } /*! - Returns true if the match object was obtained as a result from the + Returns \c true if the match object was obtained as a result from the QRegularExpression::match() function invoked on a valid QRegularExpression - object; returns false if the QRegularExpression was invalid. + object; returns \c false if the QRegularExpression was invalid. \sa QRegularExpression::match(), QRegularExpression::isValid() */ @@ -2159,9 +2159,9 @@ QRegularExpressionMatchIterator &QRegularExpressionMatchIterator::operator=(cons */ /*! - Returns true if the iterator object was obtained as a result from the + Returns \c true if the iterator object was obtained as a result from the QRegularExpression::globalMatch() function invoked on a valid - QRegularExpression object; returns false if the QRegularExpression was + QRegularExpression object; returns \c false if the QRegularExpression was invalid. \sa QRegularExpression::globalMatch(), QRegularExpression::isValid() @@ -2172,8 +2172,8 @@ bool QRegularExpressionMatchIterator::isValid() const } /*! - Returns true if there is at least one match result ahead of the iterator; - otherwise it returns false. + Returns \c true if there is at least one match result ahead of the iterator; + otherwise it returns \c false. \sa next() */ diff --git a/src/corelib/tools/qscopedpointer.cpp b/src/corelib/tools/qscopedpointer.cpp index e0c369ecad..f567eded49 100644 --- a/src/corelib/tools/qscopedpointer.cpp +++ b/src/corelib/tools/qscopedpointer.cpp @@ -180,18 +180,18 @@ QT_BEGIN_NAMESPACE /*! \fn bool operator==(const QScopedPointer &lhs, const QScopedPointer &rhs) - Equality operator. Returns true if the scoped pointers + Equality operator. Returns \c true if the scoped pointers \a lhs and \a rhs are pointing to the same object. - Otherwise returns false. + Otherwise returns \c false. */ /*! \fn bool operator!=(const QScopedPointer &lhs, const QScopedPointer &rhs) - Inequality operator. Returns true if the scoped pointers + Inequality operator. Returns \c true if the scoped pointers \a lhs and \a rhs are \e not pointing to the same object. - Otherwise returns false. + Otherwise returns \c false. */ /*! diff --git a/src/corelib/tools/qset.qdoc b/src/corelib/tools/qset.qdoc index c1351943e1..a0bc206014 100644 --- a/src/corelib/tools/qset.qdoc +++ b/src/corelib/tools/qset.qdoc @@ -143,8 +143,8 @@ /*! \fn bool QSet::operator==(const QSet &other) const - Returns true if the \a other set is equal to this set; otherwise - returns false. + Returns \c true if the \a other set is equal to this set; otherwise + returns \c false. Two sets are considered equal if they contain the same elements. @@ -156,8 +156,8 @@ /*! \fn bool QSet::operator!=(const QSet &other) const - Returns true if the \a other set is not equal to this set; otherwise - returns false. + Returns \c true if the \a other set is not equal to this set; otherwise + returns \c false. Two sets are considered equal if they contain the same elements. @@ -177,7 +177,7 @@ /*! \fn bool QSet::isEmpty() const - Returns true if the set contains no elements; otherwise returns + Returns \c true if the set contains no elements; otherwise returns false. \sa size() @@ -248,8 +248,8 @@ \internal - Returns true if the set's internal data isn't shared with any - other set object; otherwise returns false. + Returns \c true if the set's internal data isn't shared with any + other set object; otherwise returns \c false. \sa detach() */ @@ -271,7 +271,7 @@ \fn bool QSet::remove(const T &value) Removes any occurrence of item \a value from the set. Returns - true if an item was actually removed; otherwise returns false. + true if an item was actually removed; otherwise returns \c false. \sa contains(), insert() */ @@ -322,7 +322,7 @@ /*! \fn bool QSet::contains(const T &value) const - Returns true if the set contains item \a value; otherwise returns + Returns \c true if the set contains item \a value; otherwise returns false. \sa insert(), remove(), find() @@ -332,8 +332,8 @@ \fn bool QSet::contains(const QSet &other) const \since 4.6 - Returns true if the set contains all items from the \a other set; - otherwise returns false. + Returns \c true if the set contains all items from the \a other set; + otherwise returns \c false. \sa insert(), remove(), find() */ @@ -505,7 +505,7 @@ /*! \fn bool QSet::empty() const - Returns true if the set is empty. This function is provided + Returns \c true if the set is empty. This function is provided for STL compatibility. It is equivalent to isEmpty(). */ @@ -788,8 +788,8 @@ \fn bool QSet::iterator::operator==(const iterator &other) const \fn bool QSet::const_iterator::operator==(const const_iterator &other) const - Returns true if \a other points to the same item as this - iterator; otherwise returns false. + Returns \c true if \a other points to the same item as this + iterator; otherwise returns \c false. \sa operator!=() */ @@ -805,8 +805,8 @@ \fn bool QSet::iterator::operator!=(const iterator &other) const \fn bool QSet::const_iterator::operator!=(const const_iterator &other) const - Returns true if \a other points to a different item than this - iterator; otherwise returns false. + Returns \c true if \a other points to a different item than this + iterator; otherwise returns \c false. \sa operator==() */ diff --git a/src/corelib/tools/qshareddata.cpp b/src/corelib/tools/qshareddata.cpp index 0afda357a6..941e58ee7c 100644 --- a/src/corelib/tools/qshareddata.cpp +++ b/src/corelib/tools/qshareddata.cpp @@ -315,12 +315,12 @@ QT_BEGIN_NAMESPACE */ /*! \fn bool QSharedDataPointer::operator==(const QSharedDataPointer& other) const - Returns true if \a other and \e this have the same \e{d pointer}. + Returns \c true if \a other and \e this have the same \e{d pointer}. This function does \e not call detach(). */ /*! \fn bool QSharedDataPointer::operator!=(const QSharedDataPointer& other) const - Returns true if \a other and \e this do \e not have the same + Returns \c true if \a other and \e this do \e not have the same \e{d pointer}. This function does \e not call detach(). */ @@ -372,7 +372,7 @@ QT_BEGIN_NAMESPACE */ /*! \fn bool QSharedDataPointer::operator!() const - Returns true if the \e{d pointer} of \e this is null. + Returns \c true if the \e{d pointer} of \e this is null. */ /*! \fn void QSharedDataPointer::detach() @@ -479,7 +479,7 @@ QT_BEGIN_NAMESPACE */ /*! \fn bool QExplicitlySharedDataPointer::operator==(const QExplicitlySharedDataPointer& other) const - Returns true if \a other and \e this have the same \e{d pointer}. + Returns \c true if \a other and \e this have the same \e{d pointer}. */ /*! @@ -491,16 +491,16 @@ QT_BEGIN_NAMESPACE */ /*! \fn bool QExplicitlySharedDataPointer::operator==(const T* ptr) const - Returns true if the \e{d pointer} of \e this is \a ptr. + Returns \c true if the \e{d pointer} of \e this is \a ptr. */ /*! \fn bool QExplicitlySharedDataPointer::operator!=(const QExplicitlySharedDataPointer& other) const - Returns true if \a other and \e this do \e not have the same + Returns \c true if \a other and \e this do \e not have the same \e{d pointer}. */ /*! \fn bool QExplicitlySharedDataPointer::operator!=(const T* ptr) const - Returns true if the \e{d pointer} of \e this is \e not \a ptr. + Returns \c true if the \e{d pointer} of \e this is \e not \a ptr. */ /*! \fn QExplicitlySharedDataPointer::QExplicitlySharedDataPointer() @@ -569,11 +569,11 @@ QT_BEGIN_NAMESPACE */ /*! \fn QExplicitlySharedDataPointer::operator bool () const - Returns true if the \e{d pointer} of \e this is \e not null. + Returns \c true if the \e{d pointer} of \e this is \e not null. */ /*! \fn bool QExplicitlySharedDataPointer::operator!() const - Returns true if the \e{d pointer} of \e this is null. + Returns \c true if the \e{d pointer} of \e this is null. */ /*! \fn void QExplicitlySharedDataPointer::detach() diff --git a/src/corelib/tools/qsharedpointer.cpp b/src/corelib/tools/qsharedpointer.cpp index ef62621386..77409f5c71 100644 --- a/src/corelib/tools/qsharedpointer.cpp +++ b/src/corelib/tools/qsharedpointer.cpp @@ -506,14 +506,14 @@ /*! \fn bool QSharedPointer::isNull() const - Returns true if this object is holding a reference to a null + Returns \c true if this object is holding a reference to a null pointer. */ /*! \fn QSharedPointer::operator bool() const - Returns true if this object is not null. This function is suitable + Returns \c true if this object is not null. This function is suitable for use in \tt if-constructs, like: \code @@ -526,7 +526,7 @@ /*! \fn bool QSharedPointer::operator !() const - Returns true if this object is null. This function is suitable + Returns \c true if this object is null. This function is suitable for use in \tt if-constructs, like: \code @@ -765,7 +765,7 @@ /*! \fn bool QWeakPointer::isNull() const - Returns true if this object is holding a reference to a null + Returns \c true if this object is holding a reference to a null pointer. Note that, due to the nature of weak references, the pointer that @@ -777,7 +777,7 @@ /*! \fn QWeakPointer::operator bool() const - Returns true if this object is not null. This function is suitable + Returns \c true if this object is not null. This function is suitable for use in \tt if-constructs, like: \code @@ -795,7 +795,7 @@ /*! \fn bool QWeakPointer::operator !() const - Returns true if this object is null. This function is suitable + Returns \c true if this object is null. This function is suitable for use in \tt if-constructs, like: \code @@ -896,7 +896,7 @@ \fn bool operator==(const QSharedPointer &ptr1, const QSharedPointer &ptr2) \relates QSharedPointer - Returns true if the pointer referenced by \a ptr1 is the + Returns \c true if the pointer referenced by \a ptr1 is the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's, @@ -910,7 +910,7 @@ \fn bool operator!=(const QSharedPointer &ptr1, const QSharedPointer &ptr2) \relates QSharedPointer - Returns true if the pointer referenced by \a ptr1 is not the + Returns \c true if the pointer referenced by \a ptr1 is not the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's, @@ -924,7 +924,7 @@ \fn bool operator==(const QSharedPointer &ptr1, const X *ptr2) \relates QSharedPointer - Returns true if the pointer referenced by \a ptr1 is the + Returns \c true if the pointer referenced by \a ptr1 is the same pointer as \a ptr2. If \a ptr2's type is different from \a ptr1's, @@ -938,7 +938,7 @@ \fn bool operator!=(const QSharedPointer &ptr1, const X *ptr2) \relates QSharedPointer - Returns true if the pointer referenced by \a ptr1 is not the + Returns \c true if the pointer referenced by \a ptr1 is not the same pointer as \a ptr2. If \a ptr2's type is different from \a ptr1's, @@ -952,7 +952,7 @@ \fn bool operator==(const T *ptr1, const QSharedPointer &ptr2) \relates QSharedPointer - Returns true if the pointer \a ptr1 is the + Returns \c true if the pointer \a ptr1 is the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's type, @@ -966,7 +966,7 @@ \fn bool operator!=(const T *ptr1, const QSharedPointer &ptr2) \relates QSharedPointer - Returns true if the pointer \a ptr1 is not the + Returns \c true if the pointer \a ptr1 is not the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's type, @@ -980,7 +980,7 @@ \fn bool operator==(const QSharedPointer &ptr1, const QWeakPointer &ptr2) \relates QWeakPointer - Returns true if the pointer referenced by \a ptr1 is the + Returns \c true if the pointer referenced by \a ptr1 is the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's, @@ -994,7 +994,7 @@ \fn bool operator!=(const QSharedPointer &ptr1, const QWeakPointer &ptr2) \relates QWeakPointer - Returns true if the pointer referenced by \a ptr1 is not the + Returns \c true if the pointer referenced by \a ptr1 is not the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's, @@ -1008,7 +1008,7 @@ \fn bool operator==(const QWeakPointer &ptr1, const QSharedPointer &ptr2) \relates QWeakPointer - Returns true if the pointer referenced by \a ptr1 is the + Returns \c true if the pointer referenced by \a ptr1 is the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's, @@ -1022,7 +1022,7 @@ \fn bool operator!=(const QWeakPointer &ptr1, const QSharedPointer &ptr2) \relates QWeakPointer - Returns true if the pointer referenced by \a ptr1 is not the + Returns \c true if the pointer referenced by \a ptr1 is not the same pointer as that referenced by \a ptr2. If \a ptr2's template parameter is different from \a ptr1's, diff --git a/src/corelib/tools/qsize.cpp b/src/corelib/tools/qsize.cpp index 6faeb9af0e..b53eced298 100644 --- a/src/corelib/tools/qsize.cpp +++ b/src/corelib/tools/qsize.cpp @@ -62,8 +62,8 @@ QT_BEGIN_NAMESPACE The isValid() function determines if a size is valid (a valid size has both width and height greater than zero). The isEmpty() - function returns true if either of the width and height is less - than, or equal to, zero, while the isNull() function returns true + function returns \c true if either of the width and height is less + than, or equal to, zero, while the isNull() function returns \c true only if both the width and the height is zero. Use the expandedTo() function to retrieve a size which holds the @@ -86,7 +86,7 @@ QT_BEGIN_NAMESPACE \fn QSize::QSize() Constructs a size with an invalid width and height (i.e., isValid() - returns false). + returns \c false). \sa isValid() */ @@ -102,7 +102,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QSize::isNull() const - Returns true if both the width and height is 0; otherwise returns + Returns \c true if both the width and height is 0; otherwise returns false. \sa isValid(), isEmpty() @@ -111,8 +111,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QSize::isEmpty() const - Returns true if either of the width and height is less than or - equal to 0; otherwise returns false. + Returns \c true if either of the width and height is less than or + equal to 0; otherwise returns \c false. \sa isNull(), isValid() */ @@ -120,8 +120,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QSize::isValid() const - Returns true if both the width and height is equal to or greater - than 0; otherwise returns false. + Returns \c true if both the width and height is equal to or greater + than 0; otherwise returns \c false. \sa isNull(), isEmpty() */ @@ -308,14 +308,14 @@ QSize QSize::scaled(const QSize &s, Qt::AspectRatioMode mode) const \fn bool operator==(const QSize &s1, const QSize &s2) \relates QSize - Returns true if \a s1 and \a s2 are equal; otherwise returns false. + Returns \c true if \a s1 and \a s2 are equal; otherwise returns \c false. */ /*! \fn bool operator!=(const QSize &s1, const QSize &s2) \relates QSize - Returns true if \a s1 and \a s2 are different; otherwise returns false. + Returns \c true if \a s1 and \a s2 are different; otherwise returns \c false. */ /*! @@ -470,9 +470,9 @@ QDebug operator<<(QDebug dbg, const QSize &s) { The isValid() function determines if a size is valid. A valid size has both width and height greater than or equal to zero. The - isEmpty() function returns true if either of the width and height + isEmpty() function returns \c true if either of the width and height is \e less than (or equal to) zero, while the isNull() function - returns true only if both the width and the height is zero. + returns \c true only if both the width and the height is zero. Use the expandedTo() function to retrieve a size which holds the maximum height and width of this size and a given @@ -519,7 +519,7 @@ QDebug operator<<(QDebug dbg, const QSize &s) { /*! \fn bool QSizeF::isNull() const - Returns true if both the width and height are +0.0; otherwise returns + Returns \c true if both the width and height are +0.0; otherwise returns false. \note Since this function treats +0.0 and -0.0 differently, sizes with @@ -532,8 +532,8 @@ QDebug operator<<(QDebug dbg, const QSize &s) { /*! \fn bool QSizeF::isEmpty() const - Returns true if either of the width and height is less than or - equal to 0; otherwise returns false. + Returns \c true if either of the width and height is less than or + equal to 0; otherwise returns \c false. \sa isNull(), isValid() */ @@ -541,8 +541,8 @@ QDebug operator<<(QDebug dbg, const QSize &s) { /*! \fn bool QSizeF::isValid() const - Returns true if both the width and height is equal to or greater - than 0; otherwise returns false. + Returns \c true if both the width and height is equal to or greater + than 0; otherwise returns \c false. \sa isNull(), isEmpty() */ @@ -737,7 +737,7 @@ QSizeF QSizeF::scaled(const QSizeF &s, Qt::AspectRatioMode mode) const \fn bool operator==(const QSizeF &s1, const QSizeF &s2) \relates QSizeF - Returns true if \a s1 and \a s2 are equal; otherwise returns + Returns \c true if \a s1 and \a s2 are equal; otherwise returns false. */ @@ -745,7 +745,7 @@ QSizeF QSizeF::scaled(const QSizeF &s, Qt::AspectRatioMode mode) const \fn bool operator!=(const QSizeF &s1, const QSizeF &s2) \relates QSizeF - Returns true if \a s1 and \a s2 are different; otherwise returns false. + Returns \c true if \a s1 and \a s2 are different; otherwise returns \c false. */ /*! diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index 1ba9e81b59..8519eaa17a 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -2160,8 +2160,8 @@ QString &QString::replace(QChar c, QLatin1String after, Qt::CaseSensitivity cs) /*! \relates QString - Returns true if string \a s1 is equal to string \a s2; otherwise - returns false. + Returns \c true if string \a s1 is equal to string \a s2; otherwise + returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -2229,8 +2229,8 @@ bool QString::operator==(QLatin1String other) const /*! \relates QString - Returns true if string \a s1 is lexically less than string - \a s2; otherwise returns false. + Returns \c true if string \a s1 is lexically less than string + \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -2292,8 +2292,8 @@ bool QString::operator<(QLatin1String other) const /*! \fn bool QString::operator<=(const QString &s1, const QString &s2) - Returns true if string \a s1 is lexically less than or equal to - string \a s2; otherwise returns false. + Returns \c true if string \a s1 is lexically less than or equal to + string \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -2335,8 +2335,8 @@ bool QString::operator<(QLatin1String other) const /*! \fn bool QString::operator>(const QString &s1, const QString &s2) - Returns true if string \a s1 is lexically greater than string \a - s2; otherwise returns false. + Returns \c true if string \a s1 is lexically greater than string \a + s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -2395,8 +2395,8 @@ bool QString::operator>(QLatin1String other) const /*! \fn bool operator>=(const QString &s1, const QString &s2) \relates QString - Returns true if string \a s1 is lexically greater than or equal to - string \a s2; otherwise returns false. + Returns \c true if string \a s1 is lexically greater than or equal to + string \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -2439,8 +2439,8 @@ bool QString::operator>(QLatin1String other) const /*! \fn bool operator!=(const QString &s1, const QString &s2) \relates QString - Returns true if string \a s1 is not equal to string \a s2; - otherwise returns false. + Returns \c true if string \a s1 is not equal to string \a s2; + otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -3146,8 +3146,8 @@ int QString::count(const QStringRef &str, Qt::CaseSensitivity cs) const /*! \fn bool QString::contains(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const - Returns true if this string contains an occurrence of the string - \a str; otherwise returns false. + Returns \c true if this string contains an occurrence of the string + \a str; otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -3162,15 +3162,15 @@ int QString::count(const QStringRef &str, Qt::CaseSensitivity cs) const \overload contains() - Returns true if this string contains an occurrence of the - character \a ch; otherwise returns false. + Returns \c true if this string contains an occurrence of the + character \a ch; otherwise returns \c false. */ /*! \fn bool QString::contains(const QStringRef &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const \since 4.8 - Returns true if this string contains an occurrence of the string - reference \a str; otherwise returns false. + Returns \c true if this string contains an occurrence of the string + reference \a str; otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -3182,16 +3182,16 @@ int QString::count(const QStringRef &str, Qt::CaseSensitivity cs) const \overload contains() - Returns true if the regular expression \a rx matches somewhere in - this string; otherwise returns false. + Returns \c true if the regular expression \a rx matches somewhere in + this string; otherwise returns \c false. */ /*! \fn bool QString::contains(QRegExp &rx) const \overload contains() \since 4.5 - Returns true if the regular expression \a rx matches somewhere in - this string; otherwise returns false. + Returns \c true if the regular expression \a rx matches somewhere in + this string; otherwise returns \c false. If there is a match, the \a rx regular expression will contain the matched captures (see QRegExp::matchedLength, QRegExp::cap). @@ -3366,8 +3366,8 @@ int QString::lastIndexOf(const QRegularExpression &re, int from) const /*! \overload contains() \since 5.0 - Returns true if the regular expression \a re matches somewhere in - this string; otherwise returns false. + Returns \c true if the regular expression \a re matches somewhere in + this string; otherwise returns \c false. */ bool QString::contains(const QRegularExpression &re) const { @@ -3383,8 +3383,8 @@ bool QString::contains(const QRegularExpression &re) const \overload contains() \since 5.1 - Returns true if the regular expression \a re matches somewhere in this - string; otherwise returns false. + Returns \c true if the regular expression \a re matches somewhere in this + string; otherwise returns \c false. If the match is successful and \a match is not a null pointer, it also writes the results of the match into the QRegularExpressionMatch object @@ -3769,7 +3769,7 @@ QString QString::mid(int position, int n) const } /*! - Returns true if the string starts with \a s; otherwise returns + Returns \c true if the string starts with \a s; otherwise returns false. If \a cs is Qt::CaseSensitive (default), the search is @@ -3796,7 +3796,7 @@ bool QString::startsWith(QLatin1String s, Qt::CaseSensitivity cs) const /*! \overload startsWith() - Returns true if the string starts with \a c; otherwise returns + Returns \c true if the string starts with \a c; otherwise returns false. */ bool QString::startsWith(QChar c, Qt::CaseSensitivity cs) const @@ -3810,8 +3810,8 @@ bool QString::startsWith(QChar c, Qt::CaseSensitivity cs) const /*! \since 4.8 \overload - Returns true if the string starts with the string reference \a s; - otherwise returns false. + Returns \c true if the string starts with the string reference \a s; + otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -3825,7 +3825,7 @@ bool QString::startsWith(const QStringRef &s, Qt::CaseSensitivity cs) const } /*! - Returns true if the string ends with \a s; otherwise returns + Returns \c true if the string ends with \a s; otherwise returns false. If \a cs is Qt::CaseSensitive (default), the search is case @@ -3844,8 +3844,8 @@ bool QString::endsWith(const QString& s, Qt::CaseSensitivity cs) const /*! \since 4.8 \overload endsWith() - Returns true if the string ends with the string reference \a s; - otherwise returns false. + Returns \c true if the string ends with the string reference \a s; + otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -3868,7 +3868,7 @@ bool QString::endsWith(QLatin1String s, Qt::CaseSensitivity cs) const } /*! - Returns true if the string ends with \a c; otherwise returns + Returns \c true if the string ends with \a c; otherwise returns false. \overload endsWith() @@ -4632,7 +4632,7 @@ QString& QString::fill(QChar ch, int size) /*! \fn bool QString::isNull() const - Returns true if this string is null; otherwise returns false. + Returns \c true if this string is null; otherwise returns \c false. Example: @@ -4648,7 +4648,7 @@ QString& QString::fill(QChar ch, int size) /*! \fn bool QString::isEmpty() const - Returns true if the string has no characters; otherwise returns + Returns \c true if the string has no characters; otherwise returns false. Example: @@ -4751,7 +4751,7 @@ QString& QString::fill(QChar ch, int size) \overload operator==() \relates QString - Returns true if \a s1 is equal to \a s2; otherwise returns false. + Returns \c true if \a s1 is equal to \a s2; otherwise returns \c false. Note that no string is equal to \a s1 being 0. Equivalent to \c {s1 != 0 && compare(s1, s2) == 0}. @@ -4763,7 +4763,7 @@ QString& QString::fill(QChar ch, int size) \fn bool operator!=(const char *s1, const QString &s2) \relates QString - Returns true if \a s1 is not equal to \a s2; otherwise returns + Returns \c true if \a s1 is not equal to \a s2; otherwise returns false. For \a s1 != 0, this is equivalent to \c {compare(} \a s1, \a s2 @@ -4776,8 +4776,8 @@ QString& QString::fill(QChar ch, int size) \fn bool operator<(const char *s1, const QString &s2) \relates QString - Returns true if \a s1 is lexically less than \a s2; otherwise - returns false. For \a s1 != 0, this is equivalent to \c + Returns \c true if \a s1 is lexically less than \a s2; otherwise + returns \c false. For \a s1 != 0, this is equivalent to \c {compare(s1, s2) < 0}. The comparison is based exclusively on the numeric Unicode values @@ -4792,8 +4792,8 @@ QString& QString::fill(QChar ch, int size) \fn bool operator<=(const char *s1, const QString &s2) \relates QString - Returns true if \a s1 is lexically less than or equal to \a s2; - otherwise returns false. For \a s1 != 0, this is equivalent to \c + Returns \c true if \a s1 is lexically less than or equal to \a s2; + otherwise returns \c false. For \a s1 != 0, this is equivalent to \c {compare(s1, s2) <= 0}. The comparison is based exclusively on the numeric Unicode values @@ -4808,8 +4808,8 @@ QString& QString::fill(QChar ch, int size) \fn bool operator>(const char *s1, const QString &s2) \relates QString - Returns true if \a s1 is lexically greater than \a s2; otherwise - returns false. Equivalent to \c {compare(s1, s2) > 0}. + Returns \c true if \a s1 is lexically greater than \a s2; otherwise + returns \c false. Equivalent to \c {compare(s1, s2) > 0}. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -4823,8 +4823,8 @@ QString& QString::fill(QChar ch, int size) \fn bool operator>=(const char *s1, const QString &s2) \relates QString - Returns true if \a s1 is lexically greater than or equal to \a s2; - otherwise returns false. For \a s1 != 0, this is equivalent to \c + Returns \c true if \a s1 is lexically greater than or equal to \a s2; + otherwise returns \c false. For \a s1 != 0, this is equivalent to \c {compare(s1, s2) >= 0}. The comparison is based exclusively on the numeric Unicode values @@ -7430,7 +7430,7 @@ bool QString::isSimpleText() const /*! \fn bool QString::isRightToLeft() const - Returns true if the string is read right to left. + Returns \c true if the string is read right to left. */ bool QString::isRightToLeft() const { @@ -7708,8 +7708,8 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool QLatin1String::operator==(const QString &other) const - Returns true if this string is equal to string \a other; - otherwise returns false. + Returns \c true if this string is equal to string \a other; + otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -7733,8 +7733,8 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool QLatin1String::operator!=(const QString &other) const - Returns true if this string is not equal to string \a other; - otherwise returns false. + Returns \c true if this string is not equal to string \a other; + otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -7759,8 +7759,8 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool QLatin1String::operator>(const QString &other) const - Returns true if this string is lexically greater than string \a - other; otherwise returns false. + Returns \c true if this string is lexically greater than string \a + other; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -7785,8 +7785,8 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool QLatin1String::operator<(const QString &other) const - Returns true if this string is lexically less than the \a other - string; otherwise returns false. + Returns \c true if this string is lexically less than the \a other + string; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -7811,8 +7811,8 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool QLatin1String::operator>=(const QString &other) const - Returns true if this string is lexically greater than or equal - to string \a other; otherwise returns false. + Returns \c true if this string is lexically greater than or equal + to string \a other; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -7836,8 +7836,8 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool QLatin1String::operator<=(const QString &other) const - Returns true if this string is lexically less than or equal - to string \a other; otherwise returns false. + Returns \c true if this string is lexically less than or equal + to string \a other; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -7864,38 +7864,38 @@ QString &QString::setRawData(const QChar *unicode, int size) /*! \fn bool operator==(QLatin1String s1, QLatin1String s2) \relates QLatin1String - Returns true if string \a s1 is lexically equal to string \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically equal to string \a s2; otherwise + returns \c false. */ /*! \fn bool operator!=(QLatin1String s1, QLatin1String s2) \relates QLatin1String - Returns true if string \a s1 is lexically unequal to string \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically unequal to string \a s2; otherwise + returns \c false. */ /*! \fn bool operator<(QLatin1String s1, QLatin1String s2) \relates QLatin1String - Returns true if string \a s1 is lexically smaller than string \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically smaller than string \a s2; otherwise + returns \c false. */ /*! \fn bool operator<=(QLatin1String s1, QLatin1String s2) \relates QLatin1String - Returns true if string \a s1 is lexically smaller than or equal to string \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically smaller than or equal to string \a s2; otherwise + returns \c false. */ /*! \fn bool operator>(QLatin1String s1, QLatin1String s2) \relates QLatin1String - Returns true if string \a s1 is lexically greater than string \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically greater than string \a s2; otherwise + returns \c false. */ /*! \fn bool operator>=(QLatin1String s1, QLatin1String s2) \relates QLatin1String - Returns true if string \a s1 is lexically greater than or equal to - string \a s2; otherwise returns false. + Returns \c true if string \a s1 is lexically greater than or equal to + string \a s2; otherwise returns \c false. */ @@ -8120,7 +8120,7 @@ ownership of it, no memory is freed when instances are destroyed. /*! \fn bool QStringRef::isEmpty() const - Returns true if the string reference has no characters; otherwise returns + Returns \c true if the string reference has no characters; otherwise returns false. A string reference is empty if its size is zero. @@ -8131,8 +8131,8 @@ ownership of it, no memory is freed when instances are destroyed. /*! \fn bool QStringRef::isNull() const - Returns true if string() returns a null pointer or a pointer to a - null string; otherwise returns true. + Returns \c true if string() returns a null pointer or a pointer to a + null string; otherwise returns \c true. \sa size() */ @@ -8191,8 +8191,8 @@ QString QStringRef::toString() const { /*! \relates QStringRef - Returns true if string reference \a s1 is lexically equal to string reference \a s2; otherwise - returns false. + Returns \c true if string reference \a s1 is lexically equal to string reference \a s2; otherwise + returns \c false. */ bool operator==(const QStringRef &s1,const QStringRef &s2) { return (s1.size() == s2.size() && @@ -8201,8 +8201,8 @@ bool operator==(const QStringRef &s1,const QStringRef &s2) /*! \relates QStringRef - Returns true if string \a s1 is lexically equal to string reference \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically equal to string reference \a s2; otherwise + returns \c false. */ bool operator==(const QString &s1,const QStringRef &s2) { return (s1.size() == s2.size() && @@ -8211,8 +8211,8 @@ bool operator==(const QString &s1,const QStringRef &s2) /*! \relates QStringRef - Returns true if string \a s1 is lexically equal to string reference \a s2; otherwise - returns false. + Returns \c true if string \a s1 is lexically equal to string reference \a s2; otherwise + returns \c false. */ bool operator==(QLatin1String s1, const QStringRef &s2) { @@ -8237,8 +8237,8 @@ bool operator==(QLatin1String s1, const QStringRef &s2) /*! \relates QStringRef - Returns true if string reference \a s1 is lexically less than - string reference \a s2; otherwise returns false. + Returns \c true if string reference \a s1 is lexically less than + string reference \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -8254,8 +8254,8 @@ bool operator<(const QStringRef &s1,const QStringRef &s2) \relates QStringRef - Returns true if string reference \a s1 is lexically less than - or equal to string reference \a s2; otherwise returns false. + Returns \c true if string reference \a s1 is lexically less than + or equal to string reference \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -8267,8 +8267,8 @@ bool operator<(const QStringRef &s1,const QStringRef &s2) \relates QStringRef - Returns true if string reference \a s1 is lexically greater than - or equal to string reference \a s2; otherwise returns false. + Returns \c true if string reference \a s1 is lexically greater than + or equal to string reference \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -8280,8 +8280,8 @@ bool operator<(const QStringRef &s1,const QStringRef &s2) \relates QStringRef - Returns true if string reference \a s1 is lexically greater than - string reference \a s2; otherwise returns false. + Returns \c true if string reference \a s1 is lexically greater than + string reference \a s2; otherwise returns \c false. The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would @@ -8914,8 +8914,8 @@ int QStringRef::count(const QStringRef &str, Qt::CaseSensitivity cs) const /*! \since 4.8 - Returns true if the string reference starts with \a str; otherwise - returns false. + Returns \c true if the string reference starts with \a str; otherwise + returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -8953,8 +8953,8 @@ bool QStringRef::startsWith(const QStringRef &str, Qt::CaseSensitivity cs) const \since 4.8 \overload startsWith() - Returns true if the string reference starts with \a ch; otherwise - returns false. + Returns \c true if the string reference starts with \a ch; otherwise + returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -8975,8 +8975,8 @@ bool QStringRef::startsWith(QChar ch, Qt::CaseSensitivity cs) const /*! \since 4.8 - Returns true if the string reference ends with \a str; otherwise - returns false. + Returns \c true if the string reference ends with \a str; otherwise + returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -8993,8 +8993,8 @@ bool QStringRef::endsWith(const QString &str, Qt::CaseSensitivity cs) const \since 4.8 \overload endsWith() - Returns true if the string reference ends with \a ch; otherwise - returns false. + Returns \c true if the string reference ends with \a ch; otherwise + returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -9039,8 +9039,8 @@ bool QStringRef::endsWith(const QStringRef &str, Qt::CaseSensitivity cs) const /*! \fn bool QStringRef::contains(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const \since 4.8 - Returns true if this string reference contains an occurrence of - the string \a str; otherwise returns false. + Returns \c true if this string reference contains an occurrence of + the string \a str; otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -9053,8 +9053,8 @@ bool QStringRef::endsWith(const QStringRef &str, Qt::CaseSensitivity cs) const \overload contains() \since 4.8 - Returns true if this string contains an occurrence of the - character \a ch; otherwise returns false. + Returns \c true if this string contains an occurrence of the + character \a ch; otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -9065,8 +9065,8 @@ bool QStringRef::endsWith(const QStringRef &str, Qt::CaseSensitivity cs) const \overload contains() \since 4.8 - Returns true if this string reference contains an occurrence of - the string reference \a str; otherwise returns false. + Returns \c true if this string reference contains an occurrence of + the string reference \a str; otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. @@ -9078,8 +9078,8 @@ bool QStringRef::endsWith(const QStringRef &str, Qt::CaseSensitivity cs) const \since 4,8 \overload contains() - Returns true if this string reference contains an occurrence of - the string \a str; otherwise returns false. + Returns \c true if this string reference contains an occurrence of + the string \a str; otherwise returns \c false. If \a cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. diff --git a/src/corelib/tools/qstringlist.cpp b/src/corelib/tools/qstringlist.cpp index 870ac23028..46997b731c 100644 --- a/src/corelib/tools/qstringlist.cpp +++ b/src/corelib/tools/qstringlist.cpp @@ -283,8 +283,8 @@ QStringList QtPrivate::QStringList_filter(const QStringList *that, const QString /*! \fn bool QStringList::contains(const QString &str, Qt::CaseSensitivity cs) const - Returns true if the list contains the string \a str; otherwise - returns false. The search is case insensitive if \a cs is + Returns \c true if the list contains the string \a str; otherwise + returns \c false. The search is case insensitive if \a cs is Qt::CaseInsensitive; the search is case sensitive by default. \sa indexOf(), lastIndexOf(), QString::contains() diff --git a/src/corelib/tools/qtextboundaryfinder.cpp b/src/corelib/tools/qtextboundaryfinder.cpp index 7b8fbebb22..3063483da6 100644 --- a/src/corelib/tools/qtextboundaryfinder.cpp +++ b/src/corelib/tools/qtextboundaryfinder.cpp @@ -343,7 +343,7 @@ void QTextBoundaryFinder::setPosition(int position) /*! \fn bool QTextBoundaryFinder::isValid() const - Returns true if the text boundary finder is valid; otherwise returns false. + Returns \c true if the text boundary finder is valid; otherwise returns \c false. A default QTextBoundaryFinder is invalid. */ @@ -429,7 +429,7 @@ int QTextBoundaryFinder::toPreviousBoundary() } /*! - Returns true if the object's position() is currently at a valid text boundary. + Returns \c true if the object's position() is currently at a valid text boundary. */ bool QTextBoundaryFinder::isAtBoundary() const { diff --git a/src/corelib/tools/qtimezone.cpp b/src/corelib/tools/qtimezone.cpp index 762ad6fd09..b6196d99e5 100644 --- a/src/corelib/tools/qtimezone.cpp +++ b/src/corelib/tools/qtimezone.cpp @@ -432,7 +432,7 @@ QTimeZone &QTimeZone::operator=(const QTimeZone &other) */ /*! - Returns true if this time zone is equal to the \a other time zone. + Returns \c true if this time zone is equal to the \a other time zone. */ bool QTimeZone::operator==(const QTimeZone &other) const @@ -444,7 +444,7 @@ bool QTimeZone::operator==(const QTimeZone &other) const } /*! - Returns true if this time zone is not equal to the \a other time zone. + Returns \c true if this time zone is not equal to the \a other time zone. */ bool QTimeZone::operator!=(const QTimeZone &other) const @@ -456,7 +456,7 @@ bool QTimeZone::operator!=(const QTimeZone &other) const } /*! - Returns true if this time zone is valid. + Returns \c true if this time zone is valid. */ bool QTimeZone::isValid() const @@ -640,7 +640,7 @@ int QTimeZone::daylightTimeOffset(const QDateTime &atDateTime) const } /*! - Returns true if the time zone has observed daylight time at any time. + Returns \c true if the time zone has observed daylight time at any time. \sa isDaylightTime(), daylightTimeOffset() */ @@ -654,7 +654,7 @@ bool QTimeZone::hasDaylightTime() const } /*! - Returns true if the given \a atDateTime is in daylight time. + Returns \c true if the given \a atDateTime is in daylight time. \sa hasDaylightTime(), daylightTimeOffset() */ @@ -684,7 +684,7 @@ QTimeZone::OffsetData QTimeZone::offsetData(const QDateTime &forDateTime) const } /*! - Returns true if the system backend supports obtaining transitions. + Returns \c true if the system backend supports obtaining transitions. */ bool QTimeZone::hasTransitions() const @@ -769,7 +769,7 @@ QByteArray QTimeZone::systemTimeZoneId() } /*! - Returns true if a given time zone \a olsenId is available on this system. + Returns \c true if a given time zone \a olsenId is available on this system. \sa availableTimeZoneIds() */ diff --git a/src/corelib/tools/qvarlengtharray.qdoc b/src/corelib/tools/qvarlengtharray.qdoc index 4452bcf1cd..db435739fc 100644 --- a/src/corelib/tools/qvarlengtharray.qdoc +++ b/src/corelib/tools/qvarlengtharray.qdoc @@ -181,7 +181,7 @@ /*! \fn bool QVarLengthArray::isEmpty() const - Returns true if the array has size 0; otherwise returns false. + Returns \c true if the array has size 0; otherwise returns \c false. \sa size(), resize() */ @@ -627,7 +627,7 @@ \relates QVarLengthArray \since 4.8 - Returns true if the two arrays, specified by \a left and \a right, are equal. + Returns \c true if the two arrays, specified by \a left and \a right, are equal. Two arrays are considered equal if they contain the same values in the same order. @@ -642,7 +642,7 @@ \relates QVarLengthArray \since 4.8 - Returns true if the two arrays, specified by \a left and \a right, are \e not equal. + Returns \c true if the two arrays, specified by \a left and \a right, are \e not equal. Two arrays are considered equal if they contain the same values in the same order. diff --git a/src/corelib/tools/qvector.cpp b/src/corelib/tools/qvector.cpp index 8982e797d9..69b656c191 100644 --- a/src/corelib/tools/qvector.cpp +++ b/src/corelib/tools/qvector.cpp @@ -272,8 +272,8 @@ /*! \fn bool QVector::operator==(const QVector &other) const - Returns true if \a other is equal to this vector; otherwise - returns false. + Returns \c true if \a other is equal to this vector; otherwise + returns \c false. Two vectors are considered equal if they contain the same values in the same order. @@ -286,8 +286,8 @@ /*! \fn bool QVector::operator!=(const QVector &other) const - Returns true if \a other is not equal to this vector; otherwise - returns false. + Returns \c true if \a other is not equal to this vector; otherwise + returns \c false. Two vectors are considered equal if they contain the same values in the same order. @@ -307,7 +307,7 @@ /*! \fn bool QVector::isEmpty() const - Returns true if the vector has size 0; otherwise returns false. + Returns \c true if the vector has size 0; otherwise returns \c false. \sa size(), resize() */ @@ -649,8 +649,8 @@ /*! \fn bool QVector::contains(const T &value) const - Returns true if the vector contains an occurrence of \a value; - otherwise returns false. + Returns \c true if the vector contains an occurrence of \a value; + otherwise returns \c false. This function requires the value type to have an implementation of \c operator==(). @@ -661,8 +661,8 @@ /*! \fn bool QVector::startsWith(const T &value) const \since 4.5 - Returns true if this vector is not empty and its first - item is equal to \a value; otherwise returns false. + Returns \c true if this vector is not empty and its first + item is equal to \a value; otherwise returns \c false. \sa isEmpty(), first() */ @@ -670,8 +670,8 @@ /*! \fn bool QVector::endsWith(const T &value) const \since 4.5 - Returns true if this vector is not empty and its last - item is equal to \a value; otherwise returns false. + Returns \c true if this vector is not empty and its last + item is equal to \a value; otherwise returns \c false. \sa isEmpty(), last() */ @@ -868,7 +868,7 @@ This function is provided for STL compatibility. It is equivalent to isEmpty(), returning true if the vector is empty; otherwise - returns false. + returns \c false. */ /*! \fn QVector &QVector::operator+=(const QVector &other) diff --git a/src/corelib/xml/qxmlstream.cpp b/src/corelib/xml/qxmlstream.cpp index d3579497eb..75ccea94e0 100644 --- a/src/corelib/xml/qxmlstream.cpp +++ b/src/corelib/xml/qxmlstream.cpp @@ -92,8 +92,8 @@ QT_BEGIN_NAMESPACE \value StartDocument The reader reports the XML version number in documentVersion(), and the encoding as specified in the XML document in documentEncoding(). If the document is declared - standalone, isStandaloneDocument() returns true; otherwise it - returns false. + standalone, isStandaloneDocument() returns \c true; otherwise it + returns \c false. \value EndDocument The reader reports the end of the document. @@ -109,8 +109,8 @@ QT_BEGIN_NAMESPACE namespaceUri() and name(). \value Characters The reader reports characters in text(). If the - characters are all white-space, isWhitespace() returns true. If - the characters stem from a CDATA section, isCDATA() returns true. + characters are all white-space, isWhitespace() returns \c true. If + the characters stem from a CDATA section, isCDATA() returns \c true. \value Comment The reader reports a comment in text(). @@ -553,9 +553,9 @@ void QXmlStreamReader::clear() } /*! - Returns true if the reader has read until the end of the XML + Returns \c true if the reader has read until the end of the XML document, or if an error() has occurred and reading has been - aborted. Otherwise, it returns false. + aborted. Otherwise, it returns \c false. When atEnd() and hasError() return true and error() returns PrematureEndOfDocumentError, it means the XML has been well-formed @@ -587,7 +587,7 @@ bool QXmlStreamReader::atEnd() const With one exception, once an error() is reported by readNext(), further reading of the XML stream is not possible. Then atEnd() - returns true, hasError() returns true, and this function returns + returns \c true, hasError() returns \c true, and this function returns QXmlStreamReader::Invalid. The exception is when error() returns PrematureEndOfDocumentError. @@ -640,7 +640,7 @@ QXmlStreamReader::TokenType QXmlStreamReader::tokenType() const } /*! - Reads until the next start element within the current element. Returns true + Reads until the next start element within the current element. Returns \c true when a start element was reached. When the end element was reached, or when an error occurred, false is returned. @@ -1758,8 +1758,8 @@ void QXmlStreamReaderPrivate::checkPublicLiteral(const QStringRef &publicId) /* Checks whether the document starts with an xml declaration. If it - does, this function returns true; otherwise it sets up everything - for a synthetic start document event and returns false. + does, this function returns \c true; otherwise it sets up everything + for a synthetic start document event and returns \c false. */ bool QXmlStreamReaderPrivate::checkStartDocument() { @@ -2347,19 +2347,19 @@ QXmlStreamAttribute::QXmlStreamAttribute(const QString &qualifiedName, const QSt /*! \fn bool QXmlStreamAttribute::isDefault() const - Returns true if the parser added this attribute with a default + Returns \c true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise - returns false. + returns \c false. */ /*! \fn bool QXmlStreamAttribute::operator==(const QXmlStreamAttribute &other) const - Compares this attribute with \a other and returns true if they are - equal; otherwise returns false. + Compares this attribute with \a other and returns \c true if they are + equal; otherwise returns \c false. */ /*! \fn bool QXmlStreamAttribute::operator!=(const QXmlStreamAttribute &other) const - Compares this attribute with \a other and returns true if they are - not equal; otherwise returns false. + Compares this attribute with \a other and returns \c true if they are + not equal; otherwise returns \c false. */ @@ -2483,13 +2483,13 @@ Returns the public identifier. /*! \fn inline bool QXmlStreamNotationDeclaration::operator==(const QXmlStreamNotationDeclaration &other) const - Compares this notation declaration with \a other and returns true - if they are equal; otherwise returns false. + Compares this notation declaration with \a other and returns \c true + if they are equal; otherwise returns \c false. */ /*! \fn inline bool QXmlStreamNotationDeclaration::operator!=(const QXmlStreamNotationDeclaration &other) const - Compares this notation declaration with \a other and returns true - if they are not equal; otherwise returns false. + Compares this notation declaration with \a other and returns \c true + if they are not equal; otherwise returns \c false. */ /*! @@ -2512,13 +2512,13 @@ Returns the public identifier. */ /*! \fn inline bool QXmlStreamNamespaceDeclaration::operator==(const QXmlStreamNamespaceDeclaration &other) const - Compares this namespace declaration with \a other and returns true - if they are equal; otherwise returns false. + Compares this namespace declaration with \a other and returns \c true + if they are equal; otherwise returns \c false. */ /*! \fn inline bool QXmlStreamNamespaceDeclaration::operator!=(const QXmlStreamNamespaceDeclaration &other) const - Compares this namespace declaration with \a other and returns true - if they are not equal; otherwise returns false. + Compares this namespace declaration with \a other and returns \c true + if they are not equal; otherwise returns \c false. */ /*! @@ -2660,13 +2660,13 @@ Returns the entity's value. /*! \fn bool QXmlStreamEntityDeclaration::operator==(const QXmlStreamEntityDeclaration &other) const - Compares this entity declaration with \a other and returns true if - they are equal; otherwise returns false. + Compares this entity declaration with \a other and returns \c true if + they are equal; otherwise returns \c false. */ /*! \fn bool QXmlStreamEntityDeclaration::operator!=(const QXmlStreamEntityDeclaration &other) const - Compares this entity declaration with \a other and returns true if - they are not equal; otherwise returns false. + Compares this entity declaration with \a other and returns \c true if + they are not equal; otherwise returns \c false. */ /*! Returns the value of the attribute \a name in the namespace @@ -2778,37 +2778,37 @@ void QXmlStreamAttributes::append(const QString &qualifiedName, const QString &v #ifndef QT_NO_XMLSTREAMREADER /*! \fn bool QXmlStreamReader::isStartDocument() const - Returns true if tokenType() equals \l StartDocument; otherwise returns false. + Returns \c true if tokenType() equals \l StartDocument; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isEndDocument() const - Returns true if tokenType() equals \l EndDocument; otherwise returns false. + Returns \c true if tokenType() equals \l EndDocument; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isStartElement() const - Returns true if tokenType() equals \l StartElement; otherwise returns false. + Returns \c true if tokenType() equals \l StartElement; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isEndElement() const - Returns true if tokenType() equals \l EndElement; otherwise returns false. + Returns \c true if tokenType() equals \l EndElement; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isCharacters() const - Returns true if tokenType() equals \l Characters; otherwise returns false. + Returns \c true if tokenType() equals \l Characters; otherwise returns \c false. \sa isWhitespace(), isCDATA() */ /*! \fn bool QXmlStreamReader::isComment() const - Returns true if tokenType() equals \l Comment; otherwise returns false. + Returns \c true if tokenType() equals \l Comment; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isDTD() const - Returns true if tokenType() equals \l DTD; otherwise returns false. + Returns \c true if tokenType() equals \l DTD; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isEntityReference() const - Returns true if tokenType() equals \l EntityReference; otherwise returns false. + Returns \c true if tokenType() equals \l EntityReference; otherwise returns \c false. */ /*! \fn bool QXmlStreamReader::isProcessingInstruction() const - Returns true if tokenType() equals \l ProcessingInstruction; otherwise returns false. + Returns \c true if tokenType() equals \l ProcessingInstruction; otherwise returns \c false. */ -/*! Returns true if the reader reports characters that only consist - of white-space; otherwise returns false. +/*! Returns \c true if the reader reports characters that only consist + of white-space; otherwise returns \c false. \sa isCharacters(), text() */ @@ -2818,8 +2818,8 @@ bool QXmlStreamReader::isWhitespace() const return d->type == QXmlStreamReader::Characters && d->isWhitespace; } -/*! Returns true if the reader reports characters that stem from a - CDATA section; otherwise returns false. +/*! Returns \c true if the reader reports characters that stem from a + CDATA section; otherwise returns \c false. \sa isCharacters(), text() */ @@ -2832,10 +2832,10 @@ bool QXmlStreamReader::isCDATA() const /*! - Returns true if this document has been declared standalone in the - XML declaration; otherwise returns false. + Returns \c true if this document has been declared standalone in the + XML declaration; otherwise returns \c false. - If no XML declaration has been parsed, this function returns false. + If no XML declaration has been parsed, this function returns \c false. */ bool QXmlStreamReader::isStandaloneDocument() const { @@ -3937,8 +3937,8 @@ void QXmlStreamWriter::writeCurrentToken(const QXmlStreamReader &reader) \fn bool QXmlStreamAttributes::hasAttribute(const QString &qualifiedName) const \since 4.5 - Returns true if this QXmlStreamAttributes has an attribute whose - qualified name is \a qualifiedName; otherwise returns false. + Returns \c true if this QXmlStreamAttributes has an attribute whose + qualified name is \a qualifiedName; otherwise returns \c false. Note that this is not namespace aware. For instance, if this QXmlStreamAttributes contains an attribute whose lexical name is "xlink:href" @@ -3960,9 +3960,9 @@ void QXmlStreamWriter::writeCurrentToken(const QXmlStreamReader &reader) \overload \since 4.5 - Returns true if this QXmlStreamAttributes has an attribute whose + Returns \c true if this QXmlStreamAttributes has an attribute whose namespace URI and name correspond to \a namespaceUri and \a name; - otherwise returns false. + otherwise returns \c false. */ #endif // QT_NO_XMLSTREAMREADER diff --git a/src/dbus/qdbusabstractadaptor.cpp b/src/dbus/qdbusabstractadaptor.cpp index 5ab478e1bd..7fba3bf53a 100644 --- a/src/dbus/qdbusabstractadaptor.cpp +++ b/src/dbus/qdbusabstractadaptor.cpp @@ -195,8 +195,8 @@ void QDBusAbstractAdaptor::setAutoRelaySignals(bool enable) } /*! - Returns true if automatic signal relaying from the real object (see object()) is enabled, - otherwiser returns false. + Returns \c true if automatic signal relaying from the real object (see object()) is enabled, + otherwiser returns \c false. \sa setAutoRelaySignals() */ diff --git a/src/dbus/qdbusabstractinterface.cpp b/src/dbus/qdbusabstractinterface.cpp index 0b584963ee..bf92ccb30f 100644 --- a/src/dbus/qdbusabstractinterface.cpp +++ b/src/dbus/qdbusabstractinterface.cpp @@ -333,7 +333,7 @@ QDBusAbstractInterface::~QDBusAbstractInterface() } /*! - Returns true if this is a valid reference to a remote object. It returns false if + Returns \c true if this is a valid reference to a remote object. It returns \c false if there was an error during the creation of this interface (for instance, if the remote application does not exist). @@ -517,10 +517,10 @@ QDBusPendingCall QDBusAbstractInterface::asyncCallWithArgumentList(const QString object \a receiver. If an error occurs, the \a errorMethod on object \a receiver is called instead. - This function returns true if the queueing succeeds. It does + This function returns \c true if the queueing succeeds. It does not indicate that the executed call succeeded. If it fails, the \a errorMethod is called. If the queueing failed, this - function returns false and no slot will be called. + function returns \c false and no slot will be called. The \a returnMethod must have as its parameters the types returned by the function call. Optionally, it may have a QDBusMessage @@ -567,7 +567,7 @@ bool QDBusAbstractInterface::callWithCallback(const QString &method, the remote function or any errors emitted by it are delivered to the \a slot slot on object \a receiver. - This function returns true if the queueing succeeded: it does + This function returns \c true if the queueing succeeded: it does not indicate that the call succeeded. If it failed, the slot will be called with an error message. lastError() will not be set under those circumstances. diff --git a/src/dbus/qdbusargument.cpp b/src/dbus/qdbusargument.cpp index dab2daf90f..83a544c4e3 100644 --- a/src/dbus/qdbusargument.cpp +++ b/src/dbus/qdbusargument.cpp @@ -1067,7 +1067,7 @@ void QDBusArgument::endMapEntry() const } /*! - Returns true if there are no more elements to be extracted from + Returns \c true if there are no more elements to be extracted from this QDBusArgument. This function is usually used in QDBusArgument objects returned from beginMap() and beginArray(). */ diff --git a/src/dbus/qdbusconnection.cpp b/src/dbus/qdbusconnection.cpp index 320787c265..f3676b1013 100644 --- a/src/dbus/qdbusconnection.cpp +++ b/src/dbus/qdbusconnection.cpp @@ -476,7 +476,7 @@ void QDBusConnection::disconnectFromPeer(const QString &name) reply. This is suitable for errors, signals, and return values as well as calls whose return values are not necessary. - Returns true if the message was queued successfully, false otherwise. + Returns \c true if the message was queued successfully, false otherwise. */ bool QDBusConnection::send(const QDBusMessage &message) const { @@ -506,7 +506,7 @@ bool QDBusConnection::send(const QDBusMessage &message) const that the slot will be called exactly once with the reply, as long as the parameter types match and no error occurs. - Returns true if the message was sent, or false if the message could + Returns \c true if the message was sent, or false if the message could not be sent. */ bool QDBusConnection::callWithCallback(const QDBusMessage &message, QObject *receiver, @@ -537,7 +537,7 @@ bool QDBusConnection::callWithCallback(const QDBusMessage &message, QObject *rec This function is dangerous because it cannot report errors, including the expiration of the timeout. - Returns true if the message was sent, or false if the message could + Returns \c true if the message was sent, or false if the message could not be sent. */ bool QDBusConnection::callWithCallback(const QDBusMessage &message, QObject *receiver, @@ -622,7 +622,7 @@ QDBusPendingCall QDBusConnection::asyncCall(const QDBusMessage &message, int tim denoting a connection to any signal of the (\a interface, \a name) pair, from any remote application. - Returns true if the connection was successful. + Returns \c true if the connection was successful. \warning The signal will only be delivered to the slot if the parameters match. This verification can be done only when the signal is received, not at connection time. @@ -643,7 +643,7 @@ bool QDBusConnection::connect(const QString &service, const QString &path, const that this signature can be delivered to the slot specified by \a slot and return false otherwise. - Returns true if the connection was successful. + Returns \c true if the connection was successful. \note This function verifies that the signal signature matches the slot's parameters, but it does not verify that the actual @@ -673,7 +673,7 @@ bool QDBusConnection::connect(const QString &service, const QString &path, const pass a QString that is empty but not null (i.e., QString("")). A null QString skips matching at that position. - Returns true if the connection was successful. + Returns \c true if the connection was successful. \note This function verifies that the signal signature matches the slot's parameters, but it does not verify that the actual @@ -717,7 +717,7 @@ bool QDBusConnection::connect(const QString &service, const QString &path, const and \a name parameters from the slot \a slot in object \a receiver. The arguments must be the same as passed to the connect() function. - Returns true if the disconnection was successful. + Returns \c true if the disconnection was successful. */ bool QDBusConnection::disconnect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot) @@ -733,7 +733,7 @@ bool QDBusConnection::disconnect(const QString &service, const QString &path, co object \a receiver. The arguments must be the same as passed to the connect() function. - Returns true if the disconnection was successful. + Returns \c true if the disconnection was successful. */ bool QDBusConnection::disconnect(const QString &service, const QString &path, const QString& interface, const QString &name, const QString &signature, @@ -751,7 +751,7 @@ bool QDBusConnection::disconnect(const QString &service, const QString &path, co the slot \a slot in object \a receiver. The arguments must be the same as passed to the connect() function. - Returns true if the disconnection was successful. + Returns \c true if the disconnection was successful. */ bool QDBusConnection::disconnect(const QString &service, const QString &path, const QString& interface, const QString &name, const QStringList &argumentMatch, const QString &signature, @@ -769,7 +769,7 @@ bool QDBusConnection::disconnect(const QString &service, const QString &path, co } /*! - Registers the object \a object at path \a path and returns true if + Registers the object \a object at path \a path and returns \c true if the registration was successful. The \a options parameter specifies how much of the object \a object will be exposed through D-Bus. @@ -949,7 +949,7 @@ void *QDBusConnection::internalPointer() const } /*! - Returns true if this QDBusConnection object is connected. + Returns \c true if this QDBusConnection object is connected. */ bool QDBusConnection::isConnected() const { @@ -1021,7 +1021,7 @@ QDBusConnection::ConnectionCapabilities QDBusConnection::connectionCapabilities( /*! Attempts to register the \a serviceName on the D-Bus server and - returns true if the registration succeeded. The registration will + returns \c true if the registration succeeded. The registration will fail if the name is already registered by another application. \sa unregisterService(), QDBusConnectionInterface::registerService() @@ -1037,7 +1037,7 @@ bool QDBusConnection::registerService(const QString &serviceName) /*! Unregisters the service \a serviceName that was previously - registered with registerService() and returns true if it + registered with registerService() and returns \c true if it succeeded. \sa registerService(), QDBusConnectionInterface::unregisterService() diff --git a/src/dbus/qdbusconnectioninterface.cpp b/src/dbus/qdbusconnectioninterface.cpp index d6f487d802..0bc3a1ad04 100644 --- a/src/dbus/qdbusconnectioninterface.cpp +++ b/src/dbus/qdbusconnectioninterface.cpp @@ -201,7 +201,7 @@ QDBusReply QDBusConnectionInterface::registeredServiceNames() const } /*! - Returns true if the service name \a serviceName has is currently + Returns \c true if the service name \a serviceName has is currently registered. */ QDBusReply QDBusConnectionInterface::isServiceRegistered(const QString &serviceName) const diff --git a/src/dbus/qdbuscontext.cpp b/src/dbus/qdbuscontext.cpp index 7cc3648cf8..9cc56570e7 100644 --- a/src/dbus/qdbuscontext.cpp +++ b/src/dbus/qdbuscontext.cpp @@ -118,11 +118,11 @@ QDBusContext::~QDBusContext() } /*! - Returns true if we are processing a D-Bus call. If this function - returns true, the rest of the functions in this class are + Returns \c true if we are processing a D-Bus call. If this function + returns \c true, the rest of the functions in this class are available. - Accessing those functions when this function returns false is + Accessing those functions when this function returns \c false is undefined and may lead to crashes. */ bool QDBusContext::calledFromDBus() const @@ -147,7 +147,7 @@ const QDBusMessage &QDBusContext::message() const } /*! - Returns true if this call will have a delayed reply. + Returns \c true if this call will have a delayed reply. \sa setDelayedReply() */ diff --git a/src/dbus/qdbuserror.cpp b/src/dbus/qdbuserror.cpp index ddc2be7c38..14f9491b43 100644 --- a/src/dbus/qdbuserror.cpp +++ b/src/dbus/qdbuserror.cpp @@ -382,7 +382,7 @@ QString QDBusError::message() const } /*! - Returns true if this is a valid error condition (i.e., if there was an error), + Returns \c true if this is a valid error condition (i.e., if there was an error), otherwise false. */ diff --git a/src/dbus/qdbusmessage.cpp b/src/dbus/qdbusmessage.cpp index ce5af42e74..ea18de141d 100644 --- a/src/dbus/qdbusmessage.cpp +++ b/src/dbus/qdbusmessage.cpp @@ -744,8 +744,8 @@ QDBusMessage::MessageType QDBusMessage::type() const for errors, signals, and return values as well as calls whose return values are not necessary. - Returns true if the message was queued successfully; - otherwise returns false. + Returns \c true if the message was queued successfully; + otherwise returns \c false. \sa QDBusConnection::send() */ diff --git a/src/dbus/qdbusmetatype.cpp b/src/dbus/qdbusmetatype.cpp index 804e80699a..b72d4c074d 100644 --- a/src/dbus/qdbusmetatype.cpp +++ b/src/dbus/qdbusmetatype.cpp @@ -226,7 +226,7 @@ void QDBusMetaType::registerMarshallOperators(int id, MarshallFunction mf, /*! \internal Executes the marshalling of type \a id (whose data is contained in - \a data) to the D-Bus marshalling argument \a arg. Returns true if + \a data) to the D-Bus marshalling argument \a arg. Returns \c true if the marshalling succeeded, or false if an error occurred. */ bool QDBusMetaType::marshall(QDBusArgument &arg, int id, const void *data) @@ -255,7 +255,7 @@ bool QDBusMetaType::marshall(QDBusArgument &arg, int id, const void *data) /*! \internal Executes the demarshalling of type \a id (whose data will be placed in - \a data) from the D-Bus marshalling argument \a arg. Returns true if + \a data) from the D-Bus marshalling argument \a arg. Returns \c true if the demarshalling succeeded, or false if an error occurred. */ bool QDBusMetaType::demarshall(const QDBusArgument &arg, int id, void *data) diff --git a/src/dbus/qdbuspendingcall.cpp b/src/dbus/qdbuspendingcall.cpp index e990e7d18b..de758b515b 100644 --- a/src/dbus/qdbuspendingcall.cpp +++ b/src/dbus/qdbuspendingcall.cpp @@ -302,7 +302,7 @@ QDBusPendingCall &QDBusPendingCall::operator=(const QDBusPendingCall &other) /*! \fn bool QDBusPendingCallWatcher::isFinished() const - Returns true if the pending call has finished processing and the + Returns \c true if the pending call has finished processing and the reply has been received. Note that this function only changes state if you call @@ -314,8 +314,8 @@ QDBusPendingCall &QDBusPendingCall::operator=(const QDBusPendingCall &other) /*! \fn bool QDBusPendingReply::isFinished() const - Returns true if the pending call has finished processing and the - reply has been received. If this function returns true, the + Returns \c true if the pending call has finished processing and the + reply has been received. If this function returns \c true, the isError(), error() and reply() methods should return valid information. @@ -343,7 +343,7 @@ void QDBusPendingCall::waitForFinished() /*! \fn bool QDBusPendingReply::isValid() const - Returns true if the reply contains a normal reply message, false + Returns \c true if the reply contains a normal reply message, false if it contains anything else. If the pending call has not finished processing, this function @@ -360,11 +360,11 @@ bool QDBusPendingCall::isValid() const /*! \fn bool QDBusPendingReply::isError() const - Returns true if the reply contains an error message, false if it + Returns \c true if the reply contains an error message, false if it contains a normal method reply. If the pending call has not finished processing, this function - also returns true. + also returns \c true. */ bool QDBusPendingCall::isError() const { @@ -425,7 +425,7 @@ QDBusMessage QDBusPendingCall::reply() const The callback will not be called if the reply is an error message. - This function returns true if it could set the callback, false + This function returns \c true if it could set the callback, false otherwise. It is not a guarantee that the callback will be called. diff --git a/src/dbus/qdbusreply.cpp b/src/dbus/qdbusreply.cpp index 650c523720..b1326c11f1 100644 --- a/src/dbus/qdbusreply.cpp +++ b/src/dbus/qdbusreply.cpp @@ -149,7 +149,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QDBusReply::isValid() const - Returns true if no error occurred; otherwise, returns false. + Returns \c true if no error occurred; otherwise, returns \c false. \sa error() */ diff --git a/src/dbus/qdbusserver.cpp b/src/dbus/qdbusserver.cpp index ae44d44045..170e6ff5cf 100644 --- a/src/dbus/qdbusserver.cpp +++ b/src/dbus/qdbusserver.cpp @@ -115,7 +115,7 @@ QDBusServer::~QDBusServer() } /*! - Returns true if this QDBusServer object is connected. + Returns \c true if this QDBusServer object is connected. If it isn't connected, you need to call the constructor again. */ diff --git a/src/dbus/qdbusservicewatcher.cpp b/src/dbus/qdbusservicewatcher.cpp index f99ee599c1..7a96665abe 100644 --- a/src/dbus/qdbusservicewatcher.cpp +++ b/src/dbus/qdbusservicewatcher.cpp @@ -322,7 +322,7 @@ void QDBusServiceWatcher::addWatchedService(const QString &newService) still be signals pending delivery about \a service. Those signals will still be emitted whenever the D-Bus messages are processed. - This function returns true if any services were removed. + This function returns \c true if any services were removed. */ bool QDBusServiceWatcher::removeWatchedService(const QString &service) { diff --git a/src/dbus/qdbusunixfiledescriptor.cpp b/src/dbus/qdbusunixfiledescriptor.cpp index db893337ae..63c5b40d06 100644 --- a/src/dbus/qdbusunixfiledescriptor.cpp +++ b/src/dbus/qdbusunixfiledescriptor.cpp @@ -197,7 +197,7 @@ QDBusUnixFileDescriptor::~QDBusUnixFileDescriptor() */ /*! - Returns true if this Unix file descriptor is valid. A valid Unix file + Returns \c true if this Unix file descriptor is valid. A valid Unix file descriptor is not -1. \sa fileDescriptor() @@ -231,11 +231,11 @@ int QDBusUnixFileDescriptor::fileDescriptor() const // qdoc documentation is generated on Unix /*! - Returns true if Unix file descriptors are supported on this platform. In - other words, this function returns true if this is a Unix platform. + Returns \c true if Unix file descriptors are supported on this platform. In + other words, this function returns \c true if this is a Unix platform. Note that QDBusUnixFileDescriptor continues to operate even if this - function returns false. The only difference is that the + function returns \c false. The only difference is that the QDBusUnixFileDescriptor objects will always be in the isValid() == false state and fileDescriptor() will always return -1. The class will not consume any operating system resources. diff --git a/src/dbus/qdbusutil.cpp b/src/dbus/qdbusutil.cpp index c90490df7f..c77908ef89 100644 --- a/src/dbus/qdbusutil.cpp +++ b/src/dbus/qdbusutil.cpp @@ -350,7 +350,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidInterfaceName(const QString &ifaceName) - Returns true if this is \a ifaceName is a valid interface name. + Returns \c true if this is \a ifaceName is a valid interface name. Valid interface names must: \list @@ -379,7 +379,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidUniqueConnectionName(const QString &connName) - Returns true if \a connName is a valid unique connection name. + Returns \c true if \a connName is a valid unique connection name. Unique connection names start with a colon (":") and are followed by a list of dot-separated components composed of ASCII letters, digits, the hyphen or the underscore ("_") character. @@ -410,7 +410,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidBusName(const QString &busName) - Returns true if \a busName is a valid bus name. + Returns \c true if \a busName is a valid bus name. A valid bus name is either a valid unique connection name or follows the rules: \list @@ -453,7 +453,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidMemberName(const QString &memberName) - Returns true if \a memberName is a valid member name. A valid member name does not exceed + Returns \c true if \a memberName is a valid member name. A valid member name does not exceed 255 characters in length, is not empty, is composed only of ASCII letters, digits and underscores, but does not start with a digit. */ @@ -473,7 +473,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidErrorName(const QString &errorName) - Returns true if \a errorName is a valid error name. Valid error names are valid interface + Returns \c true if \a errorName is a valid error name. Valid error names are valid interface names and vice-versa, so this function is actually an alias for isValidInterfaceName. */ bool isValidErrorName(const QString &errorName) @@ -483,7 +483,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidObjectPath(const QString &path) - Returns true if \a path is valid object path. + Returns \c true if \a path is valid object path. Valid object paths follow the rules: \list @@ -516,7 +516,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidBasicType(int type) - Returns true if \a c is a valid, basic D-Bus type. + Returns \c true if \a c is a valid, basic D-Bus type. */ bool isValidBasicType(int c) { @@ -525,7 +525,7 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidFixedType(int type) - Returns true if \a c is a valid, fixed D-Bus type. + Returns \c true if \a c is a valid, fixed D-Bus type. */ bool isValidFixedType(int c) { @@ -535,8 +535,8 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidSignature(const QString &signature) - Returns true if \a signature is a valid D-Bus type signature for one or more types. - This function returns true if it can all of \a signature into valid, individual types and no + Returns \c true if \a signature is a valid D-Bus type signature for one or more types. + This function returns \c true if it can all of \a signature into valid, individual types and no characters remain in \a signature. \sa isValidSingleSignature() @@ -556,9 +556,9 @@ namespace QDBusUtil /*! \fn bool QDBusUtil::isValidSingleSignature(const QString &signature) - Returns true if \a signature is a valid D-Bus type signature for exactly one full type. This + Returns \c true if \a signature is a valid D-Bus type signature for exactly one full type. This function tries to convert the type signature into a D-Bus type and, if it succeeds and no - characters remain in the signature, it returns true. + characters remain in the signature, it returns \c true. */ bool isValidSingleSignature(const QString &signature) { diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index e7827407f9..b8771ec583 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -727,7 +727,7 @@ QAccessibleInterface *QAccessible::accessibleInterface(Id id) /*! - Returns true if the platform requested accessibility information. + Returns \c true if the platform requested accessibility information. This function will return false until a tool such as a screen reader accessed the accessibility framework. It is still possible to use @@ -992,9 +992,9 @@ QPair< int, int > QAccessible::qAccessibleTextBoundaryHelper(const QTextCursor & /*! \fn bool QAccessibleInterface::isValid() const - Returns true if all the data necessary to use this interface + Returns \c true if all the data necessary to use this interface implementation is valid (e.g. all pointers are non-null); - otherwise returns false. + otherwise returns \c false. \sa object() */ @@ -2297,25 +2297,25 @@ QString QAccessibleTextInterface::textAtOffset(int offset, QAccessible::TextBoun /*! \fn virtual bool QAccessibleTableInterface::selectRow(int row) Selects \a row. This function might unselect all previously selected rows. - Returns true if the selection was successful. + Returns \c true if the selection was successful. */ /*! \fn virtual bool QAccessibleTableInterface::selectColumn(int column) Selects \a column. This function might unselect all previously selected columns. - Returns true if the selection was successful. + Returns \c true if the selection was successful. */ /*! \fn virtual bool QAccessibleTableInterface::unselectRow(int row) Unselects \a row, leaving other selected rows selected (if any). - Returns true if the selection was successful. + Returns \c true if the selection was successful. */ /*! \fn virtual bool QAccessibleTableInterface::unselectColumn(int column) Unselects \a column, leaving other selected columns selected (if any). - Returns true if the selection was successful. + Returns \c true if the selection was successful. */ /*! diff --git a/src/gui/image/qicon.cpp b/src/gui/image/qicon.cpp index 5a37a8fecf..c1a8cfaa1e 100644 --- a/src/gui/image/qicon.cpp +++ b/src/gui/image/qicon.cpp @@ -859,7 +859,7 @@ void QIcon::paint(QPainter *painter, const QRect &rect, Qt::Alignment alignment, */ /*! - Returns true if the icon is empty; otherwise returns false. + Returns \c true if the icon is empty; otherwise returns \c false. An icon is empty if it has neither a pixmap nor a filename. @@ -1136,8 +1136,8 @@ QIcon QIcon::fromTheme(const QString &name, const QIcon &fallback) /*! \since 4.6 - Returns true if there is an icon available for \a name in the - current icon theme, otherwise returns false. + Returns \c true if there is an icon available for \a name in the + current icon theme, otherwise returns \c false. \sa themeSearchPaths(), fromTheme(), setThemeName() */ diff --git a/src/gui/image/qiconengine.cpp b/src/gui/image/qiconengine.cpp index 6bb1589621..ce52b9fcf1 100644 --- a/src/gui/image/qiconengine.cpp +++ b/src/gui/image/qiconengine.cpp @@ -205,7 +205,7 @@ QString QIconEngine::key() const /*! Reads icon engine contents from the QDataStream \a in. Returns - true if the contents were read; otherwise returns false. + true if the contents were read; otherwise returns \c false. QIconEngine's default implementation always return false. */ @@ -216,7 +216,7 @@ bool QIconEngine::read(QDataStream &) /*! Writes the contents of this engine to the QDataStream \a out. - Returns true if the contents were written; otherwise returns false. + Returns \c true if the contents were written; otherwise returns \c false. QIconEngine's default implementation always return false. */ diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index 28af8adf9c..234742e6b9 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -1264,7 +1264,7 @@ QImage QImage::copy(const QRect& r) const /*! \fn bool QImage::isNull() const - Returns true if it is a null image, otherwise returns false. + Returns \c true if it is a null image, otherwise returns \c false. A null image has all parameters set to zero and no allocated data. */ @@ -4140,8 +4140,8 @@ QImage QImage::convertToFormat(Format format, const QVector &colorTable, Q /*! \fn bool QImage::valid(const QPoint &pos) const - Returns true if \a pos is a valid coordinate pair within the - image; otherwise returns false. + Returns \c true if \a pos is a valid coordinate pair within the + image; otherwise returns \c false. \sa rect(), QRect::contains() */ @@ -4149,8 +4149,8 @@ QImage QImage::convertToFormat(Format format, const QVector &colorTable, Q /*! \overload - Returns true if QPoint(\a x, \a y) is a valid coordinate pair - within the image; otherwise returns false. + Returns \c true if QPoint(\a x, \a y) is a valid coordinate pair + within the image; otherwise returns \c false. */ bool QImage::valid(int x, int y) const { @@ -4343,7 +4343,7 @@ void QImage::setPixel(int x, int y, uint index_or_rgb) } /*! - Returns true if all the colors in the image are shades of gray + Returns \c true if all the colors in the image are shades of gray (i.e. their red, green and blue components are equal); otherwise false. @@ -4418,9 +4418,9 @@ bool QImage::allGray() const /*! For 32-bit images, this function is equivalent to allGray(). - For 8-bpp images, this function returns true if color(i) is + For 8-bpp images, this function returns \c true if color(i) is QRgb(i, i, i) for all indexes of the color table; otherwise - returns false. + returns \c false. \sa allGray(), {QImage#Image Formats}{Image Formats} */ @@ -5018,9 +5018,9 @@ QImage QImage::rgbSwapped() const } /*! - Loads an image from the file with the given \a fileName. Returns true if + Loads an image from the file with the given \a fileName. Returns \c true if the image was successfully loaded; otherwise invalidates the image - and returns false. + and returns \c false. The loader attempts to read the image using the specified \a format, e.g., PNG or JPG. If \a format is not specified (which is the default), the @@ -5060,8 +5060,8 @@ bool QImage::load(QIODevice* device, const char* format) \fn bool QImage::loadFromData(const uchar *data, int len, const char *format) Loads an image from the first \a len bytes of the given binary \a - data. Returns true if the image was successfully loaded; otherwise - invalidates the image and returns false. + data. Returns \c true if the image was successfully loaded; otherwise + invalidates the image and returns \c false. The loader attempts to read the image using the specified \a format, e.g., PNG or JPG. If \a format is not specified (which is the default), the @@ -5132,8 +5132,8 @@ QImage QImage::fromData(const uchar *data, int size, const char *format) 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings. - Returns true if the image was successfully saved; otherwise - returns false. + Returns \c true if the image was successfully saved; otherwise + returns \c false. \sa {QImage#Reading and Writing Image Files}{Reading and Writing Image Files} @@ -5238,8 +5238,8 @@ QDataStream &operator>>(QDataStream &s, QImage &image) /*! \fn bool QImage::operator==(const QImage & image) const - Returns true if this image and the given \a image have the same - contents; otherwise returns false. + Returns \c true if this image and the given \a image have the same + contents; otherwise returns \c false. The comparison can be slow, unless there is some obvious difference (e.g. different size or format), in which case the @@ -5303,8 +5303,8 @@ bool QImage::operator==(const QImage & i) const /*! \fn bool QImage::operator!=(const QImage & image) const - Returns true if this image and the given \a image have different - contents; otherwise returns false. + Returns \c true if this image and the given \a image have different + contents; otherwise returns \c false. The comparison can be slow, unless there is some obvious difference, such as different widths, in which case the function @@ -5835,7 +5835,7 @@ qint64 QImage::cacheKey() const /*! \internal - Returns true if the image is detached; otherwise returns false. + Returns \c true if the image is detached; otherwise returns \c false. \sa detach(), {Implicit Data Sharing} */ @@ -6021,8 +6021,8 @@ QImage QImage::alphaChannel() const } /*! - Returns true if the image has a format that respects the alpha - channel, otherwise returns false. + Returns \c true if the image has a format that respects the alpha + channel, otherwise returns \c false. \sa {QImage#Image Information}{Image Information} */ diff --git a/src/gui/image/qimageiohandler.cpp b/src/gui/image/qimageiohandler.cpp index 055ace9985..04e3213c53 100644 --- a/src/gui/image/qimageiohandler.cpp +++ b/src/gui/image/qimageiohandler.cpp @@ -52,7 +52,7 @@ Call setDevice() to assign a device to the handler, and setFormat() to assign a format to it. One QImageIOHandler may - support more than one image format. canRead() returns true if an + support more than one image format. canRead() returns \c true if an image can be read from the device, and read() and write() return true if reading or writing an image was completed successfully. @@ -342,7 +342,7 @@ QByteArray QImageIOHandler::format() const \fn bool QImageIOHandler::read(QImage *image) Read an image from the device, and stores it in \a image. - Returns true if the image is successfully read; otherwise returns + Returns \c true if the image is successfully read; otherwise returns false. For image formats that support incremental loading, and for animation @@ -355,10 +355,10 @@ QByteArray QImageIOHandler::format() const /*! \fn bool QImageIOHandler::canRead() const - Returns true if an image can be read from the device (i.e., the + Returns \c true if an image can be read from the device (i.e., the image format is supported, the device can be read from and the initial header information suggests that the image can be read); - otherwise returns false. + otherwise returns \c false. When reimplementing canRead(), make sure that the I/O device (device()) is left in its original state (e.g., by using peek() @@ -379,10 +379,10 @@ QByteArray QImageIOHandler::name() const } /*! - Writes the image \a image to the assigned device. Returns true on - success; otherwise returns false. + Writes the image \a image to the assigned device. Returns \c true on + success; otherwise returns \c false. - The default implementation does nothing, and simply returns false. + The default implementation does nothing, and simply returns \c false. */ bool QImageIOHandler::write(const QImage &image) { @@ -415,8 +415,8 @@ QVariant QImageIOHandler::option(ImageOption option) const } /*! - Returns true if the QImageIOHandler supports the option \a option; - otherwise returns false. For example, if the QImageIOHandler + Returns \c true if the QImageIOHandler supports the option \a option; + otherwise returns \c false. For example, if the QImageIOHandler supports the \l Size option, supportsOption(Size) must return true. @@ -461,7 +461,7 @@ QRect QImageIOHandler::currentImageRect() const not support animation, or if it is unable to determine the number of images, 0 is returned. - The default implementation returns 1 if canRead() returns true; + The default implementation returns 1 if canRead() returns \c true; otherwise 0 is returned. */ int QImageIOHandler::imageCount() const @@ -473,7 +473,7 @@ int QImageIOHandler::imageCount() const For image formats that support animation, this function jumps to the next image. - The default implementation does nothing, and returns false. + The default implementation does nothing, and returns \c false. */ bool QImageIOHandler::jumpToNextImage() { @@ -485,7 +485,7 @@ bool QImageIOHandler::jumpToNextImage() whose sequence number is \a imageNumber. The next call to read() will attempt to read this image. - The default implementation does nothing, and returns false. + The default implementation does nothing, and returns \c false. */ bool QImageIOHandler::jumpToImage(int imageNumber) { diff --git a/src/gui/image/qimagereader.cpp b/src/gui/image/qimagereader.cpp index 5c5b1fa0be..636d86991b 100644 --- a/src/gui/image/qimagereader.cpp +++ b/src/gui/image/qimagereader.cpp @@ -761,8 +761,8 @@ void QImageReader::setAutoDetectImageFormat(bool enabled) } /*! - Returns true if image format autodetection is enabled on this image - reader; otherwise returns false. By default, autodetection is enabled. + Returns \c true if image format autodetection is enabled on this image + reader; otherwise returns \c false. By default, autodetection is enabled. \sa setAutoDetectImageFormat() */ @@ -1089,7 +1089,7 @@ QColor QImageReader::backgroundColor() const /*! \since 4.1 - Returns true if the image format supports animation; + Returns \c true if the image format supports animation; otherwise, false is returned. \sa QMovie::supportedFormats() @@ -1104,15 +1104,15 @@ bool QImageReader::supportsAnimation() const } /*! - Returns true if an image can be read for the device (i.e., the + Returns \c true if an image can be read for the device (i.e., the image format is supported, and the device seems to contain valid - data); otherwise returns false. + data); otherwise returns \c false. canRead() is a lightweight function that only does a quick test to see if the image data is valid. read() may still return false - after canRead() returns true, if the image data is corrupt. + after canRead() returns \c true, if the image data is corrupt. - For images that support animation, canRead() returns false when + For images that support animation, canRead() returns \c false when all frames have been read. \sa read(), supportedImageFormats() @@ -1149,7 +1149,7 @@ QImage QImageReader::read() \overload Reads an image from the device into \a image, which must point to a - QImage. Returns true on success; otherwise, returns false. + QImage. Returns \c true on success; otherwise, returns \c false. If \a image has same format and size as the image data that is about to be read, this function may not need to allocate a new image before @@ -1393,7 +1393,7 @@ QString QImageReader::errorString() const /*! \since 4.2 - Returns true if the reader supports \a option; otherwise returns + Returns \c true if the reader supports \a option; otherwise returns false. Different image formats support different options. Call this function to diff --git a/src/gui/image/qimagewriter.cpp b/src/gui/image/qimagewriter.cpp index c502a01df5..e4065724be 100644 --- a/src/gui/image/qimagewriter.cpp +++ b/src/gui/image/qimagewriter.cpp @@ -58,7 +58,7 @@ object. Pass either a file name or a device pointer, and the image format to QImageWriter's constructor. You can then set several options, such as the gamma level (by calling setGamma()) - and quality (by calling setQuality()). canWrite() returns true if + and quality (by calling setQuality()). canWrite() returns \c true if QImageWriter can write the image (i.e., the image format is supported and the device is open for writing). Call write() to write the image to the device. @@ -554,7 +554,7 @@ void QImageWriter::setText(const QString &key, const QString &text) } /*! - Returns true if QImageWriter can write the image; i.e., the image + Returns \c true if QImageWriter can write the image; i.e., the image format is supported and the assigned device is open for reading. \sa write(), setDevice(), setFormat() @@ -580,7 +580,7 @@ bool QImageWriter::canWrite() const /*! Writes the image \a image to the assigned device or file - name. Returns true on success; otherwise returns false. If the + name. Returns \c true on success; otherwise returns \c false. If the operation fails, you can call error() to find the type of error that occurred, or errorString() to get a human readable description of the error. @@ -631,7 +631,7 @@ QString QImageWriter::errorString() const /*! \since 4.2 - Returns true if the writer supports \a option; otherwise returns + Returns \c true if the writer supports \a option; otherwise returns false. Different image formats support different options. Call this function to diff --git a/src/gui/image/qmovie.cpp b/src/gui/image/qmovie.cpp index 26e35c6db6..25d875ee11 100644 --- a/src/gui/image/qmovie.cpp +++ b/src/gui/image/qmovie.cpp @@ -777,8 +777,8 @@ QImage QMovie::currentImage() const } /*! - Returns true if the movie is valid (e.g., the image data is readable and - the image format is supported); otherwise returns false. + Returns \c true if the movie is valid (e.g., the image data is readable and + the image format is supported); otherwise returns \c false. */ bool QMovie::isValid() const { @@ -819,7 +819,7 @@ int QMovie::currentFrameNumber() const } /*! - Jumps to the next frame. Returns true on success; otherwise returns false. + Jumps to the next frame. Returns \c true on success; otherwise returns \c false. */ bool QMovie::jumpToNextFrame() { @@ -828,8 +828,8 @@ bool QMovie::jumpToNextFrame() } /*! - Jumps to frame number \a frameNumber. Returns true on success; otherwise - returns false. + Jumps to frame number \a frameNumber. Returns \c true on success; otherwise + returns \c false. */ bool QMovie::jumpToFrame(int frameNumber) { diff --git a/src/gui/image/qpicture.cpp b/src/gui/image/qpicture.cpp index e11d3bb019..ec89b405b5 100644 --- a/src/gui/image/qpicture.cpp +++ b/src/gui/image/qpicture.cpp @@ -191,7 +191,7 @@ int QPicture::devType() const /*! \fn bool QPicture::isNull() const - Returns true if the picture contains no data; otherwise returns + Returns \c true if the picture contains no data; otherwise returns false. */ @@ -256,7 +256,7 @@ void QPicture::setData(const char* data, uint size) /*! Loads a picture from the file specified by \a fileName and returns - true if successful; otherwise invalidates the picture and returns false. + true if successful; otherwise invalidates the picture and returns \c false. Please note that the \a format parameter has been deprecated and will have no effect. @@ -304,7 +304,7 @@ bool QPicture::load(QIODevice *dev, const char *format) /*! Saves a picture to the file specified by \a fileName and returns - true if successful; otherwise returns false. + true if successful; otherwise returns \c false. Please note that the \a format parameter has been deprecated and will have no effect. @@ -406,8 +406,8 @@ void QPicture::setBoundingRect(const QRect &r) } /*! - Replays the picture using \a painter, and returns true if - successful; otherwise returns false. + Replays the picture using \a painter, and returns \c true if + successful; otherwise returns \c false. This function does exactly the same as QPainter::drawPicture() with (x, y) = (0, 0). @@ -1836,8 +1836,8 @@ QList QPictureIO::outputFormats() /*! - Reads an picture into memory and returns true if the picture was - successfully read; otherwise returns false. + Reads an picture into memory and returns \c true if the picture was + successfully read; otherwise returns \c false. Before reading an picture you must set an IO device or a file name. If both an IO device and a file name have been set, the IO device @@ -1909,8 +1909,8 @@ bool QPictureIO::read() /*! - Writes an picture to an IO device and returns true if the picture was - successfully written; otherwise returns false. + Writes an picture to an IO device and returns \c true if the picture was + successfully written; otherwise returns \c false. Before writing an picture you must set an IO device or a file name. If both an IO device and a file name have been set, the IO device diff --git a/src/gui/image/qpictureformatplugin.cpp b/src/gui/image/qpictureformatplugin.cpp index 29d6912201..c87b9ba6ac 100644 --- a/src/gui/image/qpictureformatplugin.cpp +++ b/src/gui/image/qpictureformatplugin.cpp @@ -106,8 +106,8 @@ QPictureFormatPlugin::~QPictureFormatPlugin() /*! Loads the picture stored in the file called \a fileName, with the - given \a format, into *\a picture. Returns true on success; - otherwise returns false. + given \a format, into *\a picture. Returns \c true on success; + otherwise returns \c false. \sa savePicture() */ @@ -121,8 +121,8 @@ bool QPictureFormatPlugin::loadPicture(const QString &format, const QString &fil /*! Saves the given \a picture into the file called \a fileName, - using the specified \a format. Returns true on success; otherwise - returns false. + using the specified \a format. Returns \c true on success; otherwise + returns \c false. \sa loadPicture() */ diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index bb48a4b3a5..5f51358eb2 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -418,7 +418,7 @@ QPixmap::operator QVariant() const /*! \fn bool QPixmap::operator!() const - Returns true if this is a null pixmap; otherwise returns false. + Returns \c true if this is a null pixmap; otherwise returns \c false. \sa isNull() */ @@ -484,7 +484,7 @@ QMatrix QPixmap::trueMatrix(const QMatrix &m, int w, int h) /*! \fn bool QPixmap::isQBitmap() const - Returns true if this is a QBitmap; otherwise returns false. + Returns \c true if this is a QBitmap; otherwise returns \c false. */ bool QPixmap::isQBitmap() const @@ -495,7 +495,7 @@ bool QPixmap::isQBitmap() const /*! \fn bool QPixmap::isNull() const - Returns true if this is a null pixmap; otherwise returns false. + Returns \c true if this is a null pixmap; otherwise returns \c false. A null pixmap has zero width, zero height and no contents. You cannot draw in a null pixmap. @@ -740,7 +740,7 @@ QBitmap QPixmap::createMaskFromColor(const QColor &maskColor, Qt::MaskMode mode) /*! Loads a pixmap from the file with the given \a fileName. Returns true if the pixmap was successfully loaded; otherwise invalidates - the pixmap and returns false. + the pixmap and returns \c false. The loader attempts to read the pixmap using the specified \a format. If the \a format is not specified (which is the default), @@ -806,8 +806,8 @@ bool QPixmap::load(const QString &fileName, const char *format, Qt::ImageConvers \fn bool QPixmap::loadFromData(const uchar *data, uint len, const char *format, Qt::ImageConversionFlags flags) Loads a pixmap from the \a len first bytes of the given binary \a - data. Returns true if the pixmap was loaded successfully; - otherwise invalidates the pixmap and returns false. + data. Returns \c true if the pixmap was loaded successfully; + otherwise invalidates the pixmap and returns \c false. The loader attempts to read the pixmap using the specified \a format. If the \a format is not specified (which is the default), @@ -850,8 +850,8 @@ bool QPixmap::loadFromData(const uchar *buf, uint len, const char *format, Qt::I /*! Saves the pixmap to the file with the given \a fileName using the - specified image file \a format and \a quality factor. Returns true - if successful; otherwise returns false. + specified image file \a format and \a quality factor. Returns \c true + if successful; otherwise returns \c false. The \a quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed @@ -1086,7 +1086,7 @@ bool QPixmap::isDetached() const Replaces this pixmap's data with the given \a image using the specified \a flags to control the conversion. The \a flags argument is a bitwise-OR of the \l{Qt::ImageConversionFlags}. - Passing 0 for \a flags sets all the default options. Returns true + Passing 0 for \a flags sets all the default options. Returns \c true if the result is that this pixmap is not null. Note: this function was part of Qt 3 support in Qt 4.6 and earlier. @@ -1292,8 +1292,8 @@ QPixmap QPixmap::transformed(const QMatrix &matrix, Qt::TransformationMode mode) and for direct pixel access and manipulation, while QPixmap is designed and optimized for showing images on screen. QBitmap is only a convenience class that inherits QPixmap, ensuring a depth - of 1. The isQBitmap() function returns true if a QPixmap object is - really a bitmap, otherwise returns false. Finally, the QPicture class + of 1. The isQBitmap() function returns \c true if a QPixmap object is + really a bitmap, otherwise returns \c false. Finally, the QPicture class is a paint device that records and replays QPainter commands. A QPixmap can easily be displayed on the screen using QLabel or @@ -1378,8 +1378,8 @@ QPixmap QPixmap::transformed(const QMatrix &matrix, Qt::TransformationMode mode) \li Alpha component \li - The hasAlphaChannel() returns true if the pixmap has a format that - respects the alpha channel, otherwise returns false. The hasAlpha(), + The hasAlphaChannel() returns \c true if the pixmap has a format that + respects the alpha channel, otherwise returns \c false. The hasAlpha(), setMask() and mask() functions are legacy and should not be used. They are potentially very slow. @@ -1457,8 +1457,8 @@ QPixmap QPixmap::transformed(const QMatrix &matrix, Qt::TransformationMode mode) */ /*! - Returns true if this pixmap has an alpha channel, \e or has a - mask, otherwise returns false. + Returns \c true if this pixmap has an alpha channel, \e or has a + mask, otherwise returns \c false. \sa hasAlphaChannel(), mask() */ @@ -1468,8 +1468,8 @@ bool QPixmap::hasAlpha() const } /*! - Returns true if the pixmap has a format that respects the alpha - channel, otherwise returns false. + Returns \c true if the pixmap has a format that respects the alpha + channel, otherwise returns \c false. \sa hasAlpha() */ diff --git a/src/gui/image/qpixmapcache.cpp b/src/gui/image/qpixmapcache.cpp index f4d2afed7a..dbfe46a455 100644 --- a/src/gui/image/qpixmapcache.cpp +++ b/src/gui/image/qpixmapcache.cpp @@ -132,7 +132,7 @@ QPixmapCache::Key::~Key() /*! \internal - Returns true if this key is the same as the given \a key; otherwise returns + Returns \c true if this key is the same as the given \a key; otherwise returns false. */ bool QPixmapCache::Key::operator ==(const Key &key) const @@ -234,7 +234,7 @@ QPMCache::~QPMCache() the timer is not restarted when the pixmap becomes unused, but it does restart once something else is added (i.e. the cache space is actually needed). - Returns true if any were removed. + Returns \c true if any were removed. */ bool QPMCache::flushDetachedPixmaps(bool nt) { @@ -493,7 +493,7 @@ bool QPixmapCache::find(const QString &key, QPixmap& pixmap) /*! Looks for a cached pixmap associated with the given \a key in the cache. If the pixmap is found, the function sets \a pixmap to that pixmap and - returns true; otherwise it leaves \a pixmap alone and returns false. + returns \c true; otherwise it leaves \a pixmap alone and returns \c false. \since 4.6 @@ -512,7 +512,7 @@ bool QPixmapCache::find(const QString &key, QPixmap* pixmap) /*! Looks for a cached pixmap associated with the given \a key in the cache. If the pixmap is found, the function sets \a pixmap to that pixmap and - returns true; otherwise it leaves \a pixmap alone and returns false. If + returns \c true; otherwise it leaves \a pixmap alone and returns \c false. If the pixmap is not found, it means that the \a key is no longer valid, so it will be released for the next insertion. @@ -543,8 +543,8 @@ bool QPixmapCache::find(const Key &key, QPixmap* pixmap) The oldest pixmaps (least recently accessed in the cache) are deleted when more space is needed. - The function returns true if the object was inserted into the - cache; otherwise it returns false. + The function returns \c true if the object was inserted into the + cache; otherwise it returns \c false. \sa setCacheLimit() */ @@ -576,8 +576,8 @@ QPixmapCache::Key QPixmapCache::insert(const QPixmap &pixmap) /*! Replaces the pixmap associated with the given \a key with the \a pixmap - specified. Returns true if the \a pixmap has been correctly inserted into - the cache; otherwise returns false. + specified. Returns \c true if the \a pixmap has been correctly inserted into + the cache; otherwise returns \c false. \sa setCacheLimit(), insert() diff --git a/src/gui/itemmodels/qstandarditemmodel.cpp b/src/gui/itemmodels/qstandarditemmodel.cpp index 955d72f2ca..7341c4c6f6 100644 --- a/src/gui/itemmodels/qstandarditemmodel.cpp +++ b/src/gui/itemmodels/qstandarditemmodel.cpp @@ -1559,8 +1559,8 @@ void QStandardItem::insertColumns(int column, int count) \fn bool QStandardItemModel::insertRow(int row, const QModelIndex &parent) Inserts a single row before the given \a row in the child items of the - \a parent specified. Returns true if the row is inserted; otherwise - returns false. + \a parent specified. Returns \c true if the row is inserted; otherwise + returns \c false. \sa insertRows(), insertColumn(), removeRow() */ @@ -1569,8 +1569,8 @@ void QStandardItem::insertColumns(int column, int count) \fn bool QStandardItemModel::insertColumn(int column, const QModelIndex &parent) Inserts a single column before the given \a column in the child items of - the \a parent specified. Returns true if the column is inserted; otherwise - returns false. + the \a parent specified. Returns \c true if the column is inserted; otherwise + returns \c false. \sa insertColumns(), insertRow(), removeColumn() */ @@ -1672,7 +1672,7 @@ void QStandardItem::removeColumns(int column, int count) } /*! - Returns true if this item has any children; otherwise returns false. + Returns \c true if this item has any children; otherwise returns \c false. \sa rowCount(), columnCount(), child() */ @@ -1803,7 +1803,7 @@ QList QStandardItem::takeColumn(int column) } /*! - Returns true if this item is less than \a other; otherwise returns false. + Returns \c true if this item is less than \a other; otherwise returns \c false. The default implementation uses the data for the item's sort role (see QStandardItemModel::sortRole) to perform the comparison if the item diff --git a/src/gui/kernel/qclipboard.cpp b/src/gui/kernel/qclipboard.cpp index f0b1f16ba2..3c2d36ce86 100644 --- a/src/gui/kernel/qclipboard.cpp +++ b/src/gui/kernel/qclipboard.cpp @@ -475,8 +475,8 @@ void QClipboard::setPixmap(const QPixmap &pixmap, Mode mode) /*! - Returns true if the clipboard supports mouse selection; otherwise - returns false. + Returns \c true if the clipboard supports mouse selection; otherwise + returns \c false. */ bool QClipboard::supportsSelection() const { @@ -484,8 +484,8 @@ bool QClipboard::supportsSelection() const } /*! - Returns true if the clipboard supports a separate search buffer; otherwise - returns false. + Returns \c true if the clipboard supports a separate search buffer; otherwise + returns \c false. */ bool QClipboard::supportsFindBuffer() const { @@ -493,8 +493,8 @@ bool QClipboard::supportsFindBuffer() const } /*! - Returns true if this clipboard object owns the clipboard data; - otherwise returns false. + Returns \c true if this clipboard object owns the clipboard data; + otherwise returns \c false. */ bool QClipboard::ownsClipboard() const { @@ -502,8 +502,8 @@ bool QClipboard::ownsClipboard() const } /*! - Returns true if this clipboard object owns the mouse selection - data; otherwise returns false. + Returns \c true if this clipboard object owns the mouse selection + data; otherwise returns \c false. */ bool QClipboard::ownsSelection() const { @@ -513,8 +513,8 @@ bool QClipboard::ownsSelection() const /*! \since 4.2 - Returns true if this clipboard object owns the find buffer data; - otherwise returns false. + Returns \c true if this clipboard object owns the find buffer data; + otherwise returns \c false. */ bool QClipboard::ownsFindBuffer() const { @@ -524,15 +524,15 @@ bool QClipboard::ownsFindBuffer() const /*! \internal \fn bool QClipboard::supportsMode(Mode mode) const; - Returns true if the clipboard supports the clipboard mode speacified by \a mode; - otherwise returns false. + Returns \c true if the clipboard supports the clipboard mode speacified by \a mode; + otherwise returns \c false. */ /*! \internal \fn bool QClipboard::ownsMode(Mode mode) const; - Returns true if the clipboard supports the clipboard data speacified by \a mode; - otherwise returns false. + Returns \c true if the clipboard supports the clipboard data speacified by \a mode; + otherwise returns \c false. */ /*! diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index e11c4671e6..ef9a3a1225 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -1028,8 +1028,8 @@ Qt::KeyboardModifiers QKeyEvent::modifiers() const \fn bool QKeyEvent::matches(QKeySequence::StandardKey key) const \since 4.2 - Returns true if the key event matches the given standard \a key; - otherwise returns false. + Returns \c true if the key event matches the given standard \a key; + otherwise returns \c false. */ bool QKeyEvent::matches(QKeySequence::StandardKey matchKey) const { @@ -1045,8 +1045,8 @@ bool QKeyEvent::matches(QKeySequence::StandardKey matchKey) const /*! \fn bool QKeyEvent::isAutoRepeat() const - Returns true if this event comes from an auto-repeating key; - returns false if it comes from an initial key press. + Returns \c true if this event comes from an auto-repeating key; + returns \c false if it comes from an initial key press. Note that if the event is a multiple-key compressed event that is partly due to auto-repeat, this function could return either true @@ -1113,14 +1113,14 @@ Qt::FocusReason QFocusEvent::reason() const /*! \fn bool QFocusEvent::gotFocus() const - Returns true if type() is QEvent::FocusIn; otherwise returns + Returns \c true if type() is QEvent::FocusIn; otherwise returns false. */ /*! \fn bool QFocusEvent::lostFocus() const - Returns true if type() is QEvent::FocusOut; otherwise returns + Returns \c true if type() is QEvent::FocusOut; otherwise returns false. */ @@ -1359,7 +1359,7 @@ QResizeEvent::~QResizeEvent() If the last top-level window is closed, the QApplication::lastWindowClosed() signal is emitted. - The isAccepted() function returns true if the event's receiver has + The isAccepted() function returns \c true if the event's receiver has agreed to close the widget; call accept() to agree to close the widget and call ignore() if the receiver of this event does not want the widget to be closed. @@ -2875,7 +2875,7 @@ QActionEvent::~QActionEvent() window manager controls, either by iconifying the window or by switching to another virtual desktop where the window isn't visible. The window will become hidden but not withdrawn. If the - window was iconified, QWidget::isMinimized() returns true. + window was iconified, QWidget::isMinimized() returns \c true. \sa QShowEvent */ @@ -2988,7 +2988,7 @@ QFileOpenEvent::~QFileOpenEvent() \fn bool QFileOpenEvent::openFile(QFile &file, QIODevice::OpenMode flags) const Opens a QFile on the \a file referenced by this event in the mode specified - by \a flags. Returns true if successful; otherwise returns false. + by \a flags. Returns \c true if successful; otherwise returns \c false. This is necessary as some files cannot be opened by name, but require specific information stored in this event. @@ -3428,7 +3428,7 @@ QDebug operator<<(QDebug dbg, const QEvent *e) { /*! \fn bool QShortcutEvent::isAmbiguous() const - Returns true if the key sequence that triggered the event is + Returns \c true if the key sequence that triggered the event is ambiguous. \sa QShortcut::activatedAmbiguously() diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index c7eefdbefa..47efc98474 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -645,7 +645,7 @@ void QGuiApplicationPrivate::hideModalWindow(QWindow *window) } /* - Returns true if \a window is blocked by a modal window. If \a + Returns \c true if \a window is blocked by a modal window. If \a blockingWindow is non-zero, *blockingWindow will be set to the blocking window (or to zero if \a window is not blocked). */ @@ -2520,8 +2520,8 @@ void QGuiApplication::setFont(const QFont &font) /*! \fn bool QGuiApplication::isRightToLeft() - Returns true if the application's layout direction is - Qt::RightToLeft; otherwise returns false. + Returns \c true if the application's layout direction is + Qt::RightToLeft; otherwise returns \c false. \sa layoutDirection(), isLeftToRight() */ @@ -2529,8 +2529,8 @@ void QGuiApplication::setFont(const QFont &font) /*! \fn bool QGuiApplication::isLeftToRight() - Returns true if the application's layout direction is - Qt::LeftToRight; otherwise returns false. + Returns \c true if the application's layout direction is + Qt::LeftToRight; otherwise returns \c false. \sa layoutDirection(), isRightToLeft() */ @@ -2552,7 +2552,7 @@ void QGuiApplicationPrivate::notifyActiveWindowChange(QWindow *) The default is true. - If this property is true, the applications quits when the last visible + If this property is \c true, the applications quits when the last visible primary window (i.e. window with no parent) is closed. \sa quit(), QWindow::close() @@ -2720,8 +2720,8 @@ void QGuiApplicationPrivate::setApplicationState(Qt::ApplicationState state) /*! \fn bool QGuiApplication::isSessionRestored() const - Returns true if the application has been restored from an earlier - \l{Session Management}{session}; otherwise returns false. + Returns \c true if the application has been restored from an earlier + \l{Session Management}{session}; otherwise returns \c false. \sa sessionId(), commitDataRequest(), saveStateRequest() */ @@ -2730,8 +2730,8 @@ void QGuiApplicationPrivate::setApplicationState(Qt::ApplicationState state) \since 5.0 \fn bool QGuiApplication::isSavingSession() const - Returns true if the application is currently saving the - \l{Session Management}{session}; otherwise returns false. + Returns \c true if the application is currently saving the + \l{Session Management}{session}; otherwise returns \c false. This is true when commitDataRequest() and saveStateRequest() are emitted, but also when the windows are closed afterwards by session management. @@ -3013,8 +3013,8 @@ void QGuiApplication::setDesktopSettingsAware(bool on) } /*! - Returns true if Qt is set to use the system's standard colors, fonts, etc.; - otherwise returns false. The default is true. + Returns \c true if Qt is set to use the system's standard colors, fonts, etc.; + otherwise returns \c false. The default is true. \sa setDesktopSettingsAware() */ diff --git a/src/gui/kernel/qkeysequence.cpp b/src/gui/kernel/qkeysequence.cpp index 1fcf1026d2..ead248074e 100644 --- a/src/gui/kernel/qkeysequence.cpp +++ b/src/gui/kernel/qkeysequence.cpp @@ -879,7 +879,7 @@ int QKeySequence::count() const /*! - Returns true if the key sequence is empty; otherwise returns + Returns \c true if the key sequence is empty; otherwise returns false. */ bool QKeySequence::isEmpty() const @@ -1372,14 +1372,14 @@ QKeySequence &QKeySequence::operator=(const QKeySequence &other) /*! \fn bool QKeySequence::operator!=(const QKeySequence &other) const - Returns true if this key sequence is not equal to the \a other - key sequence; otherwise returns false. + Returns \c true if this key sequence is not equal to the \a other + key sequence; otherwise returns \c false. */ /*! - Returns true if this key sequence is equal to the \a other - key sequence; otherwise returns false. + Returns \c true if this key sequence is equal to the \a other + key sequence; otherwise returns \c false. */ bool QKeySequence::operator==(const QKeySequence &other) const { @@ -1393,7 +1393,7 @@ bool QKeySequence::operator==(const QKeySequence &other) const /*! Provides an arbitrary comparison of this key sequence and \a other key sequence. All that is guaranteed is that the - operator returns false if both key sequences are equal and + operator returns \c false if both key sequences are equal and that (ks1 \< ks2) == !( ks2 \< ks1) if the key sequences are not equal. @@ -1413,8 +1413,8 @@ bool QKeySequence::operator< (const QKeySequence &other) const /*! \fn bool QKeySequence::operator> (const QKeySequence &other) const - Returns true if this key sequence is larger than the \a other key - sequence; otherwise returns false. + Returns \c true if this key sequence is larger than the \a other key + sequence; otherwise returns \c false. \sa operator==(), operator!=(), operator<(), operator<=(), operator>=() */ @@ -1422,8 +1422,8 @@ bool QKeySequence::operator< (const QKeySequence &other) const /*! \fn bool QKeySequence::operator<= (const QKeySequence &other) const - Returns true if this key sequence is smaller or equal to the - \a other key sequence; otherwise returns false. + Returns \c true if this key sequence is smaller or equal to the + \a other key sequence; otherwise returns \c false. \sa operator==(), operator!=(), operator<(), operator>(), operator>=() */ @@ -1431,8 +1431,8 @@ bool QKeySequence::operator< (const QKeySequence &other) const /*! \fn bool QKeySequence::operator>= (const QKeySequence &other) const - Returns true if this key sequence is larger or equal to the - \a other key sequence; otherwise returns false. + Returns \c true if this key sequence is larger or equal to the + \a other key sequence; otherwise returns \c false. \sa operator==(), operator!=(), operator<(), operator>(), operator<=() */ diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp index 9f03020c22..ab782fac34 100644 --- a/src/gui/kernel/qopenglcontext.cpp +++ b/src/gui/kernel/qopenglcontext.cpp @@ -184,7 +184,7 @@ void QOpenGLVersionProfile::setProfile(QSurfaceFormat::OpenGLContextProfile prof } /*! - Returns true if profiles are supported by the OpenGL version returned by version(). Only + Returns \c true if profiles are supported by the OpenGL version returned by version(). Only OpenGL versions >= 3.2 support profiles. \sa profile(), version() @@ -196,7 +196,7 @@ bool QOpenGLVersionProfile::hasProfiles() const } /*! - Returns true is the OpenGL version returned by version() contains deprecated functions + Returns \c true is the OpenGL version returned by version() contains deprecated functions and does not support profiles i.e. if the OpenGL version is <= 3.1. */ bool QOpenGLVersionProfile::isLegacyVersion() const @@ -205,7 +205,7 @@ bool QOpenGLVersionProfile::isLegacyVersion() const } /*! - Returns true if the version number is valid. Note that for a default constructed + Returns \c true if the version number is valid. Note that for a default constructed QOpenGLVersionProfile object this function will return false. \sa setVersion(), version() @@ -380,7 +380,7 @@ QOpenGLContext* QOpenGLContext::currentContext() } /*! - Returns true if the \a first and \a second contexts are sharing OpenGL resources. + Returns \c true if the \a first and \a second contexts are sharing OpenGL resources. */ bool QOpenGLContext::areSharing(QOpenGLContext *first, QOpenGLContext *second) { @@ -472,7 +472,7 @@ void QOpenGLContext::setScreen(QScreen *screen) and/or hardware only supports version 3.2 Core profile contexts then you will get a 3.2 Core profile context. - Returns true if the native context was successfully created and is ready to + Returns \c true if the native context was successfully created and is ready to be used with makeCurrent(), swapBuffers(), etc. \sa makeCurrent(), destroy(), format() @@ -698,7 +698,7 @@ QSet QOpenGLContext::extensions() const } /*! - Returns true if this OpenGL context supports the specified OpenGL + Returns \c true if this OpenGL context supports the specified OpenGL \a extension, false otherwise. The context or a sharing context must be current. @@ -737,7 +737,7 @@ GLuint QOpenGLContext::defaultFramebufferObject() const /*! Makes the context current in the current thread, against the given - \a surface. Returns true if successful. + \a surface. Returns \c true if successful. If \a surface is 0 this is equivalent to calling doneCurrent(). diff --git a/src/gui/kernel/qpalette.cpp b/src/gui/kernel/qpalette.cpp index 00ab74e4e4..f284c20af5 100644 --- a/src/gui/kernel/qpalette.cpp +++ b/src/gui/kernel/qpalette.cpp @@ -763,8 +763,8 @@ void QPalette::setBrush(ColorGroup cg, ColorRole cr, const QBrush &b) /*! \since 4.2 - Returns true if the ColorGroup \a cg and ColorRole \a cr has been - set previously on this palette; otherwise returns false. + Returns \c true if the ColorGroup \a cg and ColorRole \a cr has been + set previously on this palette; otherwise returns \c false. \sa setBrush() */ @@ -795,8 +795,8 @@ void QPalette::detach() /*! \fn bool QPalette::operator!=(const QPalette &p) const - Returns true (slowly) if this palette is different from \a p; - otherwise returns false (usually quickly). + Returns \c true (slowly) if this palette is different from \a p; + otherwise returns \c false (usually quickly). \note The current ColorGroup is not taken into account when comparing palettes @@ -805,8 +805,8 @@ void QPalette::detach() */ /*! - Returns true (usually quickly) if this palette is equal to \a p; - otherwise returns false (slowly). + Returns \c true (usually quickly) if this palette is equal to \a p; + otherwise returns \c false (slowly). \note The current ColorGroup is not taken into account when comparing palettes @@ -829,8 +829,8 @@ bool QPalette::operator==(const QPalette &p) const /*! \fn bool QPalette::isEqual(ColorGroup cg1, ColorGroup cg2) const - Returns true (usually quickly) if color group \a cg1 is equal to - \a cg2; otherwise returns false. + Returns \c true (usually quickly) if color group \a cg1 is equal to + \a cg2; otherwise returns \c false. */ bool QPalette::isEqual(QPalette::ColorGroup group1, QPalette::ColorGroup group2) const { @@ -1010,9 +1010,9 @@ QDataStream &operator>>(QDataStream &s, QPalette &p) #endif //QT_NO_DATASTREAM /*! - Returns true if this palette and \a p are copies of each other, + Returns \c true if this palette and \a p are copies of each other, i.e. one of them was created as a copy of the other and neither - was subsequently modified; otherwise returns false. This is much + was subsequently modified; otherwise returns \c false. This is much stricter than equality. \sa operator=(), operator==() diff --git a/src/gui/kernel/qplatforminputcontext.cpp b/src/gui/kernel/qplatforminputcontext.cpp index 1cddccaab6..656c0d0fba 100644 --- a/src/gui/kernel/qplatforminputcontext.cpp +++ b/src/gui/kernel/qplatforminputcontext.cpp @@ -165,7 +165,7 @@ void QPlatformInputContext::emitKeyboardRectChanged() /*! This function can be reimplemented to return true whenever input method is animating - shown or hidden. Default implementation returns false. + shown or hidden. Default implementation returns \c false. */ bool QPlatformInputContext::isAnimating() const { @@ -197,7 +197,7 @@ void QPlatformInputContext::hideInputPanel() } /*! - Returns input panel visibility status. Default implementation returns false. + Returns input panel visibility status. Default implementation returns \c false. */ bool QPlatformInputContext::isInputPanelVisible() const { @@ -244,7 +244,7 @@ void QPlatformInputContext::setFocusObject(QObject *object) } /*! - Returns true if current focus object supports input method events. + Returns \c true if current focus object supports input method events. */ bool QPlatformInputContext::inputMethodAccepted() const { diff --git a/src/gui/kernel/qplatformintegration.cpp b/src/gui/kernel/qplatformintegration.cpp index 22d6746ce0..49ac7836cb 100644 --- a/src/gui/kernel/qplatformintegration.cpp +++ b/src/gui/kernel/qplatformintegration.cpp @@ -221,14 +221,14 @@ QPlatformServices *QPlatformIntegration::services() const libraries. \value NonFullScreenWindows The platform supports top-level windows which do not - fill the screen. The default implementation returns true. Returning false for + fill the screen. The default implementation returns \c true. Returning false for this will cause all windows, including dialogs and popups, to be resized to fill the screen. \value WindowManagement The platform is based on a system that performs window management. This includes the typical desktop platforms. Can be set to false on platforms where no window management is available, meaning for example that windows - are never repositioned by the window manager. The default implementation returns true. + are never repositioned by the window manager. The default implementation returns \c true. */ /*! diff --git a/src/gui/kernel/qplatformscreenpageflipper.cpp b/src/gui/kernel/qplatformscreenpageflipper.cpp index dacc041c99..8665adc463 100644 --- a/src/gui/kernel/qplatformscreenpageflipper.cpp +++ b/src/gui/kernel/qplatformscreenpageflipper.cpp @@ -110,7 +110,7 @@ QPlatformScreenPageFlipper::QPlatformScreenPageFlipper(QObject *parent) Implemented in subclasses to display \a buffer directly on the screen. Returns \c true if it is possible to display the buffer, and \c false if the buffer cannot be displayed. - If this function returns true, the buffer must not be modified or destroyed before the + If this function returns \c true, the buffer must not be modified or destroyed before the bufferReleased() signal is emitted. The signal bufferDisplayed() is emitted when the buffer is displayed on the screen. The two signals may be emitted in either order. diff --git a/src/gui/kernel/qplatformsharedgraphicscache.cpp b/src/gui/kernel/qplatformsharedgraphicscache.cpp index e008dde868..23224008b9 100644 --- a/src/gui/kernel/qplatformsharedgraphicscache.cpp +++ b/src/gui/kernel/qplatformsharedgraphicscache.cpp @@ -243,7 +243,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QPlatformSharedGraphicsCache::requestBatchStarted() const - Returns true if a request batch has previously been started using beginRequestBatch() + Returns \c true if a request batch has previously been started using beginRequestBatch() and not yet stopped using endRequestBatch(). \sa beginRequestBatch(), endRequestBatch() @@ -278,7 +278,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QPlatformSharedGraphicsCache::dereferenceBuffer(void *bufferId) - Removed a previously registered reference to the buffer \a bufferId. Returns true if there + Removed a previously registered reference to the buffer \a bufferId. Returns \c true if there are still more references to the buffer in question, or false if this was the last reference (in which case the buffer may have been deleted in the cache.) diff --git a/src/gui/kernel/qplatformsystemtrayicon_qpa.cpp b/src/gui/kernel/qplatformsystemtrayicon_qpa.cpp index b47b657361..5d7ff7864d 100644 --- a/src/gui/kernel/qplatformsystemtrayicon_qpa.cpp +++ b/src/gui/kernel/qplatformsystemtrayicon_qpa.cpp @@ -135,12 +135,12 @@ QPlatformSystemTrayIcon::~QPlatformSystemTrayIcon() /*! \fn bool QPlatformSystemTrayIcon::isSystemTrayAvailable() const - Returns true if the system tray is available on the platform. + Returns \c true if the system tray is available on the platform. */ /*! \fn bool QPlatformSystemTrayIcon::supportsMessages() const - Returns true if the system tray supports messages on the platform. + Returns \c true if the system tray supports messages on the platform. */ /*! diff --git a/src/gui/kernel/qplatformwindow.cpp b/src/gui/kernel/qplatformwindow.cpp index 4c0d68e7c1..ac82d56241 100644 --- a/src/gui/kernel/qplatformwindow.cpp +++ b/src/gui/kernel/qplatformwindow.cpp @@ -167,7 +167,7 @@ bool QPlatformWindow::isExposed() const } /*! - Returns true if the window should appear active from a style perspective. + Returns \c true if the window should appear active from a style perspective. This function can make platform-specific isActive checks, such as checking if the QWindow is embedded in an active native window. @@ -178,7 +178,7 @@ bool QPlatformWindow::isActive() const } /*! - Returns true if the window is a descendant of an embedded non-Qt window. + Returns \c true if the window is a descendant of an embedded non-Qt window. Example of an embedded non-Qt window is the parent window of an in-process QAxServer. If \a parentWindow is nonzero, only check if the window is embedded in the diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp index 558eca6b1d..2573f76374 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -579,8 +579,8 @@ QRect QScreen::mapBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, cons } /*! - Convenience function that returns true if \a o is either portrait or inverted portrait; - otherwise returns false. + Convenience function that returns \c true if \a o is either portrait or inverted portrait; + otherwise returns \c false. Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation(). */ @@ -591,8 +591,8 @@ bool QScreen::isPortrait(Qt::ScreenOrientation o) const } /*! - Convenience function that returns true if \a o is either landscape or inverted landscape; - otherwise returns false. + Convenience function that returns \c true if \a o is either landscape or inverted landscape; + otherwise returns \c false. Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation(). */ diff --git a/src/gui/kernel/qsessionmanager.cpp b/src/gui/kernel/qsessionmanager.cpp index c46dd5f55a..b9ef35854c 100644 --- a/src/gui/kernel/qsessionmanager.cpp +++ b/src/gui/kernel/qsessionmanager.cpp @@ -181,7 +181,7 @@ QString QSessionManager::sessionKey() const /*! Asks the session manager for permission to interact with the user. Returns - true if interaction is permitted; otherwise returns false. + true if interaction is permitted; otherwise returns \c false. The rationale behind this mechanism is to make it possible to synchronize user interaction during a shutdown. Advanced session managers may ask all @@ -215,7 +215,7 @@ bool QSessionManager::allowsInteraction() } /*! - Returns true if error interaction is permitted; otherwise returns false. + Returns \c true if error interaction is permitted; otherwise returns \c false. This is similar to allowsInteraction(), but also enables the application to tell the user about any errors that occur. Session managers may give error @@ -386,8 +386,8 @@ void QSessionManager::setManagerProperty(const QString &name, } /*! - Returns true if the session manager is currently performing a second - session management phase; otherwise returns false. + Returns \c true if the session manager is currently performing a second + session management phase; otherwise returns \c false. \sa requestPhase2() */ diff --git a/src/gui/kernel/qsurfaceformat.cpp b/src/gui/kernel/qsurfaceformat.cpp index 9b8ed4a289..b2abed7812 100644 --- a/src/gui/kernel/qsurfaceformat.cpp +++ b/src/gui/kernel/qsurfaceformat.cpp @@ -254,7 +254,7 @@ QSurfaceFormat::~QSurfaceFormat() /*! \fn bool QSurfaceFormat::stereo() const - Returns true if stereo buffering is enabled; otherwise returns + Returns \c true if stereo buffering is enabled; otherwise returns false. Stereo buffering is disabled by default. \sa setStereo() @@ -325,7 +325,7 @@ void QSurfaceFormat::setOption(QSurfaceFormat::FormatOptions opt) } /*! - Returns true if format option \a opt is set; otherwise returns false. + Returns \c true if format option \a opt is set; otherwise returns \c false. \sa setOption() */ @@ -383,7 +383,7 @@ QSurfaceFormat::SwapBehavior QSurfaceFormat::swapBehavior() const } /*! - Returns true if the alpha buffer size is greater than zero. + Returns \c true if the alpha buffer size is greater than zero. This means that the surface might be used with per pixel translucency effects. @@ -607,7 +607,7 @@ void QSurfaceFormat::setVersion(int major, int minor) } /*! - Returns true if all the options of the two QSurfaceFormat objects + Returns \c true if all the options of the two QSurfaceFormat objects \a a and \a b are equal. \relates QSurfaceFormat @@ -629,8 +629,8 @@ bool operator==(const QSurfaceFormat& a, const QSurfaceFormat& b) } /*! - Returns false if all the options of the two QSurfaceFormat objects - \a a and \a b are equal; otherwise returns true. + Returns \c false if all the options of the two QSurfaceFormat objects + \a a and \a b are equal; otherwise returns \c true. \relates QSurfaceFormat */ diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 12ea4df1c9..f2e60e0ff3 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -126,8 +126,8 @@ QT_BEGIN_NAMESPACE to a window with type QSurface::RasterSurface, and QOpenGLContext for rendering with OpenGL to a window with type QSurface::OpenGLSurface. - The application can start rendering as soon as isExposed() returns true, - and can keep rendering until it isExposed() returns false. To find out when + The application can start rendering as soon as isExposed() returns \c true, + and can keep rendering until it isExposed() returns \c false. To find out when isExposed() changes, reimplement exposeEvent(). The window will always get a resize event before the first expose event. @@ -903,7 +903,7 @@ bool QWindow::isExposed() const */ /*! - Returns true if the window should appear active from a style perspective. + Returns \c true if the window should appear active from a style perspective. This is the case for the window that has input focus as well as windows that are in the same parent / transient parent chain as the focus window. @@ -1067,7 +1067,7 @@ QWindow *QWindow::transientParent() const */ /*! - Returns true if the window is an ancestor of the given \a child. If \a mode + Returns \c true if the window is an ancestor of the given \a child. If \a mode is IncludeTransients, then transient parents are also considered ancestors. */ bool QWindow::isAncestorOf(const QWindow *child, AncestorMode mode) const @@ -1728,7 +1728,7 @@ void QWindow::showNormal() Close the window. This closes the window, effectively calling destroy(), and potentially - quitting the application. Returns true on success, false if it has a parent + quitting the application. Returns \c true on success, false if it has a parent window (in which case the top level window should be closed instead). \sa destroy(), QGuiApplication::quitOnLastWindowClosed() diff --git a/src/gui/math3d/qgenericmatrix.cpp b/src/gui/math3d/qgenericmatrix.cpp index 575cd0bf61..1ccafa051b 100644 --- a/src/gui/math3d/qgenericmatrix.cpp +++ b/src/gui/math3d/qgenericmatrix.cpp @@ -101,7 +101,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QGenericMatrix::isIdentity() const - Returns true if this matrix is the identity; false otherwise. + Returns \c true if this matrix is the identity; false otherwise. \sa setToIdentity() */ @@ -153,13 +153,13 @@ QT_BEGIN_NAMESPACE /*! \fn bool QGenericMatrix::operator==(const QGenericMatrix& other) const - Returns true if this matrix is identical to \a other; false otherwise. + Returns \c true if this matrix is identical to \a other; false otherwise. */ /*! \fn bool QGenericMatrix::operator!=(const QGenericMatrix& other) const - Returns true if this matrix is not identical to \a other; false otherwise. + Returns \c true if this matrix is not identical to \a other; false otherwise. */ /*! diff --git a/src/gui/math3d/qmatrix4x4.cpp b/src/gui/math3d/qmatrix4x4.cpp index 11132e84bb..0b3c5b4cb9 100644 --- a/src/gui/math3d/qmatrix4x4.cpp +++ b/src/gui/math3d/qmatrix4x4.cpp @@ -300,7 +300,7 @@ QMatrix4x4::QMatrix4x4(const QTransform& transform) /*! \fn bool QMatrix4x4::isIdentity() const - Returns true if this matrix is the identity; false otherwise. + Returns \c true if this matrix is the identity; false otherwise. \sa setToIdentity() */ @@ -634,14 +634,14 @@ QMatrix4x4& QMatrix4x4::operator/=(float divisor) /*! \fn bool QMatrix4x4::operator==(const QMatrix4x4& other) const - Returns true if this matrix is identical to \a other; false otherwise. + Returns \c true if this matrix is identical to \a other; false otherwise. This operator uses an exact floating-point comparison. */ /*! \fn bool QMatrix4x4::operator!=(const QMatrix4x4& other) const - Returns true if this matrix is not identical to \a other; false otherwise. + Returns \c true if this matrix is not identical to \a other; false otherwise. This operator uses an exact floating-point comparison. */ @@ -792,7 +792,7 @@ QMatrix4x4 operator/(const QMatrix4x4& matrix, float divisor) \fn bool qFuzzyCompare(const QMatrix4x4& m1, const QMatrix4x4& m2) \relates QMatrix4x4 - Returns true if \a m1 and \a m2 are equal, allowing for a small + Returns \c true if \a m1 and \a m2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/math3d/qquaternion.cpp b/src/gui/math3d/qquaternion.cpp index d042d9812a..d721674eb6 100644 --- a/src/gui/math3d/qquaternion.cpp +++ b/src/gui/math3d/qquaternion.cpp @@ -133,16 +133,16 @@ QT_BEGIN_NAMESPACE /*! \fn bool QQuaternion::isNull() const - Returns true if the x, y, z, and scalar components of this - quaternion are set to 0.0; otherwise returns false. + Returns \c true if the x, y, z, and scalar components of this + quaternion are set to 0.0; otherwise returns \c false. */ /*! \fn bool QQuaternion::isIdentity() const - Returns true if the x, y, and z components of this + Returns \c true if the x, y, and z components of this quaternion are set to 0.0, and the scalar component is set - to 1.0; otherwise returns false. + to 1.0; otherwise returns \c false. */ /*! @@ -394,7 +394,7 @@ QQuaternion QQuaternion::fromAxisAndAngle \fn bool operator==(const QQuaternion &q1, const QQuaternion &q2) \relates QQuaternion - Returns true if \a q1 is equal to \a q2; otherwise returns false. + Returns \c true if \a q1 is equal to \a q2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -402,7 +402,7 @@ QQuaternion QQuaternion::fromAxisAndAngle \fn bool operator!=(const QQuaternion &q1, const QQuaternion &q2) \relates QQuaternion - Returns true if \a q1 is not equal to \a q2; otherwise returns false. + Returns \c true if \a q1 is not equal to \a q2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -482,7 +482,7 @@ QQuaternion QQuaternion::fromAxisAndAngle \fn bool qFuzzyCompare(const QQuaternion& q1, const QQuaternion& q2) \relates QQuaternion - Returns true if \a q1 and \a q2 are equal, allowing for a small + Returns \c true if \a q1 and \a q2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/math3d/qvector2d.cpp b/src/gui/math3d/qvector2d.cpp index 7446d27dab..a56e23eb72 100644 --- a/src/gui/math3d/qvector2d.cpp +++ b/src/gui/math3d/qvector2d.cpp @@ -124,8 +124,8 @@ QVector2D::QVector2D(const QVector4D& vector) /*! \fn bool QVector2D::isNull() const - Returns true if the x and y coordinates are set to 0.0, - otherwise returns false. + Returns \c true if the x and y coordinates are set to 0.0, + otherwise returns \c false. */ /*! @@ -335,7 +335,7 @@ float QVector2D::dotProduct(const QVector2D& v1, const QVector2D& v2) \fn bool operator==(const QVector2D &v1, const QVector2D &v2) \relates QVector2D - Returns true if \a v1 is equal to \a v2; otherwise returns false. + Returns \c true if \a v1 is equal to \a v2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -343,7 +343,7 @@ float QVector2D::dotProduct(const QVector2D& v1, const QVector2D& v2) \fn bool operator!=(const QVector2D &v1, const QVector2D &v2) \relates QVector2D - Returns true if \a v1 is not equal to \a v2; otherwise returns false. + Returns \c true if \a v1 is not equal to \a v2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -418,7 +418,7 @@ float QVector2D::dotProduct(const QVector2D& v1, const QVector2D& v2) \fn bool qFuzzyCompare(const QVector2D& v1, const QVector2D& v2) \relates QVector2D - Returns true if \a v1 and \a v2 are equal, allowing for a small + Returns \c true if \a v1 and \a v2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/math3d/qvector3d.cpp b/src/gui/math3d/qvector3d.cpp index 226483c227..7e3ed7c61b 100644 --- a/src/gui/math3d/qvector3d.cpp +++ b/src/gui/math3d/qvector3d.cpp @@ -144,8 +144,8 @@ QVector3D::QVector3D(const QVector4D& vector) /*! \fn bool QVector3D::isNull() const - Returns true if the x, y, and z coordinates are set to 0.0, - otherwise returns false. + Returns \c true if the x, y, and z coordinates are set to 0.0, + otherwise returns \c false. */ /*! @@ -438,7 +438,7 @@ float QVector3D::distanceToLine \fn bool operator==(const QVector3D &v1, const QVector3D &v2) \relates QVector3D - Returns true if \a v1 is equal to \a v2; otherwise returns false. + Returns \c true if \a v1 is equal to \a v2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -446,7 +446,7 @@ float QVector3D::distanceToLine \fn bool operator!=(const QVector3D &v1, const QVector3D &v2) \relates QVector3D - Returns true if \a v1 is not equal to \a v2; otherwise returns false. + Returns \c true if \a v1 is not equal to \a v2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -524,7 +524,7 @@ float QVector3D::distanceToLine \fn bool qFuzzyCompare(const QVector3D& v1, const QVector3D& v2) \relates QVector3D - Returns true if \a v1 and \a v2 are equal, allowing for a small + Returns \c true if \a v1 and \a v2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/math3d/qvector4d.cpp b/src/gui/math3d/qvector4d.cpp index 2247e95d5e..691551367f 100644 --- a/src/gui/math3d/qvector4d.cpp +++ b/src/gui/math3d/qvector4d.cpp @@ -157,8 +157,8 @@ QVector4D::QVector4D(const QVector3D& vector, float wpos) /*! \fn bool QVector4D::isNull() const - Returns true if the x, y, z, and w coordinates are set to 0.0, - otherwise returns false. + Returns \c true if the x, y, z, and w coordinates are set to 0.0, + otherwise returns \c false. */ /*! @@ -378,7 +378,7 @@ float QVector4D::dotProduct(const QVector4D& v1, const QVector4D& v2) \fn bool operator==(const QVector4D &v1, const QVector4D &v2) \relates QVector4D - Returns true if \a v1 is equal to \a v2; otherwise returns false. + Returns \c true if \a v1 is equal to \a v2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -386,7 +386,7 @@ float QVector4D::dotProduct(const QVector4D& v1, const QVector4D& v2) \fn bool operator!=(const QVector4D &v1, const QVector4D &v2) \relates QVector4D - Returns true if \a v1 is not equal to \a v2; otherwise returns false. + Returns \c true if \a v1 is not equal to \a v2; otherwise returns \c false. This operator uses an exact floating-point comparison. */ @@ -463,7 +463,7 @@ float QVector4D::dotProduct(const QVector4D& v1, const QVector4D& v2) \fn bool qFuzzyCompare(const QVector4D& v1, const QVector4D& v2) \relates QVector4D - Returns true if \a v1 and \a v2 are equal, allowing for a small + Returns \c true if \a v1 and \a v2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/opengl/qopenglbuffer.cpp b/src/gui/opengl/qopenglbuffer.cpp index d70f326415..b832cefd70 100644 --- a/src/gui/opengl/qopenglbuffer.cpp +++ b/src/gui/opengl/qopenglbuffer.cpp @@ -259,7 +259,7 @@ namespace { } /*! - Creates the buffer object in the OpenGL server. Returns true if + Creates the buffer object in the OpenGL server. Returns \c true if the object was created; false otherwise. This function must be called with a current QOpenGLContext. @@ -294,7 +294,7 @@ bool QOpenGLBuffer::create() } /*! - Returns true if this buffer has been created; false otherwise. + Returns \c true if this buffer has been created; false otherwise. \sa create(), destroy() */ @@ -322,7 +322,7 @@ void QOpenGLBuffer::destroy() /*! Reads the \a count bytes in this buffer starting at \a offset - into \a data. Returns true on success; false if reading from + into \a data. Returns \c true on success; false if reading from the buffer is not supported. Buffer reading is not supported under OpenGL/ES. @@ -403,7 +403,7 @@ void QOpenGLBuffer::allocate(const void *data, int count) /*! Binds the buffer associated with this object to the current - OpenGL context. Returns false if binding was not possible, usually because + OpenGL context. Returns \c false if binding was not possible, usually because type() is not supported on this OpenGL implementation. The buffer must be bound to the same QOpenGLContext current when create() @@ -533,7 +533,7 @@ void *QOpenGLBuffer::map(QOpenGLBuffer::Access access) /*! Unmaps the buffer after it was mapped into the application's - memory space with a previous call to map(). Returns true if + memory space with a previous call to map(). Returns \c true if the unmap succeeded; false otherwise. It is assumed that this buffer has been bound to the current context, diff --git a/src/gui/opengl/qopengldebug.cpp b/src/gui/opengl/qopengldebug.cpp index 3920b75a05..90d062f4dd 100644 --- a/src/gui/opengl/qopengldebug.cpp +++ b/src/gui/opengl/qopengldebug.cpp @@ -997,7 +997,7 @@ QOpenGLDebugMessage QOpenGLDebugMessage::createThirdPartyMessage(const QString & } /*! - Returns true if this debug message is equal to \a debugMessage, or false + Returns \c true if this debug message is equal to \a debugMessage, or false otherwise. Two debugging messages are equal if they have the same textual message, the same id, the same source, the same type and the same severity. @@ -1016,7 +1016,7 @@ bool QOpenGLDebugMessage::operator==(const QOpenGLDebugMessage &debugMessage) co /*! \fn bool QOpenGLDebugMessage::operator!=(const QOpenGLDebugMessage &debugMessage) const - Returns true if this message is different from \a debugMessage, or false + Returns \c true if this message is different from \a debugMessage, or false otherwise. \sa operator==() @@ -1317,7 +1317,7 @@ QOpenGLDebugLogger::~QOpenGLDebugLogger() initialized object; note that in this case the object must not be logging when you call this function. - Returns true if the logger is successfully initialized; false otherwise. + Returns \c true if the logger is successfully initialized; false otherwise. \sa QOpenGLContext */ @@ -1383,7 +1383,7 @@ bool QOpenGLDebugLogger::initialize() } /*! - Returns true if this object is currently logging, false otherwise. + Returns \c true if this object is currently logging, false otherwise. \sa startLogging() */ diff --git a/src/gui/opengl/qopenglengineshadermanager.cpp b/src/gui/opengl/qopenglengineshadermanager.cpp index 5d8634e696..7c3c309ea5 100644 --- a/src/gui/opengl/qopenglengineshadermanager.cpp +++ b/src/gui/opengl/qopenglengineshadermanager.cpp @@ -661,7 +661,7 @@ QOpenGLShaderProgram* QOpenGLEngineShaderManager::blitProgram() // Select & use the correct shader program using the current state. -// Returns true if program needed changing. +// Returns \c true if program needed changing. bool QOpenGLEngineShaderManager::useCorrectShaderProg() { if (!shaderProgNeedsChanging) diff --git a/src/gui/opengl/qopenglframebufferobject.cpp b/src/gui/opengl/qopenglframebufferobject.cpp index 8d7b525929..c06ba40b47 100644 --- a/src/gui/opengl/qopenglframebufferobject.cpp +++ b/src/gui/opengl/qopenglframebufferobject.cpp @@ -238,7 +238,7 @@ void QOpenGLFramebufferObjectFormat::setMipmap(bool enabled) } /*! - Returns true if mipmapping is enabled. + Returns \c true if mipmapping is enabled. \sa setMipmap() */ @@ -320,8 +320,8 @@ GLenum QOpenGLFramebufferObjectFormat::internalTextureFormat() const } /*! - Returns true if all the options of this framebuffer object format - are the same as \a other; otherwise returns false. + Returns \c true if all the options of this framebuffer object format + are the same as \a other; otherwise returns \c false. */ bool QOpenGLFramebufferObjectFormat::operator==(const QOpenGLFramebufferObjectFormat& other) const { @@ -332,8 +332,8 @@ bool QOpenGLFramebufferObjectFormat::operator==(const QOpenGLFramebufferObjectFo } /*! - Returns false if all the options of this framebuffer object format - are the same as \a other; otherwise returns true. + Returns \c false if all the options of this framebuffer object format + are the same as \a other; otherwise returns \c true. */ bool QOpenGLFramebufferObjectFormat::operator!=(const QOpenGLFramebufferObjectFormat& other) const { @@ -877,7 +877,7 @@ QOpenGLFramebufferObject::~QOpenGLFramebufferObject() /*! \fn bool QOpenGLFramebufferObject::isValid() const - Returns true if the framebuffer object is valid. + Returns \c true if the framebuffer object is valid. The framebuffer can become invalid if the initialization process fails, the user attaches an invalid buffer to the framebuffer @@ -903,7 +903,7 @@ bool QOpenGLFramebufferObject::isValid() const Switches rendering from the default, windowing system provided framebuffer to this framebuffer object. - Returns true upon success, false otherwise. + Returns \c true upon success, false otherwise. \sa release() */ @@ -931,7 +931,7 @@ bool QOpenGLFramebufferObject::bind() Switches rendering back to the default, windowing system provided framebuffer. - Returns true upon success, false otherwise. + Returns \c true upon success, false otherwise. \sa bind() */ @@ -1069,7 +1069,7 @@ QImage QOpenGLFramebufferObject::toImage() const Switches rendering back to the default, windowing system provided framebuffer. - Returns true upon success, false otherwise. + Returns \c true upon success, false otherwise. \sa bind(), release() */ @@ -1093,8 +1093,8 @@ bool QOpenGLFramebufferObject::bindDefault() /*! \fn bool QOpenGLFramebufferObject::hasOpenGLFramebufferObjects() - Returns true if the OpenGL \c{GL_EXT_framebuffer_object} extension - is present on this system; otherwise returns false. + Returns \c true if the OpenGL \c{GL_EXT_framebuffer_object} extension + is present on this system; otherwise returns \c false. */ bool QOpenGLFramebufferObject::hasOpenGLFramebufferObjects() { @@ -1154,7 +1154,7 @@ void QOpenGLFramebufferObject::setAttachment(QOpenGLFramebufferObject::Attachmen } /*! - Returns true if the framebuffer object is currently bound to a context, + Returns \c true if the framebuffer object is currently bound to a context, otherwise false is returned. */ @@ -1168,8 +1168,8 @@ bool QOpenGLFramebufferObject::isBound() const /*! \fn bool QOpenGLFramebufferObject::hasOpenGLFramebufferBlit() - Returns true if the OpenGL \c{GL_EXT_framebuffer_blit} extension - is present on this system; otherwise returns false. + Returns \c true if the OpenGL \c{GL_EXT_framebuffer_blit} extension + is present on this system; otherwise returns \c false. \sa blitFramebuffer() */ diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 60591a34d2..a4ed74637c 100644 --- a/src/gui/opengl/qopenglfunctions.cpp +++ b/src/gui/opengl/qopenglfunctions.cpp @@ -403,7 +403,7 @@ QOpenGLFunctions::OpenGLFeatures QOpenGLFunctions::openGLFeatures() const } /*! - Returns true if \a feature is present on this system's OpenGL + Returns \c true if \a feature is present on this system's OpenGL implementation; false otherwise. It is assumed that the QOpenGLContext associated with this function @@ -441,7 +441,7 @@ QOpenGLExtensions::OpenGLExtensions QOpenGLExtensions::openGLExtensions() } /*! - Returns true if \a extension is present on this system's OpenGL + Returns \c true if \a extension is present on this system's OpenGL implementation; false otherwise. It is assumed that the QOpenGLContext associated with this extension diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp index f0e7e4953f..fa392d16aa 100644 --- a/src/gui/opengl/qopenglpaintdevice.cpp +++ b/src/gui/opengl/qopenglpaintdevice.cpp @@ -348,7 +348,7 @@ void QOpenGLPaintDevice::setPaintFlipped(bool flipped) } /*! - Returns true if painting is flipped around the Y-axis. + Returns \c true if painting is flipped around the Y-axis. \sa setPaintFlipped() */ diff --git a/src/gui/opengl/qopenglshaderprogram.cpp b/src/gui/opengl/qopenglshaderprogram.cpp index c0e250b0fa..ecc38b902c 100644 --- a/src/gui/opengl/qopenglshaderprogram.cpp +++ b/src/gui/opengl/qopenglshaderprogram.cpp @@ -397,7 +397,7 @@ static const char redefineHighp[] = /*! Sets the \a source code for this shader and compiles it. - Returns true if the source was successfully compiled, false otherwise. + Returns \c true if the source was successfully compiled, false otherwise. \sa compileSourceFile() */ @@ -459,7 +459,7 @@ bool QOpenGLShader::compileSourceCode(const char *source) \overload Sets the \a source code for this shader and compiles it. - Returns true if the source was successfully compiled, false otherwise. + Returns \c true if the source was successfully compiled, false otherwise. \sa compileSourceFile() */ @@ -472,7 +472,7 @@ bool QOpenGLShader::compileSourceCode(const QByteArray& source) \overload Sets the \a source code for this shader and compiles it. - Returns true if the source was successfully compiled, false otherwise. + Returns \c true if the source was successfully compiled, false otherwise. \sa compileSourceFile() */ @@ -483,7 +483,7 @@ bool QOpenGLShader::compileSourceCode(const QString& source) /*! Sets the source code for this shader to the contents of \a fileName - and compiles it. Returns true if the file could be opened and the + and compiles it. Returns \c true if the file could be opened and the source compiled, false otherwise. \sa compileSourceCode() @@ -524,7 +524,7 @@ QByteArray QOpenGLShader::sourceCode() const } /*! - Returns true if this shader has been compiled; false otherwise. + Returns \c true if this shader has been compiled; false otherwise. \sa compileSourceCode(), compileSourceFile() */ @@ -668,7 +668,7 @@ bool QOpenGLShaderProgram::init() } /*! - Adds a compiled \a shader to this shader program. Returns true + Adds a compiled \a shader to this shader program. Returns \c true if the shader could be added, or false otherwise. Ownership of the \a shader object remains with the caller. @@ -705,7 +705,7 @@ bool QOpenGLShaderProgram::addShader(QOpenGLShader *shader) /*! Compiles \a source as a shader of the specified \a type and - adds it to this shader program. Returns true if compilation + adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -735,7 +735,7 @@ bool QOpenGLShaderProgram::addShaderFromSourceCode(QOpenGLShader::ShaderType typ \overload Compiles \a source as a shader of the specified \a type and - adds it to this shader program. Returns true if compilation + adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -755,7 +755,7 @@ bool QOpenGLShaderProgram::addShaderFromSourceCode(QOpenGLShader::ShaderType typ \overload Compiles \a source as a shader of the specified \a type and - adds it to this shader program. Returns true if compilation + adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -773,7 +773,7 @@ bool QOpenGLShaderProgram::addShaderFromSourceCode(QOpenGLShader::ShaderType typ /*! Compiles the contents of \a fileName as a shader of the specified - \a type and adds it to this shader program. Returns true if + \a type and adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -865,7 +865,7 @@ void QOpenGLShaderProgram::removeAllShaders() /*! Links together the shaders that were added to this program with - addShader(). Returns true if the link was successful or + addShader(). Returns \c true if the link was successful or false otherwise. If the link failed, the error messages can be retrieved with log(). @@ -922,7 +922,7 @@ bool QOpenGLShaderProgram::link() } /*! - Returns true if this shader program has been linked; false otherwise. + Returns \c true if this shader program has been linked; false otherwise. \sa link() */ @@ -948,7 +948,7 @@ QString QOpenGLShaderProgram::log() const Binds this shader program to the active QOpenGLContext and makes it the current shader program. Any previously bound shader program is released. This is equivalent to calling \c{glUseProgram()} on - programId(). Returns true if the program was successfully bound; + programId(). Returns \c true if the program was successfully bound; false otherwise. If the shader program has not yet been linked, or it needs to be re-linked, this function will call link(). @@ -3195,7 +3195,7 @@ QVector QOpenGLShaderProgram::defaultInnerTessellationLevels() const /*! - Returns true if shader programs written in the OpenGL Shading + Returns \c true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise. The \a context is used to resolve the GLSL extensions. @@ -3227,7 +3227,7 @@ void QOpenGLShaderProgram::shaderDestroyed() } /*! - Returns true if shader programs of type \a type are supported on + Returns \c true if shader programs of type \a type are supported on this system; false otherwise. The \a context is used to resolve the GLSL extensions. diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp index a6e1c2953d..fcd556e892 100644 --- a/src/gui/opengl/qopengltexture.cpp +++ b/src/gui/opengl/qopengltexture.cpp @@ -1449,7 +1449,7 @@ void QOpenGLTexture::destroy() } /*! - Returns true if the underlying OpenGL texture object has been created. + Returns \c true if the underlying OpenGL texture object has been created. \sa create(), destroy(), textureId() */ @@ -1532,7 +1532,7 @@ void QOpenGLTexture::release(uint unit, TextureUnitReset reset) } /*! - Returns true if this texture is bound to the corresponding target + Returns \c true if this texture is bound to the corresponding target of the currently active texture unit. \sa bind(), release() @@ -1545,7 +1545,7 @@ bool QOpenGLTexture::isBound() const } /*! - Returns true if this texture is bound to the corresponding target + Returns \c true if this texture is bound to the corresponding target of texture unit \a unit. \sa bind(), release() @@ -2012,7 +2012,7 @@ void QOpenGLTexture::allocateStorage() } /*! - Returns true if server-side storage for this texture as been + Returns \c true if server-side storage for this texture as been allocated. The texture format, dimensions, mipmap levels and array layers @@ -2076,7 +2076,7 @@ QOpenGLTexture *QOpenGLTexture::createTextureView(Target target, } /*! - Returns true if this texture object is actually a view onto another + Returns \c true if this texture object is actually a view onto another texture object. \sa createTextureView() @@ -2227,7 +2227,7 @@ void QOpenGLTexture::setCompressedData(int dataSize, void *data, } /*! - Returns true if your OpenGL implementation and version supports the texture + Returns \c true if your OpenGL implementation and version supports the texture feature \a feature. */ bool QOpenGLTexture::hasFeature(Feature feature) diff --git a/src/gui/opengl/qopengltimerquery.cpp b/src/gui/opengl/qopengltimerquery.cpp index 38e988c4df..c5c3d42e5d 100644 --- a/src/gui/opengl/qopengltimerquery.cpp +++ b/src/gui/opengl/qopengltimerquery.cpp @@ -330,7 +330,7 @@ QOpenGLTimerQuery::~QOpenGLTimerQuery() Creates the underlying OpenGL timer query object. There must be a valid OpenGL context that supports query objects current for this function to succeed. - Returns true if the OpenGL timer query object was successfully created. + Returns \c true if the OpenGL timer query object was successfully created. */ bool QOpenGLTimerQuery::create() { @@ -349,8 +349,8 @@ void QOpenGLTimerQuery::destroy() } /*! - Returns true if the underlying OpenGL query object has been created. If this - returns true and the associated OpenGL context is current, then you are able to issue + Returns \c true if the underlying OpenGL query object has been created. If this + returns \c true and the associated OpenGL context is current, then you are able to issue queries with this object. */ bool QOpenGLTimerQuery::isCreated() const @@ -428,7 +428,7 @@ GLuint64 QOpenGLTimerQuery::waitForTimestamp() const } /*! - Returns true if the OpenGL timer query result is available. + Returns \c true if the OpenGL timer query result is available. This function is non-blocking and ideally should be used to check for the availability of the query result before calling waitForResult(). @@ -757,7 +757,7 @@ int QOpenGLTimeMonitor::sampleCount() const to track the amount of time taken to execute OpenGL commands between successive calls to recordSample(). - Returns true if the OpenGL timer query objects could be created. + Returns \c true if the OpenGL timer query objects could be created. \sa destroy(), setSampleCount(), recordSample() */ @@ -779,8 +779,8 @@ void QOpenGLTimeMonitor::destroy() } /*! - Returns true if the underlying OpenGL query objects have been created. If this - returns true and the associated OpenGL context is current, then you are able to record + Returns \c true if the underlying OpenGL query objects have been created. If this + returns \c true and the associated OpenGL context is current, then you are able to record time samples with this object. */ bool QOpenGLTimeMonitor::isCreated() const @@ -814,7 +814,7 @@ int QOpenGLTimeMonitor::recordSample() } /*! - Returns true if the OpenGL timer query results are available. + Returns \c true if the OpenGL timer query results are available. \sa waitForSamples(), waitForIntervals() */ diff --git a/src/gui/opengl/qopenglvertexarrayobject.cpp b/src/gui/opengl/qopenglvertexarrayobject.cpp index eb7a42f749..16ed79ac10 100644 --- a/src/gui/opengl/qopenglvertexarrayobject.cpp +++ b/src/gui/opengl/qopenglvertexarrayobject.cpp @@ -371,7 +371,7 @@ QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject() Creates the underlying OpenGL vertex array object. There must be a valid OpenGL context that supports vertex array objects current for this function to succeed. - Returns true if the OpenGL vertex array object was successfully created. + Returns \c true if the OpenGL vertex array object was successfully created. */ bool QOpenGLVertexArrayObject::create() { @@ -390,8 +390,8 @@ void QOpenGLVertexArrayObject::destroy() } /*! - Returns true is the underlying OpenGL vertex array object has been created. If this - returns true and the associated OpenGL context is current, then you are able to bind() + Returns \c true is the underlying OpenGL vertex array object has been created. If this + returns \c true and the associated OpenGL context is current, then you are able to bind() this object. */ bool QOpenGLVertexArrayObject::isCreated() const diff --git a/src/gui/opengl/qtriangulator.cpp b/src/gui/opengl/qtriangulator.cpp index d3c80e264f..77da009bf5 100644 --- a/src/gui/opengl/qtriangulator.cpp +++ b/src/gui/opengl/qtriangulator.cpp @@ -347,7 +347,7 @@ bool QIntersectionPoint::operator == (const QIntersectionPoint &other) const return upperLeft == other.upperLeft && xOffset == other.xOffset && yOffset == other.yOffset; } -// Returns true if this point is on the infinite line passing through 'u' and 'v'. +// Returns \c true if this point is on the infinite line passing through 'u' and 'v'. bool QIntersectionPoint::isOnLine(const QPodPoint &u, const QPodPoint &v) const { // TODO: Make code path for coordinates with more than 21 bits. diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 3a36762502..c44be64fb1 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -194,7 +194,7 @@ QSize QBackingStore::size() const Scrolls the given \a area \a dx pixels to the right and \a dy downward; both \a dx and \a dy may be negative. - Returns true if the area was scrolled successfully; false otherwise. + Returns \c true if the area was scrolled successfully; false otherwise. */ bool QBackingStore::scroll(const QRegion &area, int dx, int dy) { diff --git a/src/gui/painting/qbrush.cpp b/src/gui/painting/qbrush.cpp index 4ec47fa4a9..d8dfae1e2c 100644 --- a/src/gui/painting/qbrush.cpp +++ b/src/gui/painting/qbrush.cpp @@ -306,7 +306,7 @@ struct QBrushDataPointerDeleter the style is a gradient. The same is the case if the style is Qt::TexturePattern style unless the current texture is a QBitmap. - The isOpaque() function returns true if the brush is fully opaque + The isOpaque() function returns \c true if the brush is fully opaque otherwise false. A brush is considered opaque if: \list @@ -830,7 +830,7 @@ Q_GUI_EXPORT bool qt_isExtendedRadialGradient(const QBrush &brush) } /*! - Returns true if the brush is fully opaque otherwise false. A brush + Returns \c true if the brush is fully opaque otherwise false. A brush is considered opaque if: \list @@ -912,8 +912,8 @@ void QBrush::setTransform(const QTransform &matrix) /*! \fn bool QBrush::operator!=(const QBrush &brush) const - Returns true if the brush is different from the given \a brush; - otherwise returns false. + Returns \c true if the brush is different from the given \a brush; + otherwise returns \c false. Two brushes are different if they have different styles, colors or transforms or different pixmaps or gradients depending on the style. @@ -924,8 +924,8 @@ void QBrush::setTransform(const QTransform &matrix) /*! \fn bool QBrush::operator==(const QBrush &brush) const - Returns true if the brush is equal to the given \a brush; - otherwise returns false. + Returns \c true if the brush is equal to the given \a brush; + otherwise returns \c false. Two brushes are equal if they have equal styles, colors and transforms and equal pixmaps or gradients depending on the style. @@ -1491,15 +1491,15 @@ void QGradient::setInterpolationMode(InterpolationMode mode) \fn bool QGradient::operator!=(const QGradient &gradient) const \since 4.2 - Returns true if the gradient is the same as the other \a gradient - specified; otherwise returns false. + Returns \c true if the gradient is the same as the other \a gradient + specified; otherwise returns \c false. \sa operator==() */ /*! - Returns true if the gradient is the same as the other \a gradient - specified; otherwise returns false. + Returns \c true if the gradient is the same as the other \a gradient + specified; otherwise returns \c false. \sa operator!=() */ diff --git a/src/gui/painting/qcolor.cpp b/src/gui/painting/qcolor.cpp index c93320c491..706273c151 100644 --- a/src/gui/painting/qcolor.cpp +++ b/src/gui/painting/qcolor.cpp @@ -489,7 +489,7 @@ QColor::QColor(Spec spec) /*! \fn bool QColor::isValid() const - Returns true if the color is valid; otherwise returns false. + Returns \c true if the color is valid; otherwise returns \c false. */ /*! @@ -557,7 +557,7 @@ void QColor::setNamedColor(const QString &name) /*! \since 4.7 - Returns true if the \a name is a valid color name and can + Returns \c true if the \a name is a valid color name and can be used to construct a valid QColor object, otherwise returns false. @@ -2338,8 +2338,8 @@ QColor &QColor::operator=(Qt::GlobalColor color) } /*! - Returns true if this color has the same RGB and alpha values as \a color; - otherwise returns false. + Returns \c true if this color has the same RGB and alpha values as \a color; + otherwise returns \c false. */ bool QColor::operator==(const QColor &color) const { @@ -2366,8 +2366,8 @@ bool QColor::operator==(const QColor &color) const } /*! - Returns true if this color has a different RGB and alpha values from - \a color; otherwise returns false. + Returns \c true if this color has a different RGB and alpha values from + \a color; otherwise returns \c false. */ bool QColor::operator!=(const QColor &color) const { return !operator==(color); } diff --git a/src/gui/painting/qmatrix.cpp b/src/gui/painting/qmatrix.cpp index fe09e5568d..c44c89c8ee 100644 --- a/src/gui/painting/qmatrix.cpp +++ b/src/gui/painting/qmatrix.cpp @@ -82,9 +82,9 @@ QT_BEGIN_NAMESPACE transformed into a \e polygon (mapped to the coordinate system defined by \e this matrix), using the mapToPolygon() function. - QMatrix provides the isIdentity() function which returns true if + QMatrix provides the isIdentity() function which returns \c true if the matrix is the identity matrix, and the isInvertible() function - which returns true if the matrix is non-singular (i.e. AB = BA = + which returns \c true if the matrix is non-singular (i.e. AB = BA = I). The inverted() function returns an inverted copy of \e this matrix if it is invertible (otherwise it returns the identity matrix). In addition, QMatrix provides the determinant() function @@ -817,8 +817,8 @@ void QMatrix::reset() /*! \fn bool QMatrix::isIdentity() const - Returns true if the matrix is the identity matrix, otherwise - returns false. + Returns \c true if the matrix is the identity matrix, otherwise + returns \c false. \sa reset() */ @@ -919,7 +919,7 @@ QMatrix &QMatrix::rotate(qreal a) /*! \fn bool QMatrix::isInvertible() const - Returns true if the matrix is invertible, otherwise returns false. + Returns \c true if the matrix is invertible, otherwise returns \c false. \sa inverted() */ @@ -966,8 +966,8 @@ QMatrix QMatrix::inverted(bool *invertible) const /*! \fn bool QMatrix::operator==(const QMatrix &matrix) const - Returns true if this matrix is equal to the given \a matrix, - otherwise returns false. + Returns \c true if this matrix is equal to the given \a matrix, + otherwise returns \c false. */ bool QMatrix::operator==(const QMatrix &m) const @@ -983,8 +983,8 @@ bool QMatrix::operator==(const QMatrix &m) const /*! \fn bool QMatrix::operator!=(const QMatrix &matrix) const - Returns true if this matrix is not equal to the given \a matrix, - otherwise returns false. + Returns \c true if this matrix is not equal to the given \a matrix, + otherwise returns \c false. */ bool QMatrix::operator!=(const QMatrix &m) const @@ -1159,7 +1159,7 @@ QDebug operator<<(QDebug dbg, const QMatrix &m) \brief The qFuzzyCompare function is for comparing two matrices using a fuzziness factor. - Returns true if \a m1 and \a m2 are equal, allowing for a small + Returns \c true if \a m1 and \a m2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/painting/qpaintdevice.qdoc b/src/gui/painting/qpaintdevice.qdoc index 993b23850e..150ba10955 100644 --- a/src/gui/painting/qpaintdevice.qdoc +++ b/src/gui/painting/qpaintdevice.qdoc @@ -149,9 +149,9 @@ /*! \fn bool QPaintDevice::paintingActive() const - Returns true if the device is currently being painted on, i.e. someone has + Returns \c true if the device is currently being painted on, i.e. someone has called QPainter::begin() but not yet called QPainter::end() for - this device; otherwise returns false. + this device; otherwise returns \c false. \sa QPainter::isActive() */ diff --git a/src/gui/painting/qpaintengine.cpp b/src/gui/painting/qpaintengine.cpp index aa175c2d65..f1eaea0f6b 100644 --- a/src/gui/painting/qpaintengine.cpp +++ b/src/gui/painting/qpaintengine.cpp @@ -392,8 +392,8 @@ void QPaintEngine::drawPolygon(const QPoint *points, int pointCount, PolygonDraw /*! \fn bool QPaintEngine::isActive() const - Returns true if the paint engine is actively drawing; otherwise - returns false. + Returns \c true if the paint engine is actively drawing; otherwise + returns \c false. \sa setActive() */ @@ -657,8 +657,8 @@ void QPaintEngine::drawImage(const QRectF &r, const QImage &image, const QRectF /*! \fn bool QPaintEngine::hasFeature(PaintEngineFeatures feature) const - Returns true if the paint engine supports the specified \a - feature; otherwise returns false. + Returns \c true if the paint engine supports the specified \a + feature; otherwise returns \c false. */ /*! @@ -666,7 +666,7 @@ void QPaintEngine::drawImage(const QRectF &r, const QImage &image, const QRectF \internal - Returns true if the paint engine is a QPaintEngineEx derivative. + Returns \c true if the paint engine is a QPaintEngineEx derivative. */ /*! diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index 824dbf7ae8..4a26da104d 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -2887,7 +2887,7 @@ bool QRasterPaintEngine::drawCachedGlyphs(int numGlyphs, const glyph_t *glyphs, /*! - * Returns true if the rectangle is completely within the current clip + * Returns \c true if the rectangle is completely within the current clip * state of the paint engine. */ bool QRasterPaintEnginePrivate::isUnclipped_normalized(const QRect &r) const diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index b315017d6d..4c02abdfd5 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -241,7 +241,7 @@ QTransform QPainterPrivate::hidpiScaleTransform() const /* \internal - Returns true if using a shared painter; otherwise false. + Returns \c true if using a shared painter; otherwise false. */ bool QPainterPrivate::attachPainterPrivate(QPainter *q, QPaintDevice *pdev) { @@ -1510,8 +1510,8 @@ QPaintDevice *QPainter::device() const } /*! - Returns true if begin() has been called and end() has not yet been - called; otherwise returns false. + Returns \c true if begin() has been called and end() has not yet been + called; otherwise returns \c false. \sa begin(), QPaintDevice::paintingActive() */ @@ -1660,8 +1660,8 @@ void QPainter::restore() \fn bool QPainter::begin(QPaintDevice *device) - Begins painting the paint \a device and returns true if - successful; otherwise returns false. + Begins painting the paint \a device and returns \c true if + successful; otherwise returns \c false. Notice that all painter settings (setPen(), setBrush() etc.) are reset to default values when begin() is called. @@ -1856,7 +1856,7 @@ bool QPainter::begin(QPaintDevice *pd) don't normally need to call this since it is called by the destructor. - Returns true if the painter is no longer active; otherwise returns false. + Returns \c true if the painter is no longer active; otherwise returns \c false. \sa begin(), isActive() */ @@ -2420,7 +2420,7 @@ const QBrush &QPainter::background() const /*! - Returns true if clipping has been set; otherwise returns false. + Returns \c true if clipping has been set; otherwise returns \c false. \sa setClipping(), {QPainter#Clipping}{Clipping} */ @@ -3058,7 +3058,7 @@ void QPainter::setWorldMatrixEnabled(bool enable) /*! \since 4.2 - Returns true if world transformation is enabled; otherwise returns + Returns \c true if world transformation is enabled; otherwise returns false. \sa setWorldMatrixEnabled(), worldTransform(), {Coordinate System} @@ -7078,13 +7078,13 @@ QPainter::RenderHints QPainter::renderHints() const \fn bool QPainter::testRenderHint(RenderHint hint) const \since 4.3 - Returns true if \a hint is set; otherwise returns false. + Returns \c true if \a hint is set; otherwise returns \c false. \sa renderHints(), setRenderHint() */ /*! - Returns true if view transformation is enabled; otherwise returns + Returns \c true if view transformation is enabled; otherwise returns false. \sa setViewTransformEnabled(), worldTransform() diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index 1e36cd224a..156e411154 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -395,8 +395,8 @@ static void qt_debug_path(const QPainterPath &path) \fn bool QPainterPath::Element::operator==(const Element &other) const \since 4.2 - Returns true if this element is equal to \a other; - otherwise returns false. + Returns \c true if this element is equal to \a other; + otherwise returns \c false. \sa operator!=() */ @@ -405,8 +405,8 @@ static void qt_debug_path(const QPainterPath &path) \fn bool QPainterPath::Element::operator!=(const Element &other) const \since 4.2 - Returns true if this element is not equal to \a other; - otherwise returns false. + Returns \c true if this element is not equal to \a other; + otherwise returns \c false. \sa operator==() */ @@ -414,7 +414,7 @@ static void qt_debug_path(const QPainterPath &path) /*! \fn bool QPainterPath::Element::isCurveTo () const - Returns true if the element is a curve, otherwise returns false. + Returns \c true if the element is a curve, otherwise returns \c false. \sa type, QPainterPath::CurveToElement */ @@ -422,7 +422,7 @@ static void qt_debug_path(const QPainterPath &path) /*! \fn bool QPainterPath::Element::isLineTo () const - Returns true if the element is a line, otherwise returns false. + Returns \c true if the element is a line, otherwise returns \c false. \sa type, QPainterPath::LineToElement */ @@ -430,8 +430,8 @@ static void qt_debug_path(const QPainterPath &path) /*! \fn bool QPainterPath::Element::isMoveTo () const - Returns true if the element is moving the current position, - otherwise returns false. + Returns \c true if the element is moving the current position, + otherwise returns \c false. \sa type, QPainterPath::MoveToElement */ @@ -1485,8 +1485,8 @@ QRectF QPainterPath::controlPointRect() const /*! \fn bool QPainterPath::isEmpty() const - Returns true if either there are no elements in this path, or if the only - element is a MoveToElement; otherwise returns false. + Returns \c true if either there are no elements in this path, or if the only + element is a MoveToElement; otherwise returns \c false. \sa elementCount() */ @@ -1806,8 +1806,8 @@ static void qt_painterpath_isect_curve(const QBezier &bezier, const QPointF &pt, /*! \fn bool QPainterPath::contains(const QPointF &point) const - Returns true if the given \a point is inside the path, otherwise - returns false. + Returns \c true if the given \a point is inside the path, otherwise + returns \c false. \sa intersects() */ @@ -1982,7 +1982,7 @@ static bool qt_isect_curve_vertical(const QBezier &bezier, qreal x, qreal y1, qr } /* - Returns true if any lines or curves cross the four edges in of rect + Returns \c true if any lines or curves cross the four edges in of rect */ static bool qt_painterpath_check_crossing(const QPainterPath *path, const QRectF &rect) { @@ -2040,8 +2040,8 @@ static bool qt_painterpath_check_crossing(const QPainterPath *path, const QRectF /*! \fn bool QPainterPath::intersects(const QRectF &rectangle) const - Returns true if any point in the given \a rectangle intersects the - path; otherwise returns false. + Returns \c true if any point in the given \a rectangle intersects the + path; otherwise returns \c false. There is an intersection if any of the lines making up the rectangle crosses a part of the path or if any part of the @@ -2149,8 +2149,8 @@ QPainterPath QPainterPath::translated(qreal dx, qreal dy) const /*! \fn bool QPainterPath::contains(const QRectF &rectangle) const - Returns true if the given \a rectangle is inside the path, - otherwise returns false. + Returns \c true if the given \a rectangle is inside the path, + otherwise returns \c false. */ bool QPainterPath::contains(const QRectF &rect) const { @@ -2233,7 +2233,7 @@ static inline bool epsilonCompare(const QPointF &a, const QPointF &b, const QSiz } /*! - Returns true if this painterpath is equal to the given \a path. + Returns \c true if this painterpath is equal to the given \a path. Note that comparing paths may involve a per element comparison which can be slow for complex paths. @@ -2268,7 +2268,7 @@ bool QPainterPath::operator==(const QPainterPath &path) const } /*! - Returns true if this painter path differs from the given \a path. + Returns \c true if this painter path differs from the given \a path. Note that comparing paths may involve a per element comparison which can be slow for complex paths. @@ -3330,8 +3330,8 @@ QPainterPath QPainterPath::simplified() const /*! \since 4.3 - Returns true if the current path intersects at any point the given path \a p. - Also returns true if the current path contains or is contained by any part of \a p. + Returns \c true if the current path intersects at any point the given path \a p. + Also returns \c true if the current path contains or is contained by any part of \a p. Set operations on paths will treat the paths as areas. Non-closed paths will be treated as implicitly closed. @@ -3351,8 +3351,8 @@ bool QPainterPath::intersects(const QPainterPath &p) const /*! \since 4.3 - Returns true if the given path \a p is contained within - the current path. Returns false if any edges of the current path and + Returns \c true if the given path \a p is contained within + the current path. Returns \c false if any edges of the current path and \a p intersect. Set operations on paths will treat the paths as areas. Non-closed diff --git a/src/gui/painting/qpen.cpp b/src/gui/painting/qpen.cpp index a7c4a0eae1..6a3eacd67a 100644 --- a/src/gui/painting/qpen.cpp +++ b/src/gui/painting/qpen.cpp @@ -778,7 +778,7 @@ void QPen::setBrush(const QBrush &brush) /*! - Returns true if the pen has a solid fill, otherwise false. + Returns \c true if the pen has a solid fill, otherwise false. \sa style(), dashPattern() */ @@ -789,7 +789,7 @@ bool QPen::isSolid() const /*! - Returns true if the pen is cosmetic; otherwise returns false. + Returns \c true if the pen is cosmetic; otherwise returns \c false. Cosmetic pens are used to draw strokes that have a constant width regardless of any transformations applied to the QPainter they are @@ -827,7 +827,7 @@ void QPen::setCosmetic(bool cosmetic) /*! \fn bool QPen::operator!=(const QPen &pen) const - Returns true if the pen is different from the given \a pen; + Returns \c true if the pen is different from the given \a pen; otherwise false. Two pens are different if they have different styles, widths or colors. @@ -837,7 +837,7 @@ void QPen::setCosmetic(bool cosmetic) /*! \fn bool QPen::operator==(const QPen &pen) const - Returns true if the pen is equal to the given \a pen; otherwise + Returns \c true if the pen is equal to the given \a pen; otherwise false. Two pens are equal if they have equal styles, widths and colors. diff --git a/src/gui/painting/qplatformbackingstore.cpp b/src/gui/painting/qplatformbackingstore.cpp index 74e9af19ab..feec0c7f3d 100644 --- a/src/gui/painting/qplatformbackingstore.cpp +++ b/src/gui/painting/qplatformbackingstore.cpp @@ -135,7 +135,7 @@ void QPlatformBackingStore::endPaint() Scrolls the given \a area \a dx pixels to the right and \a dy downward; both \a dx and \a dy may be negative. - Returns true if the area was scrolled successfully; false otherwise. + Returns \c true if the area was scrolled successfully; false otherwise. */ bool QPlatformBackingStore::scroll(const QRegion &area, int dx, int dy) { diff --git a/src/gui/painting/qpolygon.cpp b/src/gui/painting/qpolygon.cpp index 34215b53b0..ef8fc28f12 100644 --- a/src/gui/painting/qpolygon.cpp +++ b/src/gui/painting/qpolygon.cpp @@ -642,7 +642,7 @@ QPolygonF QPolygonF::translated(const QPointF &offset) const /*! \fn bool QPolygonF::isClosed() const - Returns true if the polygon is closed; otherwise returns false. + Returns \c true if the polygon is closed; otherwise returns \c false. A polygon is said to be closed if its start point and end point are equal. @@ -824,8 +824,8 @@ QDebug operator<<(QDebug dbg, const QPolygonF &a) \fn bool QPolygonF::containsPoint(const QPointF &point, Qt::FillRule fillRule) const - Returns true if the given \a point is inside the polygon according to - the specified \a fillRule; otherwise returns false. + Returns \c true if the given \a point is inside the polygon according to + the specified \a fillRule; otherwise returns \c false. */ bool QPolygonF::containsPoint(const QPointF &pt, Qt::FillRule fillRule) const { @@ -855,8 +855,8 @@ bool QPolygonF::containsPoint(const QPointF &pt, Qt::FillRule fillRule) const \since 4.3 \fn bool QPolygon::containsPoint(const QPoint &point, Qt::FillRule fillRule) const - Returns true if the given \a point is inside the polygon according to - the specified \a fillRule; otherwise returns false. + Returns \c true if the given \a point is inside the polygon according to + the specified \a fillRule; otherwise returns \c false. */ bool QPolygon::containsPoint(const QPoint &pt, Qt::FillRule fillRule) const { diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp index 913daee3e1..f58cd1c428 100644 --- a/src/gui/painting/qregion.cpp +++ b/src/gui/painting/qregion.cpp @@ -591,8 +591,8 @@ QRegion& QRegion::operator^=(const QRegion &r) /*! \fn bool QRegion::operator!=(const QRegion &other) const - Returns true if this region is different from the \a other region; - otherwise returns false. + Returns \c true if this region is different from the \a other region; + otherwise returns \c false. */ /*! @@ -606,7 +606,7 @@ QRegion::operator QVariant() const /*! \fn bool QRegion::operator==(const QRegion &r) const - Returns true if the region is equal to \a r; otherwise returns + Returns \c true if the region is equal to \a r; otherwise returns false. */ @@ -659,8 +659,8 @@ inline bool rect_intersects(const QRect &r1, const QRect &r2) /*! \since 4.2 - Returns true if this region intersects with \a region, otherwise - returns false. + Returns \c true if this region intersects with \a region, otherwise + returns \c false. */ bool QRegion::intersects(const QRegion ®ion) const { @@ -686,8 +686,8 @@ bool QRegion::intersects(const QRegion ®ion) const \fn bool QRegion::intersects(const QRect &rect) const \since 4.2 - Returns true if this region intersects with \a rect, otherwise - returns false. + Returns \c true if this region intersects with \a rect, otherwise + returns \c false. */ @@ -712,7 +712,7 @@ QRegion QRegion::intersect(const QRect &r) const /*! \fn bool QRegion::isEmpty() const - Returns true if the region is empty; otherwise returns false. An + Returns \c true if the region is empty; otherwise returns \c false. An empty region is a region that contains no points. Example: @@ -723,7 +723,7 @@ QRegion QRegion::intersect(const QRect &r) const \fn bool QRegion::isNull() const \since 5.0 - Returns true if the region is empty; otherwise returns false. An + Returns \c true if the region is empty; otherwise returns \c false. An empty region is a region that contains no points. This function is the same as isEmpty @@ -733,16 +733,16 @@ QRegion QRegion::intersect(const QRect &r) const /*! \fn bool QRegion::contains(const QPoint &p) const - Returns true if the region contains the point \a p; otherwise - returns false. + Returns \c true if the region contains the point \a p; otherwise + returns \c false. */ /*! \fn bool QRegion::contains(const QRect &r) const \overload - Returns true if the region overlaps the rectangle \a r; otherwise - returns false. + Returns \c true if the region overlaps the rectangle \a r; otherwise + returns \c false. */ /*! @@ -1099,7 +1099,7 @@ struct QRegionPrivate { void intersect(const QRect &r); /* - * Returns true if r is guaranteed to be fully contained in this region. + * Returns \c true if r is guaranteed to be fully contained in this region. * A false return value does not guarantee the opposite. */ inline bool contains(const QRegionPrivate &r) const { @@ -1113,7 +1113,7 @@ struct QRegionPrivate { } /* - * Returns true if this region is guaranteed to be fully contained in r. + * Returns \c true if this region is guaranteed to be fully contained in r. */ inline bool within(const QRect &r1) const { const QRect &r2 = extents; @@ -4167,7 +4167,7 @@ QRect QRegion::boundingRect() const } /*! \internal - Returns true if \a rect is guaranteed to be fully contained in \a region. + Returns \c true if \a rect is guaranteed to be fully contained in \a region. A false return value does not guarantee the opposite. */ Q_GUI_EXPORT diff --git a/src/gui/painting/qstroker.cpp b/src/gui/painting/qstroker.cpp index 2a5cf49d53..d6ac03fe28 100644 --- a/src/gui/painting/qstroker.cpp +++ b/src/gui/painting/qstroker.cpp @@ -627,7 +627,7 @@ void QStroker::joinPoints(qfixed focal_x, qfixed focal_y, const QLineF &nextLine /* Strokes a subpath side using the \a it as source. Results are put into - \a stroke. The function returns true if the subpath side was closed. + \a stroke. The function returns \c true if the subpath side was closed. If \a capFirst is true, we will use capPoints instead of joinPoints to connect the first segment, other segments will be joined using joinPoints. This is to put capping in order... diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp index a07b5def5d..30673d90fe 100644 --- a/src/gui/painting/qtransform.cpp +++ b/src/gui/painting/qtransform.cpp @@ -125,9 +125,9 @@ QT_BEGIN_NAMESPACE transformed into a \e polygon (mapped to the coordinate system defined by \e this matrix), using the mapToPolygon() function. - QTransform provides the isIdentity() function which returns true if + QTransform provides the isIdentity() function which returns \c true if the matrix is the identity matrix, and the isInvertible() function - which returns true if the matrix is non-singular (i.e. AB = BA = + which returns \c true if the matrix is non-singular (i.e. AB = BA = I). The inverted() function returns an inverted copy of \e this matrix if it is invertible (otherwise it returns the identity matrix), and adjoint() returns the matrix's classical adjoint. @@ -763,8 +763,8 @@ QTransform & QTransform::rotateRadians(qreal a, Qt::Axis axis) /*! \fn bool QTransform::operator==(const QTransform &matrix) const - Returns true if this matrix is equal to the given \a matrix, - otherwise returns false. + Returns \c true if this matrix is equal to the given \a matrix, + otherwise returns \c false. */ bool QTransform::operator==(const QTransform &o) const { @@ -781,8 +781,8 @@ bool QTransform::operator==(const QTransform &o) const /*! \fn bool QTransform::operator!=(const QTransform &matrix) const - Returns true if this matrix is not equal to the given \a matrix, - otherwise returns false. + Returns \c true if this matrix is not equal to the given \a matrix, + otherwise returns \c false. */ bool QTransform::operator!=(const QTransform &o) const { @@ -1718,7 +1718,7 @@ QPolygon QTransform::mapToPolygon(const QRect &rect) const /*! Creates a transformation matrix, \a trans, that maps a unit square - to a four-sided polygon, \a quad. Returns true if the transformation + to a four-sided polygon, \a quad. Returns \c true if the transformation is constructed or false if such a transformation does not exist. \sa quadToSquare(), quadToQuad() @@ -1783,7 +1783,7 @@ bool QTransform::squareToQuad(const QPolygonF &quad, QTransform &trans) \fn bool QTransform::quadToSquare(const QPolygonF &quad, QTransform &trans) Creates a transformation matrix, \a trans, that maps a four-sided polygon, - \a quad, to a unit square. Returns true if the transformation is constructed + \a quad, to a unit square. Returns \c true if the transformation is constructed or false if such a transformation does not exist. \sa squareToQuad(), quadToQuad() @@ -1802,7 +1802,7 @@ bool QTransform::quadToSquare(const QPolygonF &quad, QTransform &trans) /*! Creates a transformation matrix, \a trans, that maps a four-sided polygon, \a one, to another four-sided polygon, \a two. - Returns true if the transformation is possible; otherwise returns + Returns \c true if the transformation is possible; otherwise returns false. This is a convenience method combining quadToSquare() and @@ -2098,7 +2098,7 @@ QTransform::operator QVariant() const /*! \fn bool QTransform::isInvertible() const - Returns true if the matrix is invertible, otherwise returns false. + Returns \c true if the matrix is invertible, otherwise returns \c false. \sa inverted() */ @@ -2221,8 +2221,8 @@ QTransform::operator QVariant() const /*! \fn bool QTransform::isIdentity() const - Returns true if the matrix is the identity matrix, otherwise - returns false. + Returns \c true if the matrix is the identity matrix, otherwise + returns \c false. \sa reset() */ @@ -2230,15 +2230,15 @@ QTransform::operator QVariant() const /*! \fn bool QTransform::isAffine() const - Returns true if the matrix represent an affine transformation, - otherwise returns false. + Returns \c true if the matrix represent an affine transformation, + otherwise returns \c false. */ /*! \fn bool QTransform::isScaling() const - Returns true if the matrix represents a scaling - transformation, otherwise returns false. + Returns \c true if the matrix represents a scaling + transformation, otherwise returns \c false. \sa reset() */ @@ -2246,8 +2246,8 @@ QTransform::operator QVariant() const /*! \fn bool QTransform::isRotating() const - Returns true if the matrix represents some kind of a - rotating transformation, otherwise returns false. + Returns \c true if the matrix represents some kind of a + rotating transformation, otherwise returns \c false. \note A rotation transformation of 180 degrees and/or 360 degrees is treated as a scaling transformation. @@ -2257,8 +2257,8 @@ QTransform::operator QVariant() const /*! \fn bool QTransform::isTranslating() const - Returns true if the matrix represents a translating - transformation, otherwise returns false. + Returns \c true if the matrix represents a translating + transformation, otherwise returns \c false. \sa reset() */ @@ -2269,7 +2269,7 @@ QTransform::operator QVariant() const \relates QTransform \since 4.6 - Returns true if \a t1 and \a t2 are equal, allowing for a small + Returns \c true if \a t1 and \a t2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise. */ diff --git a/src/gui/text/qcssparser.cpp b/src/gui/text/qcssparser.cpp index 9c7a57df3d..edf10169b1 100644 --- a/src/gui/text/qcssparser.cpp +++ b/src/gui/text/qcssparser.cpp @@ -1141,7 +1141,7 @@ static bool setFontWeightFromValue(const QCss::Value &value, QFont *font) /** \internal * parse the font family from the values (starting from index \a start) * and set it the \a font - * The function returns true if a family was extracted. + * The function returns \c true if a family was extracted. */ static bool setFontFamilyFromValues(const QVector &values, QFont *font, int start = 0) { diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 2a9cac352d..a410004c06 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -355,7 +355,7 @@ QFontEngineData::~QFontEngineData() attributes, or if no matching font exists, Qt will use the closest matching installed font. The attributes of the font that is actually used are retrievable from a QFontInfo object. If the - window system provides an exact match exactMatch() returns true. + window system provides an exact match exactMatch() returns \c true. Use QFontMetrics to get measurements, e.g. the pixel length of a string using QFontMetrics::width(). @@ -1049,7 +1049,7 @@ int QFont::pixelSize() const /*! \fn bool QFont::italic() const - Returns true if the style() of the font is not QFont::StyleNormal + Returns \c true if the style() of the font is not QFont::StyleNormal \sa setItalic(), style() */ @@ -1139,8 +1139,8 @@ void QFont::setWeight(int weight) /*! \fn bool QFont::bold() const - Returns true if weight() is a value greater than - \l{Weight}{QFont::Normal}; otherwise returns false. + Returns \c true if weight() is a value greater than + \l{Weight}{QFont::Normal}; otherwise returns \c false. \sa weight(), setBold(), QFontInfo::bold() */ @@ -1158,7 +1158,7 @@ void QFont::setWeight(int weight) */ /*! - Returns true if underline has been set; otherwise returns false. + Returns \c true if underline has been set; otherwise returns \c false. \sa setUnderline() */ @@ -1185,7 +1185,7 @@ void QFont::setUnderline(bool enable) } /*! - Returns true if overline has been set; otherwise returns false. + Returns \c true if overline has been set; otherwise returns \c false. \sa setOverline() */ @@ -1211,7 +1211,7 @@ void QFont::setOverline(bool enable) } /*! - Returns true if strikeout has been set; otherwise returns false. + Returns \c true if strikeout has been set; otherwise returns \c false. \sa setStrikeOut() */ @@ -1238,7 +1238,7 @@ void QFont::setStrikeOut(bool enable) } /*! - Returns true if fixed pitch has been set; otherwise returns false. + Returns \c true if fixed pitch has been set; otherwise returns \c false. \sa setFixedPitch(), QFontInfo::fixedPitch() */ @@ -1266,7 +1266,7 @@ void QFont::setFixedPitch(bool enable) } /*! - Returns true if kerning should be used when drawing text with this font. + Returns \c true if kerning should be used when drawing text with this font. \sa setKerning() */ @@ -1671,7 +1671,7 @@ void QFont::setRawMode(bool enable) } /*! - Returns true if a window system font exactly matching the settings + Returns \c true if a window system font exactly matching the settings of this font is available. \sa QFontInfo @@ -1686,7 +1686,7 @@ bool QFont::exactMatch() const } /*! - Returns true if this font is equal to \a f; otherwise returns + Returns \c true if this font is equal to \a f; otherwise returns false. Two QFonts are considered equal if their font attributes are @@ -1714,7 +1714,7 @@ bool QFont::operator==(const QFont &f) const /*! Provides an arbitrary comparison of this font and font \a f. - All that is guaranteed is that the operator returns false if both + All that is guaranteed is that the operator returns \c false if both fonts are equal and that (f1 \< f2) == !(f2 \< f1) if the fonts are not equal. @@ -1750,8 +1750,8 @@ bool QFont::operator<(const QFont &f) const /*! - Returns true if this font is different from \a f; otherwise - returns false. + Returns \c true if this font is different from \a f; otherwise + returns \c false. Two QFonts are considered to be different if their font attributes are different. If rawMode() is enabled for both fonts, only the @@ -1773,7 +1773,7 @@ QFont::operator QVariant() const } /*! - Returns true if this font and \a f are copies of each other, i.e. + Returns \c true if this font and \a f are copies of each other, i.e. one of them was created as a copy of the other and neither has been modified since. This is much stricter than equality. @@ -1785,8 +1785,8 @@ bool QFont::isCopyOf(const QFont & f) const } /*! - Returns true if raw mode is used for font name matching; otherwise - returns false. + Returns \c true if raw mode is used for font name matching; otherwise + returns \c false. \sa setRawMode(), rawName() */ @@ -2470,8 +2470,8 @@ int QFontInfo::weight() const /*! \fn bool QFontInfo::bold() const - Returns true if weight() would return a value greater than - QFont::Normal; otherwise returns false. + Returns \c true if weight() would return a value greater than + QFont::Normal; otherwise returns \c false. \sa weight(), QFont::bold() */ @@ -2556,7 +2556,7 @@ QFont::StyleHint QFontInfo::styleHint() const } /*! - Returns true if the font is a raw mode font; otherwise returns + Returns \c true if the font is a raw mode font; otherwise returns false. If it is a raw mode font, all other functions in QFontInfo will @@ -2571,8 +2571,8 @@ bool QFontInfo::rawMode() const } /*! - Returns true if the matched window system font is exactly the same - as the one specified by the font; otherwise returns false. + Returns \c true if the matched window system font is exactly the same + as the one specified by the font; otherwise returns \c false. \sa QFont::exactMatch() */ diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 6703f66e29..ff050d1758 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -1238,8 +1238,8 @@ QStringList QFontDatabase::styles(const QString &family) const } /*! - Returns true if the font that has family \a family and style \a - style is fixed pitch; otherwise returns false. + Returns \c true if the font that has family \a family and style \a + style is fixed pitch; otherwise returns \c false. */ bool QFontDatabase::isFixedPitch(const QString &family, @@ -1259,8 +1259,8 @@ bool QFontDatabase::isFixedPitch(const QString &family, } /*! - Returns true if the font that has family \a family and style \a - style is a scalable bitmap font; otherwise returns false. Scaling + Returns \c true if the font that has family \a family and style \a + style is a scalable bitmap font; otherwise returns \c false. Scaling a bitmap font usually produces an unattractive hardly readable result, because the pixels of the font are scaled. If you need to scale a bitmap font it is better to scale it to one of the fixed @@ -1303,9 +1303,9 @@ bool QFontDatabase::isBitmapScalable(const QString &family, /*! - Returns true if the font that has family \a family and style \a - style is smoothly scalable; otherwise returns false. If this - function returns true, it's safe to scale this font to any size, + Returns \c true if the font that has family \a family and style \a + style is smoothly scalable; otherwise returns \c false. If this + function returns \c true, it's safe to scale this font to any size, and the result will always look attractive. \sa isScalable(), isBitmapScalable() @@ -1342,8 +1342,8 @@ bool QFontDatabase::isSmoothlyScalable(const QString &family, const QString &sty } /*! - Returns true if the font that has family \a family and style \a - style is scalable; otherwise returns false. + Returns \c true if the font that has family \a family and style \a + style is scalable; otherwise returns \c false. \sa isBitmapScalable(), isSmoothlyScalable() */ @@ -1532,8 +1532,8 @@ QList QFontDatabase::standardSizes() /*! - Returns true if the font that has family \a family and style \a - style is italic; otherwise returns false. + Returns \c true if the font that has family \a family and style \a + style is italic; otherwise returns \c false. \sa weight(), bold() */ @@ -1565,8 +1565,8 @@ bool QFontDatabase::italic(const QString &family, const QString &style) const /*! - Returns true if the font that has family \a family and style \a - style is bold; otherwise returns false. + Returns \c true if the font that has family \a family and style \a + style is bold; otherwise returns \c false. \sa italic(), weight() */ @@ -2144,8 +2144,8 @@ QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type) \since 4.2 Removes the previously loaded application font identified by \a - id. Returns true if unloading of the font succeeded; otherwise - returns false. + id. Returns \c true if unloading of the font succeeded; otherwise + returns \c false. \sa removeAllApplicationFonts(), addApplicationFont(), addApplicationFontFromData() @@ -2158,8 +2158,8 @@ QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type) Removes all application-local fonts previously added using addApplicationFont() and addApplicationFontFromData(). - Returns true if unloading of the fonts succeeded; otherwise - returns false. + Returns \c true if unloading of the fonts succeeded; otherwise + returns \c false. \sa removeApplicationFont(), addApplicationFont(), addApplicationFontFromData() */ @@ -2169,12 +2169,12 @@ QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type) \since 4.4 \deprecated - Returns true if font rendering is supported outside the GUI + Returns \c true if font rendering is supported outside the GUI thread, false otherwise. In other words, a return value of false means that all QPainter::drawText() calls outside the GUI thread will not produce readable output. - As of 5.0, always returns true. + As of 5.0, always returns \c true. \sa {Thread-Support in Qt Modules#Painting In Threads}{Painting In Threads} */ diff --git a/src/gui/text/qfontmetrics.cpp b/src/gui/text/qfontmetrics.cpp index 1d0a1c1078..58c9addec1 100644 --- a/src/gui/text/qfontmetrics.cpp +++ b/src/gui/text/qfontmetrics.cpp @@ -229,8 +229,8 @@ QFontMetrics &QFontMetrics::operator=(const QFontMetrics &fm) */ /*! - Returns true if \a other is equal to this object; otherwise - returns false. + Returns \c true if \a other is equal to this object; otherwise + returns \c false. Two font metrics are considered equal if they were constructed from the same QFont and the paint devices they were constructed @@ -246,7 +246,7 @@ bool QFontMetrics::operator ==(const QFontMetrics &other) const /*! \fn bool QFontMetrics::operator !=(const QFontMetrics &other) const - Returns true if \a other is not equal to this object; otherwise returns false. + Returns \c true if \a other is not equal to this object; otherwise returns \c false. Two font metrics are considered equal if they were constructed from the same QFont and the paint devices they were constructed @@ -405,8 +405,8 @@ int QFontMetrics::averageCharWidth() const } /*! - Returns true if character \a ch is a valid character in the font; - otherwise returns false. + Returns \c true if character \a ch is a valid character in the font; + otherwise returns \c false. */ bool QFontMetrics::inFont(QChar ch) const { @@ -419,8 +419,8 @@ bool QFontMetrics::inFont(QChar ch) const } /*! - Returns true if the character \a ucs4 encoded in UCS-4/UTF-32 is a valid - character in the font; otherwise returns false. + Returns \c true if the character \a ucs4 encoded in UCS-4/UTF-32 is a valid + character in the font; otherwise returns \c false. */ bool QFontMetrics::inFontUcs4(uint ucs4) const { @@ -1097,8 +1097,8 @@ QFontMetricsF &QFontMetricsF::operator=(const QFontMetricsF &fm) } /*! - Returns true if the font metrics are equal to the \a other font - metrics; otherwise returns false. + Returns \c true if the font metrics are equal to the \a other font + metrics; otherwise returns \c false. Two font metrics are considered equal if they were constructed from the same QFont and the paint devices they were constructed for are @@ -1113,8 +1113,8 @@ bool QFontMetricsF::operator ==(const QFontMetricsF &other) const \fn bool QFontMetricsF::operator !=(const QFontMetricsF &other) const \overload - Returns true if the font metrics are not equal to the \a other font - metrics; otherwise returns false. + Returns \c true if the font metrics are not equal to the \a other font + metrics; otherwise returns \c false. \sa operator==() */ @@ -1271,8 +1271,8 @@ qreal QFontMetricsF::averageCharWidth() const } /*! - Returns true if character \a ch is a valid character in the font; - otherwise returns false. + Returns \c true if character \a ch is a valid character in the font; + otherwise returns \c false. */ bool QFontMetricsF::inFont(QChar ch) const { @@ -1287,8 +1287,8 @@ bool QFontMetricsF::inFont(QChar ch) const /*! \fn bool QFontMetricsF::inFontUcs4(uint ch) const - Returns true if the character given by \a ch, encoded in UCS-4/UTF-32, - is a valid character in the font; otherwise returns false. + Returns \c true if the character given by \a ch, encoded in UCS-4/UTF-32, + is a valid character in the font; otherwise returns \c false. */ bool QFontMetricsF::inFontUcs4(uint ucs4) const { diff --git a/src/gui/text/qglyphrun.cpp b/src/gui/text/qglyphrun.cpp index d35247ecf4..aba991ba2b 100644 --- a/src/gui/text/qglyphrun.cpp +++ b/src/gui/text/qglyphrun.cpp @@ -162,8 +162,8 @@ QGlyphRun &QGlyphRun::operator=(const QGlyphRun &other) */ /*! - Compares \a other to this QGlyphRun object. Returns true if the list of glyph indexes, - the list of positions and the font are all equal, otherwise returns false. + Compares \a other to this QGlyphRun object. Returns \c true if the list of glyph indexes, + the list of positions and the font are all equal, otherwise returns \c false. */ bool QGlyphRun::operator==(const QGlyphRun &other) const { @@ -194,8 +194,8 @@ bool QGlyphRun::operator==(const QGlyphRun &other) const /*! \fn bool QGlyphRun::operator!=(const QGlyphRun &other) const - Compares \a other to this QGlyphRun object. Returns true if any of the list of glyph - indexes, the list of positions or the font are different, otherwise returns false. + Compares \a other to this QGlyphRun object. Returns \c true if any of the list of glyph + indexes, the list of positions or the font are different, otherwise returns \c false. */ /*! @@ -309,7 +309,7 @@ void QGlyphRun::setRawData(const quint32 *glyphIndexArray, const QPointF *glyphP } /*! - Returns true if this QGlyphRun should be painted with an overline decoration. + Returns \c true if this QGlyphRun should be painted with an overline decoration. \sa setOverline(), flags() */ @@ -330,7 +330,7 @@ void QGlyphRun::setOverline(bool overline) } /*! - Returns true if this QGlyphRun should be painted with an underline decoration. + Returns \c true if this QGlyphRun should be painted with an underline decoration. \sa setUnderline(), flags() */ @@ -351,7 +351,7 @@ void QGlyphRun::setUnderline(bool underline) } /*! - Returns true if this QGlyphRun should be painted with a strike out decoration. + Returns \c true if this QGlyphRun should be painted with a strike out decoration. \sa setStrikeOut(), flags() */ @@ -372,7 +372,7 @@ void QGlyphRun::setStrikeOut(bool strikeOut) } /*! - Returns true if this QGlyphRun contains glyphs that are painted from the right to the left. + Returns \c true if this QGlyphRun contains glyphs that are painted from the right to the left. \since 5.0 \sa setRightToLeft(), flags() @@ -501,7 +501,7 @@ QRectF QGlyphRun::boundingRect() const } /*! - Returns true if the QGlyphRun does not contain any glyphs. + Returns \c true if the QGlyphRun does not contain any glyphs. \since 5.0 */ diff --git a/src/gui/text/qplatformfontdatabase.cpp b/src/gui/text/qplatformfontdatabase.cpp index 7dab89b366..7076fba41b 100644 --- a/src/gui/text/qplatformfontdatabase.cpp +++ b/src/gui/text/qplatformfontdatabase.cpp @@ -217,8 +217,8 @@ void QSupportedWritingSystems::setSupported(QFontDatabase::WritingSystem writing } /*! - Returns true if the writing system specified by \a writingSystem is - supported; otherwise returns false. + Returns \c true if the writing system specified by \a writingSystem is + supported; otherwise returns \c false. */ bool QSupportedWritingSystems::supported(QFontDatabase::WritingSystem writingSystem) const { diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp index f52b46eeae..b1b910422c 100644 --- a/src/gui/text/qrawfont.cpp +++ b/src/gui/text/qrawfont.cpp @@ -210,7 +210,7 @@ QRawFont &QRawFont::operator=(const QRawFont &other) */ /*! - Returns true if the QRawFont is valid and false otherwise. + Returns \c true if the QRawFont is valid and false otherwise. */ bool QRawFont::isValid() const { @@ -300,7 +300,7 @@ QPainterPath QRawFont::pathForGlyph(quint32 glyphIndex) const } /*! - Returns true if this QRawFont is equal to \a other. Otherwise, returns false. + Returns \c true if this QRawFont is equal to \a other. Otherwise, returns \c false. */ bool QRawFont::operator==(const QRawFont &other) const { @@ -310,7 +310,7 @@ bool QRawFont::operator==(const QRawFont &other) const /*! \fn bool QRawFont::operator!=(const QRawFont &other) const - Returns true if this QRawFont is not equal to \a other. Otherwise, returns false. + Returns \c true if this QRawFont is not equal to \a other. Otherwise, returns \c false. */ /*! @@ -668,7 +668,7 @@ QList QRawFont::supportedWritingSystems() const } /*! - Returns true if the font has a glyph that corresponds to the given \a character. + Returns \c true if the font has a glyph that corresponds to the given \a character. \sa supportedWritingSystems() */ @@ -680,7 +680,7 @@ bool QRawFont::supportsCharacter(QChar character) const /*! \overload - Returns true if the font has a glyph that corresponds to the UCS-4 encoded character \a ucs4. + Returns \c true if the font has a glyph that corresponds to the UCS-4 encoded character \a ucs4. \sa supportedWritingSystems() */ diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp index cd88e3bbe4..b153219136 100644 --- a/src/gui/text/qstatictext.cpp +++ b/src/gui/text/qstatictext.cpp @@ -112,7 +112,7 @@ QT_BEGIN_NAMESPACE For extra convenience, it is possible to apply formatting to the text using the HTML subset supported by QTextDocument. QStaticText will attempt to guess the format of the input text using - Qt::mightBeRichText(), and interpret it as rich text if this function returns true. To force + Qt::mightBeRichText(), and interpret it as rich text if this function returns \c true. To force QStaticText to display its contents as either plain text or rich text, use the function QStaticText::setTextFormat() and pass in, respectively, Qt::PlainText and Qt::RichText. @@ -233,7 +233,7 @@ QStaticText &QStaticText::operator=(const QStaticText &other) */ /*! - Compares \a other to this QStaticText. Returns true if the texts, fonts and text widths + Compares \a other to this QStaticText. Returns \c true if the texts, fonts and text widths are equal. */ bool QStaticText::operator==(const QStaticText &other) const @@ -245,7 +245,7 @@ bool QStaticText::operator==(const QStaticText &other) const } /*! - Compares \a other to this QStaticText. Returns true if the texts, fonts or maximum sizes + Compares \a other to this QStaticText. Returns \c true if the texts, fonts or maximum sizes are different. */ bool QStaticText::operator!=(const QStaticText &other) const diff --git a/src/gui/text/qtextcursor.cpp b/src/gui/text/qtextcursor.cpp index 39fca795c9..d12f3cccd8 100644 --- a/src/gui/text/qtextcursor.cpp +++ b/src/gui/text/qtextcursor.cpp @@ -920,7 +920,7 @@ QTextLayout *QTextCursorPrivate::blockLayout(QTextBlock &block) const{ hasSelection(), clearSelection(), and removeSelectedText(). If the position() is at the start of a block atBlockStart() - returns true; and if it is at the end of a block atBlockEnd() returns + returns \c true; and if it is at the end of a block atBlockEnd() returns true. The format of the current character is returned by charFormat(), and the format of the current block is returned by blockFormat(). @@ -1134,7 +1134,7 @@ QTextCursor::~QTextCursor() } /*! - Returns true if the cursor is null; otherwise returns false. A null + Returns \c true if the cursor is null; otherwise returns \c false. A null cursor is created by the default constructor. */ bool QTextCursor::isNull() const @@ -1222,8 +1222,8 @@ int QTextCursor::anchor() const \fn bool QTextCursor::movePosition(MoveOperation operation, MoveMode mode, int n) Moves the cursor by performing the given \a operation \a n times, using the specified - \a mode, and returns true if all operations were completed successfully; otherwise - returns false. + \a mode, and returns \c true if all operations were completed successfully; otherwise + returns \c false. For example, if this function is repeatedly used to seek to the end of the next word, it will eventually fail when the end of the document is reached. @@ -1280,8 +1280,8 @@ bool QTextCursor::movePosition(MoveOperation op, MoveMode mode, int n) /*! \since 4.4 - Returns true if the cursor does visual navigation; otherwise - returns false. + Returns \c true if the cursor does visual navigation; otherwise + returns \c false. Visual navigation means skipping over hidden text paragraphs. The default is false. @@ -1582,7 +1582,7 @@ void QTextCursor::select(SelectionType selection) } /*! - Returns true if the cursor contains a selection; otherwise returns false. + Returns \c true if the cursor contains a selection; otherwise returns \c false. */ bool QTextCursor::hasSelection() const { @@ -1591,8 +1591,8 @@ bool QTextCursor::hasSelection() const /*! - Returns true if the cursor contains a selection that is not simply a - range from selectionStart() to selectionEnd(); otherwise returns false. + Returns \c true if the cursor contains a selection that is not simply a + range from selectionStart() to selectionEnd(); otherwise returns \c false. Complex selections are ones that span at least two cells in a table; their extent is specified by selectedTableCells(). @@ -1946,8 +1946,8 @@ void QTextCursor::mergeCharFormat(const QTextCharFormat &modifier) } /*! - Returns true if the cursor is at the start of a block; otherwise - returns false. + Returns \c true if the cursor is at the start of a block; otherwise + returns \c false. \sa atBlockEnd(), atStart() */ @@ -1960,8 +1960,8 @@ bool QTextCursor::atBlockStart() const } /*! - Returns true if the cursor is at the end of a block; otherwise - returns false. + Returns \c true if the cursor is at the end of a block; otherwise + returns \c false. \sa atBlockStart(), atEnd() */ @@ -1974,8 +1974,8 @@ bool QTextCursor::atBlockEnd() const } /*! - Returns true if the cursor is at the start of the document; - otherwise returns false. + Returns \c true if the cursor is at the start of the document; + otherwise returns \c false. \sa atBlockStart(), atEnd() */ @@ -1990,8 +1990,8 @@ bool QTextCursor::atStart() const /*! \since 4.6 - Returns true if the cursor is at the end of the document; - otherwise returns false. + Returns \c true if the cursor is at the end of the document; + otherwise returns \c false. \sa atStart(), atBlockEnd() */ @@ -2344,8 +2344,8 @@ void QTextCursor::insertImage(const QImage &image, const QString &name) /*! \fn bool QTextCursor::operator!=(const QTextCursor &other) const - Returns true if the \a other cursor is at a different position in - the document as this cursor; otherwise returns false. + Returns \c true if the \a other cursor is at a different position in + the document as this cursor; otherwise returns \c false. */ bool QTextCursor::operator!=(const QTextCursor &rhs) const { @@ -2355,8 +2355,8 @@ bool QTextCursor::operator!=(const QTextCursor &rhs) const /*! \fn bool QTextCursor::operator<(const QTextCursor &other) const - Returns true if the \a other cursor is positioned later in the - document than this cursor; otherwise returns false. + Returns \c true if the \a other cursor is positioned later in the + document than this cursor; otherwise returns \c false. */ bool QTextCursor::operator<(const QTextCursor &rhs) const { @@ -2374,7 +2374,7 @@ bool QTextCursor::operator<(const QTextCursor &rhs) const /*! \fn bool QTextCursor::operator<=(const QTextCursor &other) const - Returns true if the \a other cursor is positioned later or at the + Returns \c true if the \a other cursor is positioned later or at the same position in the document as this cursor; otherwise returns false. */ @@ -2394,8 +2394,8 @@ bool QTextCursor::operator<=(const QTextCursor &rhs) const /*! \fn bool QTextCursor::operator==(const QTextCursor &other) const - Returns true if the \a other cursor is at the same position in the - document as this cursor; otherwise returns false. + Returns \c true if the \a other cursor is at the same position in the + document as this cursor; otherwise returns \c false. */ bool QTextCursor::operator==(const QTextCursor &rhs) const { @@ -2411,7 +2411,7 @@ bool QTextCursor::operator==(const QTextCursor &rhs) const /*! \fn bool QTextCursor::operator>=(const QTextCursor &other) const - Returns true if the \a other cursor is positioned earlier or at the + Returns \c true if the \a other cursor is positioned earlier or at the same position in the document as this cursor; otherwise returns false. */ @@ -2431,8 +2431,8 @@ bool QTextCursor::operator>=(const QTextCursor &rhs) const /*! \fn bool QTextCursor::operator>(const QTextCursor &other) const - Returns true if the \a other cursor is positioned earlier in the - document than this cursor; otherwise returns false. + Returns \c true if the \a other cursor is positioned earlier in the + document than this cursor; otherwise returns \c false. */ bool QTextCursor::operator>(const QTextCursor &rhs) const { @@ -2514,7 +2514,7 @@ void QTextCursor::endEditBlock() } /*! - Returns true if this cursor and \a other are copies of each other, i.e. + Returns \c true if this cursor and \a other are copies of each other, i.e. one of them was created as a copy of the other and neither has moved since. This is much stricter than equality. diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index b83af30f7f..03602712cc 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -74,8 +74,8 @@ QT_BEGIN_NAMESPACE Q_CORE_EXPORT unsigned int qt_int_sqrt(unsigned int n); /*! - Returns true if the string \a text is likely to be rich text; - otherwise returns false. + Returns \c true if the string \a text is likely to be rich text; + otherwise returns \c false. This function uses a fast and therefore simple heuristic. It mainly checks whether there is something that looks like a tag @@ -356,7 +356,7 @@ QTextDocument *QTextDocument::clone(QObject *parent) const } /*! - Returns true if the document is empty; otherwise returns false. + Returns \c true if the document is empty; otherwise returns \c false. */ bool QTextDocument::isEmpty() const { @@ -605,7 +605,7 @@ void QTextDocument::markContentsDirty(int from, int length) and pixel-rounding. This means that WYSIWYG text layout becomes possible because the width scales much more linearly based on paintdevice metrics than it would otherwise. - By default, this property is false. + By default, this property is \c false. */ void QTextDocument::setUseDesignMetrics(bool b) @@ -987,7 +987,7 @@ QString QTextDocument::defaultStyleSheet() const /*! - Returns true if undo is available; otherwise returns false. + Returns \c true if undo is available; otherwise returns \c false. \sa isRedoAvailable(), availableUndoSteps() */ @@ -998,7 +998,7 @@ bool QTextDocument::isUndoAvailable() const } /*! - Returns true if redo is available; otherwise returns false. + Returns \c true if redo is available; otherwise returns \c false. \sa isUndoAvailable(), availableRedoSteps() */ @@ -1612,7 +1612,7 @@ QFont QTextDocument::defaultFont() const \property QTextDocument::modified \brief whether the document has been modified by the user - By default, this property is false. + By default, this property is \c false. \sa modificationChanged() */ diff --git a/src/gui/text/qtextdocumentfragment.cpp b/src/gui/text/qtextdocumentfragment.cpp index 37f58a7512..df67fb581a 100644 --- a/src/gui/text/qtextdocumentfragment.cpp +++ b/src/gui/text/qtextdocumentfragment.cpp @@ -352,7 +352,7 @@ QTextDocumentFragment::~QTextDocumentFragment() } /*! - Returns true if the fragment is empty; otherwise returns false. + Returns \c true if the fragment is empty; otherwise returns \c false. */ bool QTextDocumentFragment::isEmpty() const { diff --git a/src/gui/text/qtextdocumentwriter.cpp b/src/gui/text/qtextdocumentwriter.cpp index a294bceacc..1722a791b9 100644 --- a/src/gui/text/qtextdocumentwriter.cpp +++ b/src/gui/text/qtextdocumentwriter.cpp @@ -88,7 +88,7 @@ public: later. Call write() to write the document to the device. If the document is - successfully written, this function returns true. However, if an error + successfully written, this function returns \c true. However, if an error occurs when writing the document, it will return false. Call supportedDocumentFormats() for a list of formats that @@ -245,7 +245,7 @@ QString QTextDocumentWriter::fileName () const /*! Writes the given \a document to the assigned device or file and - returns true if successful; otherwise returns false. + returns \c true if successful; otherwise returns \c false. */ bool QTextDocumentWriter::write(const QTextDocument *document) { @@ -304,7 +304,7 @@ bool QTextDocumentWriter::write(const QTextDocument *document) /*! Writes the document fragment specified by \a fragment to the assigned device - or file and returns true if successful; otherwise returns false. + or file and returns \c true if successful; otherwise returns \c false. */ bool QTextDocumentWriter::write(const QTextDocumentFragment &fragment) { diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp index 4f8a25c5a8..2389427da0 100644 --- a/src/gui/text/qtextformat.cpp +++ b/src/gui/text/qtextformat.cpp @@ -116,14 +116,14 @@ QT_BEGIN_NAMESPACE /*! \fn bool QTextLength::operator==(const QTextLength &other) const - Returns true if this text length is the same as the \a other text + Returns \c true if this text length is the same as the \a other text length. */ /*! \fn bool QTextLength::operator!=(const QTextLength &other) const - Returns true if this text length is different from the \a other text + Returns \c true if this text length is different from the \a other text length. */ @@ -701,55 +701,55 @@ Q_GUI_EXPORT QDataStream &operator>>(QDataStream &stream, QTextFormat &fmt) /*! \fn bool QTextFormat::isValid() const - Returns true if the format is valid (i.e. is not - InvalidFormat); otherwise returns false. + Returns \c true if the format is valid (i.e. is not + InvalidFormat); otherwise returns \c false. */ /*! \fn bool QTextFormat::isCharFormat() const - Returns true if this text format is a \c CharFormat; otherwise - returns false. + Returns \c true if this text format is a \c CharFormat; otherwise + returns \c false. */ /*! \fn bool QTextFormat::isBlockFormat() const - Returns true if this text format is a \c BlockFormat; otherwise - returns false. + Returns \c true if this text format is a \c BlockFormat; otherwise + returns \c false. */ /*! \fn bool QTextFormat::isListFormat() const - Returns true if this text format is a \c ListFormat; otherwise - returns false. + Returns \c true if this text format is a \c ListFormat; otherwise + returns \c false. */ /*! \fn bool QTextFormat::isTableFormat() const - Returns true if this text format is a \c TableFormat; otherwise - returns false. + Returns \c true if this text format is a \c TableFormat; otherwise + returns \c false. */ /*! \fn bool QTextFormat::isFrameFormat() const - Returns true if this text format is a \c FrameFormat; otherwise - returns false. + Returns \c true if this text format is a \c FrameFormat; otherwise + returns \c false. */ /*! \fn bool QTextFormat::isImageFormat() const - Returns true if this text format is an image format; otherwise - returns false. + Returns \c true if this text format is an image format; otherwise + returns \c false. */ @@ -757,8 +757,8 @@ Q_GUI_EXPORT QDataStream &operator>>(QDataStream &stream, QTextFormat &fmt) \fn bool QTextFormat::isTableCellFormat() const \since 4.4 - Returns true if this text format is a \c TableCellFormat; otherwise - returns false. + Returns \c true if this text format is a \c TableCellFormat; otherwise + returns \c false. */ @@ -1200,8 +1200,8 @@ void QTextFormat::setObjectIndex(int o) } /*! - Returns true if the text format has a property with the given \a - propertyId; otherwise returns false. + Returns \c true if the text format has a property with the given \a + propertyId; otherwise returns \c false. \sa properties(), Property */ @@ -1241,7 +1241,7 @@ int QTextFormat::propertyCount() const /*! \fn bool QTextFormat::operator!=(const QTextFormat &other) const - Returns true if this text format is different from the \a other text + Returns \c true if this text format is different from the \a other text format. */ @@ -1249,7 +1249,7 @@ int QTextFormat::propertyCount() const /*! \fn bool QTextFormat::operator==(const QTextFormat &other) const - Returns true if this text format is the same as the \a other text + Returns \c true if this text format is the same as the \a other text format. */ bool QTextFormat::operator==(const QTextFormat &rhs) const @@ -1365,7 +1365,7 @@ QTextCharFormat::QTextCharFormat(const QTextFormat &fmt) /*! \fn bool QTextCharFormat::isValid() const - Returns true if this character format is valid; otherwise returns + Returns \c true if this character format is valid; otherwise returns false. */ @@ -1437,8 +1437,8 @@ QTextCharFormat::QTextCharFormat(const QTextFormat &fmt) /*! \fn bool QTextCharFormat::fontItalic() const - Returns true if the text format's font is italic; otherwise - returns false. + Returns \c true if the text format's font is italic; otherwise + returns \c false. \sa font() */ @@ -1457,8 +1457,8 @@ QTextCharFormat::QTextCharFormat(const QTextFormat &fmt) /*! \fn bool QTextCharFormat::fontUnderline() const - Returns true if the text format's font is underlined; otherwise - returns false. + Returns \c true if the text format's font is underlined; otherwise + returns \c false. \sa font() */ @@ -1502,8 +1502,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style) /*! \fn bool QTextCharFormat::fontOverline() const - Returns true if the text format's font is overlined; otherwise - returns false. + Returns \c true if the text format's font is overlined; otherwise + returns \c false. \sa font() */ @@ -1523,8 +1523,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style) /*! \fn bool QTextCharFormat::fontStrikeOut() const - Returns true if the text format's font is struck out (has a horizontal line - drawn through it); otherwise returns false. + Returns \c true if the text format's font is struck out (has a horizontal line + drawn through it); otherwise returns \c false. \sa font() */ @@ -1591,7 +1591,7 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style) /*! \since 4.5 \fn bool QTextCharFormat::fontKerning() const - Returns true if the font kerning is enabled. + Returns \c true if the font kerning is enabled. \sa setFontKerning() \sa font() @@ -1611,8 +1611,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style) /*! \fn bool QTextCharFormat::fontFixedPitch() const - Returns true if the text format's font is fixed pitch; otherwise - returns false. + Returns \c true if the text format's font is fixed pitch; otherwise + returns \c false. \sa font() */ @@ -1712,8 +1712,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style) /*! \fn bool QTextCharFormat::isAnchor() const - Returns true if the text is formatted as an anchor; otherwise - returns false. + Returns \c true if the text is formatted as an anchor; otherwise + returns \c false. \sa setAnchor(), setAnchorHref(), setAnchorNames() */ @@ -2031,7 +2031,7 @@ QList QTextBlockFormat::tabPositions() const /*! \fn QTextBlockFormat::isValid() const - Returns true if this block format is valid; otherwise returns + Returns \c true if this block format is valid; otherwise returns false. */ @@ -2249,8 +2249,8 @@ QList QTextBlockFormat::tabPositions() const /*! \fn bool QTextBlockFormat::nonBreakableLines() const - Returns true if the lines in the paragraph are non-breakable; - otherwise returns false. + Returns \c true if the lines in the paragraph are non-breakable; + otherwise returns \c false. \sa setNonBreakableLines() */ @@ -2350,8 +2350,8 @@ QTextListFormat::QTextListFormat(const QTextFormat &fmt) /*! \fn bool QTextListFormat::isValid() const - Returns true if this list format is valid; otherwise - returns false. + Returns \c true if this list format is valid; otherwise + returns \c false. */ /*! @@ -2530,7 +2530,7 @@ QTextFrameFormat::QTextFrameFormat(const QTextFormat &fmt) /*! \fn QTextFrameFormat::isValid() const - Returns true if the format description is valid; otherwise returns false. + Returns \c true if the format description is valid; otherwise returns \c false. */ /*! @@ -2837,8 +2837,8 @@ QTextTableFormat::QTextTableFormat(const QTextFormat &fmt) /*! \fn bool QTextTableFormat::isValid() const - Returns true if this table format is valid; otherwise - returns false. + Returns \c true if this table format is valid; otherwise + returns \c false. */ @@ -3018,7 +3018,7 @@ QTextImageFormat::QTextImageFormat(const QTextFormat &fmt) /*! \fn bool QTextImageFormat::isValid() const - Returns true if this image format is valid; otherwise returns false. + Returns \c true if this image format is valid; otherwise returns \c false. */ @@ -3264,7 +3264,7 @@ QTextImageFormat::QTextImageFormat(const QTextFormat &fmt) \fn bool QTextTableCellFormat::isValid() const \since 4.4 - Returns true if this table cell format is valid; otherwise returns false. + Returns \c true if this table cell format is valid; otherwise returns \c false. */ /*! diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp index eed6758cc9..e10a7dbe10 100644 --- a/src/gui/text/qtextlayout.cpp +++ b/src/gui/text/qtextlayout.cpp @@ -130,7 +130,7 @@ QT_BEGIN_NAMESPACE /*! \fn bool QTextInlineObject::isValid() const - Returns true if this inline object is valid; otherwise returns + Returns \c true if this inline object is valid; otherwise returns false. */ @@ -543,8 +543,8 @@ void QTextLayout::setCacheEnabled(bool enable) } /*! - Returns true if the complete layout information is cached; otherwise - returns false. + Returns \c true if the complete layout information is cached; otherwise + returns \c false. \sa setCacheEnabled() */ @@ -728,7 +728,7 @@ int QTextLayout::leftCursorPosition(int oldPos) const } /*!/ - Returns true if position \a pos is a valid cursor position. + Returns \c true if position \a pos is a valid cursor position. In a Unicode context some positions in the text are not valid cursor positions, because the position is inside a Unicode @@ -1325,7 +1325,7 @@ void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition /*! \fn bool QTextLine::isValid() const - Returns true if this text line is valid; otherwise returns false. + Returns \c true if this text line is valid; otherwise returns \c false. */ /*! @@ -1459,8 +1459,8 @@ void QTextLine::setLeadingIncluded(bool included) /*! \since 4.6 - Returns true if positive leading is included into the line's height; - otherwise returns false. + Returns \c true if positive leading is included into the line's height; + otherwise returns \c false. By default, leading is not included. diff --git a/src/gui/text/qtextlist.cpp b/src/gui/text/qtextlist.cpp index 108501fdb3..f969f66006 100644 --- a/src/gui/text/qtextlist.cpp +++ b/src/gui/text/qtextlist.cpp @@ -106,7 +106,7 @@ public: \fn bool QTextList::isEmpty() const \obsolete - Returns true if the list has no items; otherwise returns false. + Returns \c true if the list has no items; otherwise returns \c false. \b{Note:} Empty lists are automatically deleted by the QTextDocument that owns them. diff --git a/src/gui/text/qtextobject.cpp b/src/gui/text/qtextobject.cpp index 8465dcdaad..d1a39c6ab6 100644 --- a/src/gui/text/qtextobject.cpp +++ b/src/gui/text/qtextobject.cpp @@ -369,14 +369,14 @@ QTextFrameLayoutData::~QTextFrameLayoutData() \fn bool QTextFrame::iterator::operator==(const iterator &other) const Retuns true if the iterator is the same as the \a other iterator; - otherwise returns false. + otherwise returns \c false. */ /*! \fn bool QTextFrame::iterator::operator!=(const iterator &other) const Retuns true if the iterator is different from the \a other iterator; - otherwise returns false. + otherwise returns \c false. */ /*! @@ -617,7 +617,7 @@ void QTextFramePrivate::remove_me() /*! \fn bool QTextFrame::iterator::atEnd() const - Returns true if the current item is the last item in the text frame. + Returns \c true if the current item is the last item in the text frame. */ /*! @@ -896,7 +896,7 @@ QTextBlockUserData::~QTextBlockUserData() /*! \fn bool QTextBlock::isValid() const - Returns true if this text block is valid; otherwise returns false. + Returns \c true if this text block is valid; otherwise returns \c false. */ bool QTextBlock::isValid() const @@ -913,21 +913,21 @@ bool QTextBlock::isValid() const /*! \fn bool QTextBlock::operator==(const QTextBlock &other) const - Returns true if this text block is the same as the \a other text + Returns \c true if this text block is the same as the \a other text block. */ /*! \fn bool QTextBlock::operator!=(const QTextBlock &other) const - Returns true if this text block is different from the \a other + Returns \c true if this text block is different from the \a other text block. */ /*! \fn bool QTextBlock::operator<(const QTextBlock &other) const - Returns true if this text block occurs before the \a other text + Returns \c true if this text block occurs before the \a other text block in the document. */ @@ -975,21 +975,21 @@ bool QTextBlock::isValid() const /*! \fn bool QTextBlock::iterator::atEnd() const - Returns true if the current item is the last item in the text block. + Returns \c true if the current item is the last item in the text block. */ /*! \fn bool QTextBlock::iterator::operator==(const iterator &other) const Retuns true if this iterator is the same as the \a other iterator; - otherwise returns false. + otherwise returns \c false. */ /*! \fn bool QTextBlock::iterator::operator!=(const iterator &other) const Retuns true if this iterator is different from the \a other iterator; - otherwise returns false. + otherwise returns \c false. */ /*! @@ -1047,8 +1047,8 @@ int QTextBlock::length() const } /*! - Returns true if the given \a position is located within the text - block; otherwise returns false. + Returns \c true if the given \a position is located within the text + block; otherwise returns \c false. */ bool QTextBlock::contains(int position) const { @@ -1372,7 +1372,7 @@ void QTextBlock::setRevision(int rev) /*! \since 4.4 - Returns true if the block is visible; otherwise returns false. + Returns \c true if the block is visible; otherwise returns \c false. \sa setVisible() */ @@ -1651,21 +1651,21 @@ QTextBlock::iterator &QTextBlock::iterator::operator--() /*! \fn bool QTextFragment::isValid() const - Returns true if this is a valid text fragment (i.e. has a valid - position in a document); otherwise returns false. + Returns \c true if this is a valid text fragment (i.e. has a valid + position in a document); otherwise returns \c false. */ /*! \fn bool QTextFragment::operator==(const QTextFragment &other) const - Returns true if this text fragment is the same (at the same - position) as the \a other text fragment; otherwise returns false. + Returns \c true if this text fragment is the same (at the same + position) as the \a other text fragment; otherwise returns \c false. */ /*! \fn bool QTextFragment::operator!=(const QTextFragment &other) const - Returns true if this text fragment is different (at a different + Returns \c true if this text fragment is different (at a different position) from the \a other text fragment; otherwise returns false. */ @@ -1673,8 +1673,8 @@ QTextBlock::iterator &QTextBlock::iterator::operator--() /*! \fn bool QTextFragment::operator<(const QTextFragment &other) const - Returns true if this text fragment appears earlier in the document - than the \a other text fragment; otherwise returns false. + Returns \c true if this text fragment appears earlier in the document + than the \a other text fragment; otherwise returns \c false. */ /*! @@ -1747,8 +1747,8 @@ int QTextFragment::length() const } /*! - Returns true if the text fragment contains the text at the given - \a position in the document; otherwise returns false. + Returns \c true if the text fragment contains the text at the given + \a position in the document; otherwise returns \c false. */ bool QTextFragment::contains(int position) const { diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp index 1284207307..836e85889e 100644 --- a/src/gui/text/qtextoption.cpp +++ b/src/gui/text/qtextoption.cpp @@ -118,8 +118,8 @@ QTextOption::QTextOption(const QTextOption &o) /*! \fn QTextOption &QTextOption::operator=(const QTextOption &other) - Returns true if the text option is the same as the \a other text option; - otherwise returns false. + Returns \c true if the text option is the same as the \a other text option; + otherwise returns \c false. */ QTextOption &QTextOption::operator=(const QTextOption &o) { @@ -248,8 +248,8 @@ QList QTextOption::tabs() const /*! \fn bool QTextOption::useDesignMetrics() const - Returns true if the layout uses design rather than device metrics; - otherwise returns false. + Returns \c true if the layout uses design rather than device metrics; + otherwise returns \c false. \sa setUseDesignMetrics() */ @@ -409,15 +409,15 @@ QList QTextOption::tabs() const /*! \fn bool Tab::operator==(const Tab &other) const - Returns true if tab \a other is equal to this tab; - otherwise returns false. + Returns \c true if tab \a other is equal to this tab; + otherwise returns \c false. */ /*! \fn bool Tab::operator!=(const Tab &other) const - Returns true if tab \a other is not equal to this tab; - otherwise returns false. + Returns \c true if tab \a other is not equal to this tab; + otherwise returns \c false. */ /*! diff --git a/src/gui/text/qtexttable.cpp b/src/gui/text/qtexttable.cpp index 879c3ddc70..d77cbf9671 100644 --- a/src/gui/text/qtexttable.cpp +++ b/src/gui/text/qtexttable.cpp @@ -217,7 +217,7 @@ int QTextTableCell::columnSpan() const /*! \fn bool QTextTableCell::isValid() const - Returns true if this is a valid table cell; otherwise returns + Returns \c true if this is a valid table cell; otherwise returns false. */ @@ -303,15 +303,15 @@ QTextFrame::iterator QTextTableCell::end() const /*! \fn QTextCursor QTextTableCell::operator==(const QTextTableCell &other) const - Returns true if this cell object and the \a other cell object - describe the same cell; otherwise returns false. + Returns \c true if this cell object and the \a other cell object + describe the same cell; otherwise returns \c false. */ /*! \fn QTextCursor QTextTableCell::operator!=(const QTextTableCell &other) const - Returns true if this cell object and the \a other cell object - describe different cells; otherwise returns false. + Returns \c true if this cell object and the \a other cell object + describe different cells; otherwise returns \c false. */ /*! diff --git a/src/gui/text/qzip.cpp b/src/gui/text/qzip.cpp index 151b0bcfeb..dee56d18f7 100644 --- a/src/gui/text/qzip.cpp +++ b/src/gui/text/qzip.cpp @@ -899,7 +899,7 @@ QIODevice* QZipReader::device() const } /*! - Returns true if the user can read the file; otherwise returns false. + Returns \c true if the user can read the file; otherwise returns \c false. */ bool QZipReader::isReadable() const { @@ -907,7 +907,7 @@ bool QZipReader::isReadable() const } /*! - Returns true if the file exists; otherwise returns false. + Returns \c true if the file exists; otherwise returns \c false. */ bool QZipReader::exists() const { @@ -1194,7 +1194,7 @@ QIODevice* QZipWriter::device() const } /*! - Returns true if the user can write to the archive; otherwise returns false. + Returns \c true if the user can write to the archive; otherwise returns \c false. */ bool QZipWriter::isWritable() const { @@ -1202,7 +1202,7 @@ bool QZipWriter::isWritable() const } /*! - Returns true if the file exists; otherwise returns false. + Returns \c true if the file exists; otherwise returns \c false. */ bool QZipWriter::exists() const { diff --git a/src/gui/util/qdesktopservices.cpp b/src/gui/util/qdesktopservices.cpp index f5895414a9..87146118db 100644 --- a/src/gui/util/qdesktopservices.cpp +++ b/src/gui/util/qdesktopservices.cpp @@ -151,7 +151,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler) /*! Opens the given \a url in the appropriate Web browser for the user's desktop - environment, and returns true if successful; otherwise returns false. + environment, and returns \c true if successful; otherwise returns \c false. If the URL is a reference to a local file (i.e., the URL scheme is "file") then it will be opened with a suitable application instead of a Web browser. diff --git a/src/network/access/qabstractnetworkcache.cpp b/src/network/access/qabstractnetworkcache.cpp index 69e0d26a0e..01a5d5d4e1 100644 --- a/src/network/access/qabstractnetworkcache.cpp +++ b/src/network/access/qabstractnetworkcache.cpp @@ -158,7 +158,7 @@ QNetworkCacheMetaData &QNetworkCacheMetaData::operator=(const QNetworkCacheMetaD */ /*! - Returns true if this meta data is equal to the \a other meta data; otherwise returns false. + Returns \c true if this meta data is equal to the \a other meta data; otherwise returns \c false. \sa operator!=() */ @@ -174,13 +174,13 @@ bool QNetworkCacheMetaData::operator==(const QNetworkCacheMetaData &other) const /*! \fn bool QNetworkCacheMetaData::operator!=(const QNetworkCacheMetaData &other) const - Returns true if this meta data is not equal to the \a other meta data; otherwise returns false. + Returns \c true if this meta data is not equal to the \a other meta data; otherwise returns \c false. \sa operator==() */ /*! - Returns true if this network cache meta data has attributes that have been set otherwise false. + Returns \c true if this network cache meta data has attributes that have been set otherwise false. */ bool QNetworkCacheMetaData::isValid() const { diff --git a/src/network/access/qftp.cpp b/src/network/access/qftp.cpp index a77e1a643c..3b0d0deeb9 100644 --- a/src/network/access/qftp.cpp +++ b/src/network/access/qftp.cpp @@ -831,8 +831,8 @@ void QFtpPI::connectToHost(const QString &host, quint16 port) are all done the finished() signal is emitted. When an error occurs, the error() signal is emitted. - If there are pending commands in the queue this functions returns false and - the \a cmds are not added to the queue; otherwise it returns true. + If there are pending commands in the queue this functions returns \c false and + the \a cmds are not added to the queue; otherwise it returns \c true. */ bool QFtpPI::sendCommands(const QStringList &cmds) { @@ -987,7 +987,7 @@ void QFtpPI::readyRead() Process a reply from the FTP server. - Returns true if the reply was processed or false if the reply has to be + Returns \c true if the reply was processed or false if the reply has to be processed at a later point. */ bool QFtpPI::processReply() @@ -1159,8 +1159,8 @@ bool QFtpPI::processReply() /* \internal - Starts next pending command. Returns false if there are no pending commands, - otherwise it returns true. + Starts next pending command. Returns \c false if there are no pending commands, + otherwise it returns \c true. */ bool QFtpPI::startNextCmd() { @@ -2164,8 +2164,8 @@ QIODevice* QFtp::currentDevice() const /*! \internal - Returns true if there are any commands scheduled that have not yet - been executed; otherwise returns false. + Returns \c true if there are any commands scheduled that have not yet + been executed; otherwise returns \c false. The command that is being executed is \e not considered as a scheduled command. diff --git a/src/network/access/qhttpmultipart.cpp b/src/network/access/qhttpmultipart.cpp index 5985ed94e0..20860b0fc9 100644 --- a/src/network/access/qhttpmultipart.cpp +++ b/src/network/access/qhttpmultipart.cpp @@ -134,7 +134,7 @@ QHttpPart &QHttpPart::operator=(const QHttpPart &other) */ /*! - Returns true if this object is the same as \a other (i.e., if they + Returns \c true if this object is the same as \a other (i.e., if they have the same headers and body). \sa operator!=() @@ -147,7 +147,7 @@ bool QHttpPart::operator==(const QHttpPart &other) const /*! \fn bool QHttpPart::operator!=(const QHttpPart &other) const - Returns true if this object is not the same as \a other. + Returns \c true if this object is not the same as \a other. \sa operator==() */ diff --git a/src/network/access/qnetworkaccessbackend.cpp b/src/network/access/qnetworkaccessbackend.cpp index 47cd928541..3c5e1e80a8 100644 --- a/src/network/access/qnetworkaccessbackend.cpp +++ b/src/network/access/qnetworkaccessbackend.cpp @@ -374,7 +374,7 @@ void QNetworkAccessBackend::sslErrors(const QList &errors) } /*! - Starts the backend. Returns true if the backend is started. Returns false if the backend + Starts the backend. Returns \c true if the backend is started. Returns \c false if the backend could not be started due to an unopened or roaming session. The caller should recall this function once the session has been opened or the roaming process has finished. */ diff --git a/src/network/access/qnetworkaccessbackend_p.h b/src/network/access/qnetworkaccessbackend_p.h index d9657cf750..dd033e805b 100644 --- a/src/network/access/qnetworkaccessbackend_p.h +++ b/src/network/access/qnetworkaccessbackend_p.h @@ -163,7 +163,7 @@ public: // This will possibly enable buffering of the upload data. virtual bool needsResetableUploadData() { return false; } - // Returns true if backend is able to resume downloads. + // Returns \c true if backend is able to resume downloads. virtual bool canResume() const { return false; } virtual void setResumeOffset(quint64 offset) { Q_UNUSED(offset); } diff --git a/src/network/access/qnetworkaccesscache.cpp b/src/network/access/qnetworkaccesscache.cpp index 4284cb4565..8ee2c3ef27 100644 --- a/src/network/access/qnetworkaccesscache.cpp +++ b/src/network/access/qnetworkaccesscache.cpp @@ -165,7 +165,7 @@ void QNetworkAccessCache::linkEntry(const QByteArray &key) /*! Removes the entry pointed by \a key from the linked list. - Returns true if the entry removed was the oldest one. + Returns \c true if the entry removed was the oldest one. */ bool QNetworkAccessCache::unlinkEntry(const QByteArray &key) { diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp index a40a28b03f..a871c04d56 100644 --- a/src/network/access/qnetworkcookie.cpp +++ b/src/network/access/qnetworkcookie.cpp @@ -155,15 +155,15 @@ QNetworkCookie &QNetworkCookie::operator=(const QNetworkCookie &other) /*! \fn bool QNetworkCookie::operator!=(const QNetworkCookie &other) const - Returns true if this cookie is not equal to \a other. + Returns \c true if this cookie is not equal to \a other. \sa operator==() */ /*! \since 5.0 - Returns true if this cookie is equal to \a other. This function - only returns true if all fields of the cookie are the same. + Returns \c true if this cookie is equal to \a other. This function + only returns \c true if all fields of the cookie are the same. However, in some contexts, two cookies of the same name could be considered equal. @@ -184,7 +184,7 @@ bool QNetworkCookie::operator==(const QNetworkCookie &other) const } /*! - Returns true if this cookie has the same identifier tuple as \a other. + Returns \c true if this cookie has the same identifier tuple as \a other. The identifier tuple is composed of the name, domain and path. \sa operator==() @@ -195,7 +195,7 @@ bool QNetworkCookie::hasSameIdentifier(const QNetworkCookie &other) const } /*! - Returns true if the "secure" option was specified in the cookie + Returns \c true if the "secure" option was specified in the cookie string, false otherwise. Secure cookies may contain private information and should not be @@ -224,7 +224,7 @@ void QNetworkCookie::setSecure(bool enable) /*! \since 4.5 - Returns true if the "HttpOnly" flag is enabled for this cookie. + Returns \c true if the "HttpOnly" flag is enabled for this cookie. A cookie that is "HttpOnly" is only set and retrieved by the network requests and replies; i.e., the HTTP protocol. It is not @@ -248,7 +248,7 @@ void QNetworkCookie::setHttpOnly(bool enable) } /*! - Returns true if this cookie is a session cookie. A session cookie + Returns \c true if this cookie is a session cookie. A session cookie is a cookie which has no expiration date, which means it should be discarded when the application's concept of session is over (usually, when the application exits). diff --git a/src/network/access/qnetworkcookiejar.cpp b/src/network/access/qnetworkcookiejar.cpp index b9e7c36149..d6a5986271 100644 --- a/src/network/access/qnetworkcookiejar.cpp +++ b/src/network/access/qnetworkcookiejar.cpp @@ -169,7 +169,7 @@ static inline bool isParentDomain(QString domain, QString reference) Adds the cookies in the list \a cookieList to this cookie jar. Before being inserted cookies are normalized. - Returns true if one or more cookies are set for \a url, + Returns \c true if one or more cookies are set for \a url, otherwise false. If a cookie already exists in the cookie jar, it will be @@ -265,7 +265,7 @@ QList QNetworkCookieJar::cookiesForUrl(const QUrl &url) const \since 5.0 Adds \a cookie to this cookie jar. - Returns true if \a cookie was added, false otherwise. + Returns \c true if \a cookie was added, false otherwise. If a cookie with the same identifier already exists in the cookie jar, it will be overridden. @@ -291,7 +291,7 @@ bool QNetworkCookieJar::insertCookie(const QNetworkCookie &cookie) If a cookie with the same identifier as \a cookie exists in this cookie jar it will be updated. This function uses insertCookie(). - Returns true if \a cookie was updated, false if no cookie in the jar matches + Returns \c true if \a cookie was updated, false if no cookie in the jar matches the identifier of \a cookie. \sa QNetworkCookie::hasSameIdentifier() @@ -307,7 +307,7 @@ bool QNetworkCookieJar::updateCookie(const QNetworkCookie &cookie) \since 5.0 Deletes from cookie jar the cookie found to have the same identifier as \a cookie. - Returns true if a cookie was deleted, false otherwise. + Returns \c true if a cookie was deleted, false otherwise. \sa QNetworkCookie::hasSameIdentifier() */ @@ -325,7 +325,7 @@ bool QNetworkCookieJar::deleteCookie(const QNetworkCookie &cookie) /*! \since 5.0 - Returns true if the domain and path of \a cookie are valid, false otherwise. + Returns \c true if the domain and path of \a cookie are valid, false otherwise. The \a url parameter is used to determine if the domain specified in the cookie is allowed. */ diff --git a/src/network/access/qnetworkdiskcache.cpp b/src/network/access/qnetworkdiskcache.cpp index 064f87c2c0..d64d697013 100644 --- a/src/network/access/qnetworkdiskcache.cpp +++ b/src/network/access/qnetworkdiskcache.cpp @@ -685,7 +685,7 @@ void QCacheItem::writeCompressedData(QFile *device) const } /*! - Returns false if the file is a cache file, + Returns \c false if the file is a cache file, but is an older version and should be removed otherwise true. */ bool QCacheItem::read(QFile *device, bool readData) diff --git a/src/network/access/qnetworkreply.cpp b/src/network/access/qnetworkreply.cpp index dc42adc612..ba6f706f7a 100644 --- a/src/network/access/qnetworkreply.cpp +++ b/src/network/access/qnetworkreply.cpp @@ -490,7 +490,7 @@ QNetworkReply::NetworkError QNetworkReply::error() const /*! \since 4.6 - Returns true when the reply has finished or was aborted. + Returns \c true when the reply has finished or was aborted. \sa isRunning() */ @@ -502,7 +502,7 @@ bool QNetworkReply::isFinished() const /*! \since 4.6 - Returns true when the request is still processing and the + Returns \c true when the request is still processing and the reply has not finished or was aborted yet. \sa isFinished() @@ -536,7 +536,7 @@ QVariant QNetworkReply::header(QNetworkRequest::KnownHeaders header) const } /*! - Returns true if the raw header of name \a headerName was sent by + Returns \c true if the raw header of name \a headerName was sent by the remote server \sa rawHeader() diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp index ddef970966..29d23bfd8f 100644 --- a/src/network/access/qnetworkreplyhttpimpl.cpp +++ b/src/network/access/qnetworkreplyhttpimpl.cpp @@ -1521,7 +1521,7 @@ void QNetworkReplyHttpImplPrivate::setResumeOffset(quint64 offset) } /*! - Starts the backend. Returns true if the backend is started. Returns false if the backend + Starts the backend. Returns \c true if the backend is started. Returns \c false if the backend could not be started due to an unopened or roaming session. The caller should recall this function once the session has been opened or the roaming process has finished. */ @@ -1961,7 +1961,7 @@ void QNetworkReplyHttpImplPrivate::metaDataChanged() /* Migrates the backend of the QNetworkReply to a new network connection if required. Returns - true if the reply is migrated or it is not required; otherwise returns false. + true if the reply is migrated or it is not required; otherwise returns \c false. */ bool QNetworkReplyHttpImplPrivate::migrateBackend() { diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index 33357293a3..f51b85cba0 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -1079,7 +1079,7 @@ bool QNetworkReplyImpl::event(QEvent *e) /* Migrates the backend of the QNetworkReply to a new network connection if required. Returns - true if the reply is migrated or it is not required; otherwise returns false. + true if the reply is migrated or it is not required; otherwise returns \c false. */ bool QNetworkReplyImplPrivate::migrateBackend() { diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index 00d5b81413..65fd693771 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -369,7 +369,7 @@ QNetworkRequest::~QNetworkRequest() } /*! - Returns true if this object is the same as \a other (i.e., if they + Returns \c true if this object is the same as \a other (i.e., if they have the same URL, same headers and same meta-data settings). \sa operator!=() @@ -382,7 +382,7 @@ bool QNetworkRequest::operator==(const QNetworkRequest &other) const /*! \fn bool QNetworkRequest::operator!=(const QNetworkRequest &other) const - Returns false if this object is not the same as \a other. + Returns \c false if this object is not the same as \a other. \sa operator==() */ @@ -449,7 +449,7 @@ void QNetworkRequest::setHeader(KnownHeaders header, const QVariant &value) } /*! - Returns true if the raw header \a headerName is present in this + Returns \c true if the raw header \a headerName is present in this network request. \sa rawHeader(), setRawHeader() diff --git a/src/network/bearer/qbearerengine.cpp b/src/network/bearer/qbearerengine.cpp index e07426025e..520323471a 100644 --- a/src/network/bearer/qbearerengine.cpp +++ b/src/network/bearer/qbearerengine.cpp @@ -82,9 +82,9 @@ bool QBearerEngine::requiresPolling() const } /* - Returns true if configurations are in use; otherwise returns false. + Returns \c true if configurations are in use; otherwise returns \c false. - If configurations are in use and requiresPolling() returns true, polling will be enabled for + If configurations are in use and requiresPolling() returns \c true, polling will be enabled for this engine. */ bool QBearerEngine::configurationsInUse() const diff --git a/src/network/bearer/qnetworkconfigmanager.cpp b/src/network/bearer/qnetworkconfigmanager.cpp index 933bebe2ad..dc36443718 100644 --- a/src/network/bearer/qnetworkconfigmanager.cpp +++ b/src/network/bearer/qnetworkconfigmanager.cpp @@ -321,8 +321,8 @@ QNetworkConfiguration QNetworkConfigurationManager::configurationFromIdentifier( } /*! - Returns true if the system is considered to be connected to another device via an active - network interface; otherwise returns false. + Returns \c true if the system is considered to be connected to another device via an active + network interface; otherwise returns \c false. This is equivalent to the following code snippet: diff --git a/src/network/bearer/qnetworkconfiguration.cpp b/src/network/bearer/qnetworkconfiguration.cpp index 40381a04c0..8d34db19cd 100644 --- a/src/network/bearer/qnetworkconfiguration.cpp +++ b/src/network/bearer/qnetworkconfiguration.cpp @@ -331,8 +331,8 @@ QNetworkConfiguration &QNetworkConfiguration::operator=(const QNetworkConfigurat */ /*! - Returns true, if this configuration is the same as the \a other - configuration given; otherwise returns false. + Returns \c true, if this configuration is the same as the \a other + configuration given; otherwise returns \c false. */ bool QNetworkConfiguration::operator==(const QNetworkConfiguration &other) const { @@ -342,8 +342,8 @@ bool QNetworkConfiguration::operator==(const QNetworkConfiguration &other) const /*! \fn bool QNetworkConfiguration::operator!=(const QNetworkConfiguration &other) const - Returns true if this configuration is not the same as the \a other - configuration given; otherwise returns false. + Returns \c true if this configuration is not the same as the \a other + configuration given; otherwise returns \c false. */ /*! @@ -392,7 +392,7 @@ QNetworkConfiguration::Type QNetworkConfiguration::type() const } /*! - Returns true if this QNetworkConfiguration object is valid. + Returns \c true if this QNetworkConfiguration object is valid. A configuration may become invalid if the user deletes the configuration or the configuration was default-constructed. @@ -439,7 +439,7 @@ QNetworkConfiguration::Purpose QNetworkConfiguration::purpose() const } /*! - Returns true if this configuration supports roaming; otherwise false. + Returns \c true if this configuration supports roaming; otherwise false. */ bool QNetworkConfiguration::isRoamingAvailable() const { diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp index cca95fce8c..98a8f27a6e 100644 --- a/src/network/bearer/qnetworksession.cpp +++ b/src/network/bearer/qnetworksession.cpp @@ -314,7 +314,7 @@ void QNetworkSession::open() /*! Waits until the session has been opened, up to \a msecs milliseconds. If the session has been opened, this - function returns true; otherwise it returns false. In the case where it returns false, you can call error() + function returns \c true; otherwise it returns \c false. In the case where it returns \c false, you can call error() to determine the cause of the error. The following example waits up to one second for the session to be opened: @@ -415,7 +415,7 @@ QNetworkInterface QNetworkSession::interface() const #endif /*! - Returns true if this session is open. If the number of all open sessions is greater than + Returns \c true if this session is open. If the number of all open sessions is greater than zero the underlying network interface will remain connected/up. The session can be controlled via open() and close(). diff --git a/src/network/doc/src/bearermanagement.qdoc b/src/network/doc/src/bearermanagement.qdoc index b818057c35..63022b6a6f 100644 --- a/src/network/doc/src/bearermanagement.qdoc +++ b/src/network/doc/src/bearermanagement.qdoc @@ -177,7 +177,7 @@ and an \l{QNetworkSession::isOpen()}{isOpen()} condition. The state() attribute enables developers to detect whether the system currently maintains a global network session for the given QNetworkConfiguration. If \l {QNetworkSession::isOpen()}{isOpen()} -returns true the QNetworkSession instance at hand was at least one of the +returns \c true the QNetworkSession instance at hand was at least one of the entities requesting the global network session. This distinction is required to support the notion of session registrations. For as long as there are one or more open QNetworkSession instances the underlying diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 0ea97f25a6..e1a24a226f 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -197,8 +197,8 @@ QAuthenticator &QAuthenticator::operator=(const QAuthenticator &other) } /*! - Returns true if this authenticator is identical to \a other; otherwise - returns false. + Returns \c true if this authenticator is identical to \a other; otherwise + returns \c false. */ bool QAuthenticator::operator==(const QAuthenticator &other) const { @@ -214,8 +214,8 @@ bool QAuthenticator::operator==(const QAuthenticator &other) const /*! \fn bool QAuthenticator::operator!=(const QAuthenticator &other) const - Returns true if this authenticator is different from \a other; otherwise - returns false. + Returns \c true if this authenticator is different from \a other; otherwise + returns \c false. */ /*! @@ -320,7 +320,7 @@ void QAuthenticator::setOption(const QString &opt, const QVariant &value) /*! - Returns true if the authenticator is null. + Returns \c true if the authenticator is null. */ bool QAuthenticator::isNull() const { diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp index 5ef428305c..18fd6dee58 100644 --- a/src/network/kernel/qhostaddress.cpp +++ b/src/network/kernel/qhostaddress.cpp @@ -530,15 +530,15 @@ QHostAddress &QHostAddress::operator=(const QString &address) \fn bool QHostAddress::operator!=(const QHostAddress &other) const \since 4.2 - Returns true if this host address is not the same as the \a other - address given; otherwise returns false. + Returns \c true if this host address is not the same as the \a other + address given; otherwise returns \c false. */ /*! \fn bool QHostAddress::operator!=(SpecialAddress other) const - Returns true if this host address is not the same as the \a other - address given; otherwise returns false. + Returns \c true if this host address is not the same as the \a other + address given; otherwise returns \c false. */ /*! @@ -585,8 +585,8 @@ void QHostAddress::setAddress(const Q_IPV6ADDR &ip6Addr) Sets the IPv4 or IPv6 address specified by the string representation specified by \a address (e.g. "127.0.0.1"). - Returns true and sets the address if the address was successfully - parsed; otherwise returns false. + Returns \c true and sets the address if the address was successfully + parsed; otherwise returns \c false. */ bool QHostAddress::setAddress(const QString &address) { @@ -599,8 +599,8 @@ bool QHostAddress::setAddress(const QString &address) \overload Sets the IPv4 or IPv6 address specified by the native structure \a - sockaddr. Returns true and sets the address if the address was - successfully parsed; otherwise returns false. + sockaddr. Returns \c true and sets the address if the address was + successfully parsed; otherwise returns \c false. */ void QHostAddress::setAddress(const struct sockaddr *sockaddr) { @@ -754,8 +754,8 @@ void QHostAddress::setScopeId(const QString &id) } /*! - Returns true if this host address is the same as the \a other address - given; otherwise returns false. + Returns \c true if this host address is the same as the \a other address + given; otherwise returns \c false. */ bool QHostAddress::operator==(const QHostAddress &other) const { @@ -772,8 +772,8 @@ bool QHostAddress::operator==(const QHostAddress &other) const } /*! - Returns true if this host address is the same as the \a other - address given; otherwise returns false. + Returns \c true if this host address is the same as the \a other + address given; otherwise returns \c false. */ bool QHostAddress::operator ==(SpecialAddress other) const { @@ -793,7 +793,7 @@ bool QHostAddress::operator ==(SpecialAddress other) const } /*! - Returns true if this host address is null (INADDR_ANY or in6addr_any). + Returns \c true if this host address is null (INADDR_ANY or in6addr_any). The default constructor creates a null address, and that address is not valid for any host or interface. */ @@ -806,7 +806,7 @@ bool QHostAddress::isNull() const /*! \since 4.5 - Returns true if this IP is in the subnet described by the network + Returns \c true if this IP is in the subnet described by the network prefix \a subnet and netmask \a netmask. An IP is considered to belong to a subnet if it is contained @@ -866,7 +866,7 @@ bool QHostAddress::isInSubnet(const QHostAddress &subnet, int netmask) const \since 4.5 \overload - Returns true if this IP is in the subnet described by \a + Returns \c true if this IP is in the subnet described by \a subnet. The QHostAddress member of \a subnet contains the network prefix and the int (second) member contains the netmask (prefix length). @@ -1002,7 +1002,7 @@ QPair QHostAddress::parseSubnet(const QString &subnet) /*! \since 5.0 - returns true if the address is the IPv6 loopback address, or any + returns \c true if the address is the IPv6 loopback address, or any of the IPv4 loopback addresses. */ bool QHostAddress::isLoopback() const diff --git a/src/network/kernel/qnetworkinterface.cpp b/src/network/kernel/qnetworkinterface.cpp index f47638db86..632b0cd156 100644 --- a/src/network/kernel/qnetworkinterface.cpp +++ b/src/network/kernel/qnetworkinterface.cpp @@ -201,7 +201,7 @@ QNetworkAddressEntry::~QNetworkAddressEntry() } /*! - Returns true if this network address entry is the same as \a + Returns \c true if this network address entry is the same as \a other. */ bool QNetworkAddressEntry::operator==(const QNetworkAddressEntry &other) const @@ -216,7 +216,7 @@ bool QNetworkAddressEntry::operator==(const QNetworkAddressEntry &other) const /*! \fn bool QNetworkAddressEntry::operator!=(const QNetworkAddressEntry &other) const - Returns true if this network address entry is different from \a + Returns \c true if this network address entry is different from \a other. */ @@ -435,7 +435,7 @@ QNetworkInterface &QNetworkInterface::operator=(const QNetworkInterface &other) */ /*! - Returns true if this QNetworkInterface object contains valid + Returns \c true if this QNetworkInterface object contains valid information about a network interface. */ bool QNetworkInterface::isValid() const diff --git a/src/network/kernel/qnetworkproxy.cpp b/src/network/kernel/qnetworkproxy.cpp index a38655d244..5cc41392b5 100644 --- a/src/network/kernel/qnetworkproxy.cpp +++ b/src/network/kernel/qnetworkproxy.cpp @@ -499,7 +499,7 @@ QNetworkProxy::~QNetworkProxy() /*! \since 4.4 - Compares the value of this network proxy to \a other and returns true + Compares the value of this network proxy to \a other and returns \c true if they are equal (same proxy type, server as well as username and password) */ bool QNetworkProxy::operator==(const QNetworkProxy &other) const @@ -511,7 +511,7 @@ bool QNetworkProxy::operator==(const QNetworkProxy &other) const \fn bool QNetworkProxy::operator!=(const QNetworkProxy &other) const \since 4.4 - Compares the value of this network proxy to \a other and returns true + Compares the value of this network proxy to \a other and returns \c true if they differ. \*/ @@ -588,7 +588,7 @@ QNetworkProxy::Capabilities QNetworkProxy::capabilities() const /*! \since 4.4 - Returns true if this proxy supports the + Returns \c true if this proxy supports the QNetworkProxy::CachingCapability capability. In Qt 4.4, the capability was tied to the proxy type, but since Qt @@ -605,7 +605,7 @@ bool QNetworkProxy::isCachingProxy() const /*! \since 4.4 - Returns true if this proxy supports transparent tunneling of TCP + Returns \c true if this proxy supports transparent tunneling of TCP connections. This matches the QNetworkProxy::TunnelingCapability capability. @@ -775,8 +775,8 @@ void QNetworkProxy::setHeader(QNetworkRequest::KnownHeaders header, const QVaria /*! \since 5.0 - Returns true if the raw header \a headerName is in use for this - proxy. Returns false if the proxy is not of type HttpProxy or + Returns \c true if the raw header \a headerName is in use for this + proxy. Returns \c false if the proxy is not of type HttpProxy or HttpCachingProxy. \sa rawHeader(), setRawHeader() @@ -1165,7 +1165,7 @@ QNetworkProxyQuery &QNetworkProxyQuery::operator=(const QNetworkProxyQuery &othe */ /*! - Returns true if this QNetworkProxyQuery object contains the same + Returns \c true if this QNetworkProxyQuery object contains the same data as \a other. */ bool QNetworkProxyQuery::operator==(const QNetworkProxyQuery &other) const @@ -1176,7 +1176,7 @@ bool QNetworkProxyQuery::operator==(const QNetworkProxyQuery &other) const /*! \fn bool QNetworkProxyQuery::operator!=(const QNetworkProxyQuery &other) const - Returns true if this QNetworkProxyQuery object does not contain + Returns \c true if this QNetworkProxyQuery object does not contain the same data as \a other. */ diff --git a/src/network/kernel/qurlinfo.cpp b/src/network/kernel/qurlinfo.cpp index 89d48639cf..a4200789cd 100644 --- a/src/network/kernel/qurlinfo.cpp +++ b/src/network/kernel/qurlinfo.cpp @@ -545,7 +545,7 @@ QDateTime QUrlInfo::lastRead() const } /*! - Returns true if the URL is a directory; otherwise returns false. + Returns \c true if the URL is a directory; otherwise returns \c false. \sa isValid() */ @@ -558,7 +558,7 @@ bool QUrlInfo::isDir() const } /*! - Returns true if the URL is a file; otherwise returns false. + Returns \c true if the URL is a file; otherwise returns \c false. \sa isValid() */ @@ -571,7 +571,7 @@ bool QUrlInfo::isFile() const } /*! - Returns true if the URL is a symbolic link; otherwise returns false. + Returns \c true if the URL is a symbolic link; otherwise returns \c false. \sa isValid() */ @@ -584,7 +584,7 @@ bool QUrlInfo::isSymLink() const } /*! - Returns true if the URL is writable; otherwise returns false. + Returns \c true if the URL is writable; otherwise returns \c false. \sa isValid() */ @@ -597,7 +597,7 @@ bool QUrlInfo::isWritable() const } /*! - Returns true if the URL is readable; otherwise returns false. + Returns \c true if the URL is readable; otherwise returns \c false. \sa isValid() */ @@ -610,7 +610,7 @@ bool QUrlInfo::isReadable() const } /*! - Returns true if the URL is executable; otherwise returns false. + Returns \c true if the URL is executable; otherwise returns \c false. \sa isValid() */ @@ -623,7 +623,7 @@ bool QUrlInfo::isExecutable() const } /*! - Returns true if \a i1 is greater than \a i2; otherwise returns + Returns \c true if \a i1 is greater than \a i2; otherwise returns false. The objects are compared by the value, which is specified by \a sortBy. This must be one of QDir::Name, QDir::Time or QDir::Size. @@ -645,7 +645,7 @@ bool QUrlInfo::greaterThan(const QUrlInfo &i1, const QUrlInfo &i2, } /*! - Returns true if \a i1 is less than \a i2; otherwise returns false. + Returns \c true if \a i1 is less than \a i2; otherwise returns \c false. The objects are compared by the value, which is specified by \a sortBy. This must be one of QDir::Name, QDir::Time or QDir::Size. */ @@ -657,7 +657,7 @@ bool QUrlInfo::lessThan(const QUrlInfo &i1, const QUrlInfo &i2, } /*! - Returns true if \a i1 equals to \a i2; otherwise returns false. + Returns \c true if \a i1 equals to \a i2; otherwise returns \c false. The objects are compared by the value, which is specified by \a sortBy. This must be one of QDir::Name, QDir::Time or QDir::Size. */ @@ -678,8 +678,8 @@ bool QUrlInfo::equal(const QUrlInfo &i1, const QUrlInfo &i2, } /*! - Returns true if this QUrlInfo is equal to \a other; otherwise - returns false. + Returns \c true if this QUrlInfo is equal to \a other; otherwise + returns \c false. \sa lessThan(), equal() */ @@ -710,14 +710,14 @@ bool QUrlInfo::operator==(const QUrlInfo &other) const \fn bool QUrlInfo::operator!=(const QUrlInfo &other) const \since 4.2 - Returns true if this QUrlInfo is not equal to \a other; otherwise - returns false. + Returns \c true if this QUrlInfo is not equal to \a other; otherwise + returns \c false. \sa lessThan(), equal() */ /*! - Returns true if the URL info is valid; otherwise returns false. + Returns \c true if the URL info is valid; otherwise returns \c false. Valid means that the QUrlInfo contains real information. You should always check if the URL info is valid before relying on diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp index 084e0bc656..47fec38283 100644 --- a/src/network/socket/qabstractsocket.cpp +++ b/src/network/socket/qabstractsocket.cpp @@ -87,7 +87,7 @@ connection has been established, it enters ConnectedState and emits connected(). If an error occurs at any stage, error() is emitted. Whenever the state changes, stateChanged() is emitted. - For convenience, isValid() returns true if the socket is ready for + For convenience, isValid() returns \c true if the socket is ready for reading and writing, but note that the socket's state must be ConnectedState before reading and writing can occur. @@ -143,7 +143,7 @@ \snippet network/tcpwait.cpp 0 - If \l{QIODevice::}{waitForReadyRead()} returns false, the + If \l{QIODevice::}{waitForReadyRead()} returns \c false, the connection has been closed or an error has occurred. Programming with a blocking socket is radically different from @@ -1464,8 +1464,8 @@ void QAbstractSocket::setPauseMode(PauseModes pauseMode) By default, the socket is bound using the DefaultForPlatform BindMode. If a port is not specified, a random port is chosen. - On success, the functions returns true and the socket enters - BoundState; otherwise it returns false. + On success, the functions returns \c true and the socket enters + BoundState; otherwise it returns \c false. */ bool QAbstractSocket::bind(const QHostAddress &address, quint16 port, BindMode mode) @@ -1537,8 +1537,8 @@ bool QAbstractSocket::bind(quint16 port, BindMode mode) } /*! - Returns true if the socket is valid and ready for use; otherwise - returns false. + Returns \c true if the socket is valid and ready for use; otherwise + returns \c false. \b{Note:} The socket's state must be ConnectedState before reading and writing can occur. @@ -1782,8 +1782,8 @@ QString QAbstractSocket::peerName() const } /*! - Returns true if a line of data can be read from the socket; - otherwise returns false. + Returns \c true if a line of data can be read from the socket; + otherwise returns \c false. \sa readLine() */ @@ -1817,8 +1817,8 @@ qintptr QAbstractSocket::socketDescriptor() const /*! Initializes QAbstractSocket with the native socket descriptor \a - socketDescriptor. Returns true if \a socketDescriptor is accepted - as a valid socket descriptor; otherwise returns false. + socketDescriptor. Returns \c true if \a socketDescriptor is accepted + as a valid socket descriptor; otherwise returns \c false. The socket is opened in the mode specified by \a openMode, and enters the socket state specified by \a socketState. @@ -1960,8 +1960,8 @@ static int qt_timeout_value(int msecs, int elapsed) /*! Waits until the socket is connected, up to \a msecs milliseconds. If the connection has been established, this - function returns true; otherwise it returns false. In the case - where it returns false, you can call error() to determine + function returns \c true; otherwise it returns \c false. In the case + where it returns \c false, you can call error() to determine the cause of the error. The following example waits up to one second for a connection @@ -2072,8 +2072,8 @@ bool QAbstractSocket::waitForConnected(int msecs) will timeout after \a msecs milliseconds; the default timeout is 30000 milliseconds. - The function returns true if the readyRead() signal is emitted and - there is new data available for reading; otherwise it returns false + The function returns \c true if the readyRead() signal is emitted and + there is new data available for reading; otherwise it returns \c false (if an error occurred or the operation timed out). \sa waitForBytesWritten() @@ -2190,7 +2190,7 @@ bool QAbstractSocket::waitForBytesWritten(int msecs) if (readyToWrite) { if (d->canWriteNotification()) { #if defined (QABSTRACTSOCKET_DEBUG) - qDebug("QAbstractSocket::waitForBytesWritten returns true"); + qDebug("QAbstractSocket::waitForBytesWritten returns \c true"); #endif return true; } @@ -2205,8 +2205,8 @@ bool QAbstractSocket::waitForBytesWritten(int msecs) /*! Waits until the socket has disconnected, up to \a msecs milliseconds. If the connection has been disconnected, this - function returns true; otherwise it returns false. In the case - where it returns false, you can call error() to determine + function returns \c true; otherwise it returns \c false. In the case + where it returns \c false, you can call error() to determine the cause of the error. The following example waits up to one second for a connection @@ -2309,8 +2309,8 @@ bool QAbstractSocket::isSequential() const /*! \reimp - Returns true if no more data is currently - available for reading; otherwise returns false. + Returns \c true if no more data is currently + available for reading; otherwise returns \c false. This function is most commonly used when reading data from the socket in a loop. For example: @@ -2327,7 +2327,7 @@ bool QAbstractSocket::atEnd() const /*! This function writes as much as possible from the internal write buffer to the underlying network socket, without blocking. If any data was written, - this function returns true; otherwise false is returned. + this function returns \c true; otherwise false is returned. Call this function if you need QAbstractSocket to start sending buffered data immediately. The number of bytes successfully written depends on the diff --git a/src/network/socket/qlocalserver.cpp b/src/network/socket/qlocalserver.cpp index 95782cc1c3..f7f8aab182 100644 --- a/src/network/socket/qlocalserver.cpp +++ b/src/network/socket/qlocalserver.cpp @@ -218,8 +218,8 @@ QString QLocalServer::errorString() const } /*! - Returns true if the server has a pending connection; otherwise - returns false. + Returns \c true if the server has a pending connection; otherwise + returns \c false. \sa nextPendingConnection(), setMaxPendingConnections() */ @@ -254,7 +254,7 @@ void QLocalServer::incomingConnection(quintptr socketDescriptor) } /*! - Returns true if the server is listening for incoming connections + Returns \c true if the server is listening for incoming connections otherwise false. \sa listen(), close() @@ -399,7 +399,7 @@ QLocalSocket *QLocalServer::nextPendingConnection() \since 4.5 Removes any server instance that might cause a call to listen() to fail - and returns true if successful; otherwise returns false. + and returns \c true if successful; otherwise returns \c false. This function is meant to recover from a crash, when the previous server instance has not been cleaned up. @@ -470,8 +470,8 @@ void QLocalServer::setMaxPendingConnections(int numConnections) /*! Waits for at most \a msec milliseconds or until an incoming connection - is available. Returns true if a connection is available; otherwise - returns false. If the operation timed out and \a timedOut is not 0, + is available. Returns \c true if a connection is available; otherwise + returns \c false. If the operation timed out and \a timedOut is not 0, *timedOut will be set to true. This is a blocking function call. Its use is ill-advised in a diff --git a/src/network/socket/qlocalsocket.cpp b/src/network/socket/qlocalsocket.cpp index f516b932e7..d4251672db 100644 --- a/src/network/socket/qlocalsocket.cpp +++ b/src/network/socket/qlocalsocket.cpp @@ -114,8 +114,8 @@ QT_BEGIN_NAMESPACE LocalSocketState socketState, OpenMode openMode) Initializes QLocalSocket with the native socket descriptor - \a socketDescriptor. Returns true if socketDescriptor is accepted - as a valid socket descriptor; otherwise returns false. The socket is + \a socketDescriptor. Returns \c true if socketDescriptor is accepted + as a valid socket descriptor; otherwise returns \c false. The socket is opened in the mode specified by \a openMode, and enters the socket state specified by \a socketState. @@ -187,7 +187,7 @@ QT_BEGIN_NAMESPACE This function writes as much as possible from the internal write buffer to the socket, without blocking. If any data was written, this function - returns true; otherwise false is returned. + returns \c true; otherwise false is returned. Call this function if you need QLocalSocket to start sending buffered data immediately. The number of bytes successfully written depends on the @@ -221,8 +221,8 @@ QT_BEGIN_NAMESPACE /*! \fn bool QLocalSocket::isValid() const - Returns true if the socket is valid and ready for use; otherwise - returns false. + Returns \c true if the socket is valid and ready for use; otherwise + returns \c false. \note The socket's state must be ConnectedState before reading and writing can occur. @@ -263,8 +263,8 @@ QT_BEGIN_NAMESPACE \fn bool QLocalSocket::waitForConnected(int msecs) Waits until the socket is connected, up to \a msecs milliseconds. If the - connection has been established, this function returns true; otherwise - it returns false. In the case where it returns false, you can call + connection has been established, this function returns \c true; otherwise + it returns \c false. In the case where it returns \c false, you can call error() to determine the cause of the error. The following example waits up to one second for a connection @@ -282,8 +282,8 @@ QT_BEGIN_NAMESPACE Waits until the socket has disconnected, up to \a msecs milliseconds. If the connection has been disconnected, this - function returns true; otherwise it returns false. In the case - where it returns false, you can call error() to determine + function returns \c true; otherwise it returns \c false. In the case + where it returns \c false, you can call error() to determine the cause of the error. The following example waits up to one second for a connection @@ -304,8 +304,8 @@ QT_BEGIN_NAMESPACE will timeout after \a msecs milliseconds; the default timeout is 30000 milliseconds. - The function returns true if data is available for reading; - otherwise it returns false (if an error occurred or the + The function returns \c true if data is available for reading; + otherwise it returns \c false (if an error occurred or the operation timed out). \sa waitForBytesWritten() diff --git a/src/network/socket/qnativesocketengine.cpp b/src/network/socket/qnativesocketengine.cpp index 536bc63ed0..6bf8626f97 100644 --- a/src/network/socket/qnativesocketengine.cpp +++ b/src/network/socket/qnativesocketengine.cpp @@ -335,8 +335,8 @@ QNativeSocketEngine::~QNativeSocketEngine() /*! Initializes a QNativeSocketEngine by creating a new socket of type \a - socketType and network layer protocol \a protocol. Returns true on - success; otherwise returns false. + socketType and network layer protocol \a protocol. Returns \c true on + success; otherwise returns \c false. If the socket was already initialized, this function closes the socket before reeinitializing it. @@ -461,7 +461,7 @@ bool QNativeSocketEngine::initialize(qintptr socketDescriptor, QAbstractSocket:: } /*! - Returns true if the socket is valid; otherwise returns false. A + Returns \c true if the socket is valid; otherwise returns \c false. A socket is valid if it has not been successfully initialized, or if it has been closed. */ @@ -483,7 +483,7 @@ qintptr QNativeSocketEngine::socketDescriptor() const /*! Connects to the IP address and port specified by \a address and \a - port. If the connection is established, this function returns true + port. If the connection is established, this function returns \c true and the socket enters ConnectedState. Otherwise, false is returned. @@ -559,7 +559,7 @@ bool QNativeSocketEngine::connectToHostByName(const QString &name, quint16 port) /*! Binds the socket to the address \a address and port \a - port. Returns true on success; otherwise false is returned. The + port. Returns \c true on success; otherwise false is returned. The port may be 0, in which case an arbitrary unused port is assigned automatically by the operating system. @@ -708,7 +708,7 @@ qint64 QNativeSocketEngine::bytesAvailable() const } /*! - Returns true if there is at least one datagram pending. This + Returns \c true if there is at least one datagram pending. This function is only called by UDP sockets, where a datagram can have a size of 0. TCP sockets call bytesAvailable(). */ @@ -880,7 +880,7 @@ void QNativeSocketEngine::close() reading. If \a timedOut is not 0 and \a msecs milliseconds have passed, the value of \a timedOut is set to true. - Returns true if data is available for reading; otherwise returns + Returns \c true if data is available for reading; otherwise returns false. This is a blocking function call; its use is disadvised in a @@ -920,7 +920,7 @@ bool QNativeSocketEngine::waitForRead(int msecs, bool *timedOut) writing. If \a timedOut is not 0 and \a msecs milliseconds have passed, the value of \a timedOut is set to true. - Returns true if data is available for writing; otherwise returns + Returns \c true if data is available for writing; otherwise returns false. This is a blocking function call; its use is disadvised in a diff --git a/src/network/socket/qtcpserver.cpp b/src/network/socket/qtcpserver.cpp index 896980f849..31215ee307 100644 --- a/src/network/socket/qtcpserver.cpp +++ b/src/network/socket/qtcpserver.cpp @@ -271,7 +271,7 @@ QTcpServer::~QTcpServer() automatically. If \a address is QHostAddress::Any, the server will listen on all network interfaces. - Returns true on success; otherwise returns false. + Returns \c true on success; otherwise returns \c false. \sa isListening() */ @@ -351,8 +351,8 @@ bool QTcpServer::listen(const QHostAddress &address, quint16 port) } /*! - Returns true if the server is currently listening for incoming - connections; otherwise returns false. + Returns \c true if the server is currently listening for incoming + connections; otherwise returns \c false. \sa listen() */ @@ -408,8 +408,8 @@ qintptr QTcpServer::socketDescriptor() const /*! Sets the socket descriptor this server should use when listening - for incoming connections to \a socketDescriptor. Returns true if - the socket is set successfully; otherwise returns false. + for incoming connections to \a socketDescriptor. Returns \c true if + the socket is set successfully; otherwise returns \c false. The socket is assumed to be in listening state. @@ -486,8 +486,8 @@ QHostAddress QTcpServer::serverAddress() const /*! Waits for at most \a msec milliseconds or until an incoming - connection is available. Returns true if a connection is - available; otherwise returns false. If the operation timed out + connection is available. Returns \c true if a connection is + available; otherwise returns \c false. If the operation timed out and \a timedOut is not 0, *\a timedOut will be set to true. This is a blocking function call. Its use is disadvised in a @@ -524,8 +524,8 @@ bool QTcpServer::waitForNewConnection(int msec, bool *timedOut) } /*! - Returns true if the server has a pending connection; otherwise - returns false. + Returns \c true if the server has a pending connection; otherwise + returns \c false. \sa nextPendingConnection(), setMaxPendingConnections() */ diff --git a/src/network/socket/qudpsocket.cpp b/src/network/socket/qudpsocket.cpp index a01fdd4646..de2fc22018 100644 --- a/src/network/socket/qudpsocket.cpp +++ b/src/network/socket/qudpsocket.cpp @@ -66,7 +66,7 @@ you don't need to call bind(). The readyRead() signal is emitted whenever datagrams arrive. In - that case, hasPendingDatagrams() returns true. Call + that case, hasPendingDatagrams() returns \c true. Call pendingDatagramSize() to obtain the size of the first pending datagram, and readDatagram() to read it. @@ -182,7 +182,7 @@ QUdpSocket::~QUdpSocket() be bound using IPv6 (or in dual mode, using QHostAddress::Any). You must use QHostAddress::AnyIPv4 instead. - This function returns true if successful; otherwise it returns false + This function returns \c true if successful; otherwise it returns \c false and sets the socket error accordingly. \sa leaveMulticastGroup() @@ -216,7 +216,7 @@ bool QUdpSocket::joinMulticastGroup(const QHostAddress &groupAddress, interface chosen by the operating system. The socket must be in BoundState, otherwise an error occurs. - This function returns true if successful; otherwise it returns false and + This function returns \c true if successful; otherwise it returns \c false and sets the socket error accordingly. \sa joinMulticastGroup() @@ -284,8 +284,8 @@ void QUdpSocket::setMulticastInterface(const QNetworkInterface &iface) #endif // QT_NO_NETWORKINTERFACE /*! - Returns true if at least one datagram is waiting to be read; - otherwise returns false. + Returns \c true if at least one datagram is waiting to be read; + otherwise returns \c false. \sa pendingDatagramSize(), readDatagram() */ diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp index 8b5be7ae00..286a6fd668 100644 --- a/src/network/ssl/qsslcertificate.cpp +++ b/src/network/ssl/qsslcertificate.cpp @@ -200,8 +200,8 @@ QSslCertificate &QSslCertificate::operator=(const QSslCertificate &other) */ /*! - Returns true if this certificate is the same as \a other; otherwise - returns false. + Returns \c true if this certificate is the same as \a other; otherwise + returns \c false. */ bool QSslCertificate::operator==(const QSslCertificate &other) const { @@ -217,13 +217,13 @@ bool QSslCertificate::operator==(const QSslCertificate &other) const /*! \fn bool QSslCertificate::operator!=(const QSslCertificate &other) const - Returns true if this certificate is not the same as \a other; otherwise - returns false. + Returns \c true if this certificate is not the same as \a other; otherwise + returns \c false. */ /*! - Returns true if this is a null certificate (i.e., a certificate - with no contents); otherwise returns false. + Returns \c true if this is a null certificate (i.e., a certificate + with no contents); otherwise returns \c false. By default, QSslCertificate constructs a null certificate. @@ -254,8 +254,8 @@ bool QSslCertificate::isNull() const #endif /*! - Returns true if this certificate is blacklisted; otherwise - returns false. + Returns \c true if this certificate is blacklisted; otherwise + returns \c false. \sa isNull() */ diff --git a/src/network/ssl/qsslcertificateextension.cpp b/src/network/ssl/qsslcertificateextension.cpp index 0bca558c87..c059d12221 100644 --- a/src/network/ssl/qsslcertificateextension.cpp +++ b/src/network/ssl/qsslcertificateextension.cpp @@ -83,7 +83,7 @@ Whilst this class provides access to any type of extension, only some are guaranteed to be returned in a format that will remain - unchanged between releases. The isSupported() method returns true + unchanged between releases. The isSupported() method returns \c true for extensions where this is the case. The extensions currently supported, and the structure of the value diff --git a/src/network/ssl/qsslcipher.cpp b/src/network/ssl/qsslcipher.cpp index b045d2eba9..cdb0ed9063 100644 --- a/src/network/ssl/qsslcipher.cpp +++ b/src/network/ssl/qsslcipher.cpp @@ -133,7 +133,7 @@ QSslCipher &QSslCipher::operator=(const QSslCipher &other) */ /*! - Returns true if this cipher is the same as \a other; otherwise, + Returns \c true if this cipher is the same as \a other; otherwise, false is returned. */ bool QSslCipher::operator==(const QSslCipher &other) const @@ -144,12 +144,12 @@ bool QSslCipher::operator==(const QSslCipher &other) const /*! \fn bool QSslCipher::operator!=(const QSslCipher &other) const - Returns true if this cipher is not the same as \a other; + Returns \c true if this cipher is not the same as \a other; otherwise, false is returned. */ /*! - Returns true if this is a null cipher; otherwise returns false. + Returns \c true if this is a null cipher; otherwise returns \c false. */ bool QSslCipher::isNull() const { diff --git a/src/network/ssl/qsslconfiguration.cpp b/src/network/ssl/qsslconfiguration.cpp index 6cc06dfbd2..8979c48d5d 100644 --- a/src/network/ssl/qsslconfiguration.cpp +++ b/src/network/ssl/qsslconfiguration.cpp @@ -160,7 +160,7 @@ QSslConfiguration &QSslConfiguration::operator=(const QSslConfiguration &other) */ /*! - Returns true if this QSslConfiguration object is equal to \a + Returns \c true if this QSslConfiguration object is equal to \a other. Two QSslConfiguration objects are considered equal if they have @@ -191,7 +191,7 @@ bool QSslConfiguration::operator==(const QSslConfiguration &other) const /*! \fn QSslConfiguration::operator!=(const QSslConfiguration &other) const - Returns true if this QSslConfiguration differs from \a other. Two + Returns \c true if this QSslConfiguration differs from \a other. Two QSslConfiguration objects are considered different if any state or setting is different. @@ -199,7 +199,7 @@ bool QSslConfiguration::operator==(const QSslConfiguration &other) const */ /*! - Returns true if this is a null QSslConfiguration object. + Returns \c true if this is a null QSslConfiguration object. A QSslConfiguration object is null if it has been default-constructed and no setter methods have been called. @@ -589,7 +589,7 @@ void QSslConfiguration::setSslOption(QSsl::SslOption option, bool on) /*! \since 4.8 - Returns true if the specified SSL compatibility \a option is enabled. + Returns \c true if the specified SSL compatibility \a option is enabled. \sa setSslOption() */ diff --git a/src/network/ssl/qsslerror.cpp b/src/network/ssl/qsslerror.cpp index bf75d2e610..07ce66bcbc 100644 --- a/src/network/ssl/qsslerror.cpp +++ b/src/network/ssl/qsslerror.cpp @@ -184,7 +184,7 @@ QSslError &QSslError::operator=(const QSslError &other) /*! \since 4.4 - Returns true if this error is equal to \a other; otherwise returns false. + Returns \c true if this error is equal to \a other; otherwise returns \c false. */ bool QSslError::operator==(const QSslError &other) const { @@ -196,7 +196,7 @@ bool QSslError::operator==(const QSslError &other) const \fn bool QSslError::operator!=(const QSslError &other) const \since 4.4 - Returns true if this error is not equal to \a other; otherwise returns + Returns \c true if this error is not equal to \a other; otherwise returns false. */ diff --git a/src/network/ssl/qsslkey.cpp b/src/network/ssl/qsslkey.cpp index f86466d8ed..cf62f44855 100644 --- a/src/network/ssl/qsslkey.cpp +++ b/src/network/ssl/qsslkey.cpp @@ -322,7 +322,7 @@ QSslKey &QSslKey::operator=(const QSslKey &other) */ /*! - Returns true if this is a null key; otherwise false. + Returns \c true if this is a null key; otherwise false. \sa clear() */ @@ -463,7 +463,7 @@ Qt::HANDLE QSslKey::handle() const } /*! - Returns true if this key is equal to \a other; otherwise returns false. + Returns \c true if this key is equal to \a other; otherwise returns \c false. */ bool QSslKey::operator==(const QSslKey &other) const { @@ -484,8 +484,8 @@ bool QSslKey::operator==(const QSslKey &other) const /*! \fn bool QSslKey::operator!=(const QSslKey &other) const - Returns true if this key is not equal to key \a other; otherwise - returns false. + Returns \c true if this key is not equal to key \a other; otherwise + returns \c false. */ #ifndef QT_NO_DEBUG_STREAM diff --git a/src/network/ssl/qsslsocket.cpp b/src/network/ssl/qsslsocket.cpp index 14063812c4..24843e9f92 100644 --- a/src/network/ssl/qsslsocket.cpp +++ b/src/network/ssl/qsslsocket.cpp @@ -464,8 +464,8 @@ void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, /*! Initializes QSslSocket with the native socket descriptor \a - socketDescriptor. Returns true if \a socketDescriptor is accepted - as a valid socket descriptor; otherwise returns false. + socketDescriptor. Returns \c true if \a socketDescriptor is accepted + as a valid socket descriptor; otherwise returns \c false. The socket is opened in the mode specified by \a openMode, and enters the socket state specified by \a state. @@ -541,7 +541,7 @@ QSslSocket::SslMode QSslSocket::mode() const } /*! - Returns true if the socket is encrypted; otherwise, false is returned. + Returns \c true if the socket is encrypted; otherwise, false is returned. An encrypted socket encrypts all data that is written by calling write() or putChar() before the data is written to the network, and decrypts all @@ -756,7 +756,7 @@ qint64 QSslSocket::encryptedBytesToWrite() const /*! \reimp - Returns true if you can read one while line (terminated by a single ASCII + Returns \c true if you can read one while line (terminated by a single ASCII '\\n' character) of decrypted characters; otherwise, false is returned. */ bool QSslSocket::canReadLine() const @@ -799,7 +799,7 @@ bool QSslSocket::atEnd() const /*! This function writes as much as possible from the internal write buffer to the underlying network socket, without blocking. If any data was written, - this function returns true; otherwise false is returned. + this function returns \c true; otherwise false is returned. Call this function if you need QSslSocket to start sending buffered data immediately. The number of bytes successfully written depends on the @@ -1255,9 +1255,9 @@ QList QSslSocket::supportedCiphers() Searches all files in the \a path for certificates encoded in the specified \a format and adds them to this socket's CA certificate database. \a path can be explicit, or it can contain wildcards in - the format specified by \a syntax. Returns true if one or more + the format specified by \a syntax. Returns \c true if one or more certificates are added to the socket's CA certificate database; - otherwise returns false. + otherwise returns \c false. The CA certificate database is used by the socket during the handshake phase to validate the peer's certificate. @@ -1349,7 +1349,7 @@ QList QSslSocket::caCertificates() const Searches all files in the \a path for certificates with the specified \a encoding and adds them to the default CA certificate database. \a path can be an explicit file, or it can contain - wildcards in the format specified by \a syntax. Returns true if + wildcards in the format specified by \a syntax. Returns \c true if any CA certificates are added to the default database. Each SSL socket's CA certificate database is initialized to the @@ -1442,7 +1442,7 @@ QList QSslSocket::systemCaCertificates() /*! Waits until the socket is connected, or \a msecs milliseconds, whichever happens first. If the connection has been established, - this function returns true; otherwise it returns false. + this function returns \c true; otherwise it returns \c false. \sa QAbstractSocket::waitForConnected() */ @@ -1580,7 +1580,7 @@ bool QSslSocket::waitForBytesWritten(int msecs) /*! Waits until the socket has disconnected or \a msecs milliseconds, whichever comes first. If the connection has been disconnected, - this function returns true; otherwise it returns false. + this function returns \c true; otherwise it returns \c false. \sa QAbstractSocket::waitForDisconnected() */ @@ -1631,7 +1631,7 @@ QList QSslSocket::sslErrors() const } /*! - Returns true if this platform supports SSL; otherwise, returns + Returns \c true if this platform supports SSL; otherwise, returns false. If the platform doesn't support SSL, the socket will fail in the connection phase. */ diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp index cdb60f8900..a89d37bc5d 100644 --- a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp +++ b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp @@ -654,7 +654,7 @@ QGLShaderProgram* QGLEngineShaderManager::blitProgram() // Select & use the correct shader program using the current state. -// Returns true if program needed changing. +// Returns \c true if program needed changing. bool QGLEngineShaderManager::useCorrectShaderProg() { if (!shaderProgNeedsChanging) diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index f1ce2cfae3..c96200fe1b 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -422,7 +422,7 @@ QGLFormat::~QGLFormat() /*! \fn bool QGLFormat::doubleBuffer() const - Returns true if double buffering is enabled; otherwise returns + Returns \c true if double buffering is enabled; otherwise returns false. Double buffering is enabled by default. \sa setDoubleBuffer() @@ -456,7 +456,7 @@ void QGLFormat::setDoubleBuffer(bool enable) /*! \fn bool QGLFormat::depth() const - Returns true if the depth buffer is enabled; otherwise returns + Returns \c true if the depth buffer is enabled; otherwise returns false. The depth buffer is enabled by default. \sa setDepth(), setDepthBufferSize() @@ -486,7 +486,7 @@ void QGLFormat::setDepth(bool enable) /*! \fn bool QGLFormat::rgba() const - Returns true if RGBA color mode is set. Returns false if color + Returns \c true if RGBA color mode is set. Returns \c false if color index mode is set. The default color mode is RGBA. \sa setRgba() @@ -517,8 +517,8 @@ void QGLFormat::setRgba(bool enable) /*! \fn bool QGLFormat::alpha() const - Returns true if the alpha buffer in the framebuffer is enabled; - otherwise returns false. The alpha buffer is disabled by default. + Returns \c true if the alpha buffer in the framebuffer is enabled; + otherwise returns \c false. The alpha buffer is disabled by default. \sa setAlpha(), setAlphaBufferSize() */ @@ -545,8 +545,8 @@ void QGLFormat::setAlpha(bool enable) /*! \fn bool QGLFormat::accum() const - Returns true if the accumulation buffer is enabled; otherwise - returns false. The accumulation buffer is disabled by default. + Returns \c true if the accumulation buffer is enabled; otherwise + returns \c false. The accumulation buffer is disabled by default. \sa setAccum(), setAccumBufferSize() */ @@ -572,7 +572,7 @@ void QGLFormat::setAccum(bool enable) /*! \fn bool QGLFormat::stencil() const - Returns true if the stencil buffer is enabled; otherwise returns + Returns \c true if the stencil buffer is enabled; otherwise returns false. The stencil buffer is enabled by default. \sa setStencil(), setStencilBufferSize() @@ -599,7 +599,7 @@ void QGLFormat::setStencil(bool enable) /*! \fn bool QGLFormat::stereo() const - Returns true if stereo buffering is enabled; otherwise returns + Returns \c true if stereo buffering is enabled; otherwise returns false. Stereo buffering is disabled by default. \sa setStereo() @@ -626,7 +626,7 @@ void QGLFormat::setStereo(bool enable) /*! \fn bool QGLFormat::directRendering() const - Returns true if direct rendering is enabled; otherwise returns + Returns \c true if direct rendering is enabled; otherwise returns false. Direct rendering is enabled by default. @@ -655,8 +655,8 @@ void QGLFormat::setDirectRendering(bool enable) /*! \fn bool QGLFormat::sampleBuffers() const - Returns true if multisample buffer support is enabled; otherwise - returns false. + Returns \c true if multisample buffer support is enabled; otherwise + returns \c false. The multisample buffer is disabled by default. @@ -742,7 +742,7 @@ int QGLFormat::swapInterval() const /*! \fn bool QGLFormat::hasOverlay() const - Returns true if overlay plane is enabled; otherwise returns false. + Returns \c true if overlay plane is enabled; otherwise returns \c false. Overlay is disabled by default. @@ -814,7 +814,7 @@ void QGLFormat::setOption(QGL::FormatOptions opt) /*! - Returns true if format option \a opt is set; otherwise returns false. + Returns \c true if format option \a opt is set; otherwise returns \c false. \sa setOption() */ @@ -1107,8 +1107,8 @@ QGLFormat::OpenGLContextProfile QGLFormat::profile() const /*! \fn bool QGLFormat::hasOpenGL() - Returns true if the window system has any OpenGL support; - otherwise returns false. + Returns \c true if the window system has any OpenGL support; + otherwise returns \c false. \warning This function must not be called until the QApplication object has been created. @@ -1119,8 +1119,8 @@ QGLFormat::OpenGLContextProfile QGLFormat::profile() const /*! \fn bool QGLFormat::hasOpenGLOverlays() - Returns true if the window system supports OpenGL overlays; - otherwise returns false. + Returns \c true if the window system supports OpenGL overlays; + otherwise returns \c false. \warning This function must not be called until the QApplication object has been created. @@ -1459,8 +1459,8 @@ void QGLFormat::setDefaultOverlayFormat(const QGLFormat &f) /*! - Returns true if all the options of the two QGLFormat objects - \a a and \a b are equal; otherwise returns false. + Returns \c true if all the options of the two QGLFormat objects + \a a and \a b are equal; otherwise returns \c false. \relates QGLFormat */ @@ -1511,8 +1511,8 @@ QDebug operator<<(QDebug dbg, const QGLFormat &f) /*! - Returns false if all the options of the two QGLFormat objects - \a a and \a b are equal; otherwise returns true. + Returns \c false if all the options of the two QGLFormat objects + \a a and \a b are equal; otherwise returns \c true. \relates QGLFormat */ @@ -2903,8 +2903,8 @@ void QGLContext::setDevice(QPaintDevice *pDev) /*! \fn bool QGLContext::isValid() const - Returns true if a GL rendering context has been successfully - created; otherwise returns false. + Returns \c true if a GL rendering context has been successfully + created; otherwise returns \c false. */ /*! @@ -2917,16 +2917,16 @@ void QGLContext::setDevice(QPaintDevice *pDev) /*! \fn bool QGLContext::isSharing() const - Returns true if this context is sharing its GL context with + Returns \c true if this context is sharing its GL context with another QGLContext, otherwise false is returned. Note that context sharing might not be supported between contexts with different formats. */ /*! - Returns true if \a context1 and \a context2 are sharing their + Returns \c true if \a context1 and \a context2 are sharing their GL resources such as textures, shader programs, etc; - otherwise returns false. + otherwise returns \c false. \since 4.6 */ @@ -2940,15 +2940,15 @@ bool QGLContext::areSharing(const QGLContext *context1, const QGLContext *contex /*! \fn bool QGLContext::deviceIsPixmap() const - Returns true if the paint device of this context is a pixmap; - otherwise returns false. + Returns \c true if the paint device of this context is a pixmap; + otherwise returns \c false. */ /*! \fn bool QGLContext::windowCreated() const - Returns true if a window has been created for this context; - otherwise returns false. + Returns \c true if a window has been created for this context; + otherwise returns \c false. \sa setWindowCreated() */ @@ -2975,9 +2975,9 @@ bool QGLContext::areSharing(const QGLContext *context1, const QGLContext *contex /*! \fn bool QGLContext::initialized() const - Returns true if this context has been initialized, i.e. if + Returns \c true if this context has been initialized, i.e. if QGLWidget::initializeGL() has been performed on it; otherwise - returns false. + returns \c false. \sa setInitialized() */ @@ -3021,9 +3021,9 @@ bool QGLContext::areSharing(const QGLContext *context1, const QGLContext *contex /*! - Creates the GL context. Returns true if it was successful in + Creates the GL context. Returns \c true if it was successful in creating a valid GL rendering context on the paint device - specified in the constructor; otherwise returns false (i.e. the + specified in the constructor; otherwise returns \c false (i.e. the context is invalid). If the OpenGL implementation on your system does not support the requested @@ -3627,8 +3627,8 @@ QGLWidget::~QGLWidget() /*! \fn bool QGLWidget::doubleBuffer() const - Returns true if the contained GL rendering context has double - buffering; otherwise returns false. + Returns \c true if the contained GL rendering context has double + buffering; otherwise returns \c false. \sa QGLFormat::doubleBuffer() */ @@ -3651,8 +3651,8 @@ QGLWidget::~QGLWidget() /*! \fn bool QGLWidget::autoBufferSwap() const - Returns true if the widget is doing automatic GL buffer swapping; - otherwise returns false. + Returns \c true if the widget is doing automatic GL buffer swapping; + otherwise returns \c false. \sa setAutoBufferSwap() */ @@ -3668,8 +3668,8 @@ QGLWidget::~QGLWidget() /*! \fn bool QGLWidget::isValid() const - Returns true if the widget has a valid GL rendering context; - otherwise returns false. A widget will be invalid if the system + Returns \c true if the widget has a valid GL rendering context; + otherwise returns \c false. A widget will be invalid if the system has no \l{QGLFormat::hasOpenGL()}{OpenGL support}. */ @@ -3682,7 +3682,7 @@ bool QGLWidget::isValid() const /*! \fn bool QGLWidget::isSharing() const - Returns true if this widget's GL context is shared with another GL + Returns \c true if this widget's GL context is shared with another GL context, otherwise false is returned. Context sharing might not be possible if the widgets use different formats. diff --git a/src/opengl/qglbuffer.cpp b/src/opengl/qglbuffer.cpp index e10bc010c5..1c9545990f 100644 --- a/src/opengl/qglbuffer.cpp +++ b/src/opengl/qglbuffer.cpp @@ -267,7 +267,7 @@ namespace { } /*! - Creates the buffer object in the GL server. Returns true if + Creates the buffer object in the GL server. Returns \c true if the object was created; false otherwise. This function must be called with a current QGLContext. @@ -307,7 +307,7 @@ bool QGLBuffer::create() #define ctx QGLContext::currentContext() /*! - Returns true if this buffer has been created; false otherwise. + Returns \c true if this buffer has been created; false otherwise. \sa create(), destroy() */ @@ -333,7 +333,7 @@ void QGLBuffer::destroy() /*! Reads the \a count bytes in this buffer starting at \a offset - into \a data. Returns true on success; false if reading from + into \a data. Returns \c true on success; false if reading from the buffer is not supported. Buffer reading is not supported under OpenGL/ES. @@ -414,7 +414,7 @@ void QGLBuffer::allocate(const void *data, int count) /*! Binds the buffer associated with this object to the current - GL context. Returns false if binding was not possible, usually because + GL context. Returns \c false if binding was not possible, usually because type() is not supported on this GL implementation. The buffer must be bound to the same QGLContext current when create() @@ -551,7 +551,7 @@ void *QGLBuffer::map(QGLBuffer::Access access) /*! Unmaps the buffer after it was mapped into the application's - memory space with a previous call to map(). Returns true if + memory space with a previous call to map(). Returns \c true if the unmap succeeded; false otherwise. It is assumed that this buffer has been bound to the current context, diff --git a/src/opengl/qglcolormap.cpp b/src/opengl/qglcolormap.cpp index a10b1bfbbc..576e2c6552 100644 --- a/src/opengl/qglcolormap.cpp +++ b/src/opengl/qglcolormap.cpp @@ -229,8 +229,8 @@ QColor QGLColormap::entryColor(int idx) const } /*! - Returns true if the colormap is empty or it is not in use - by a QGLWidget; otherwise returns false. + Returns \c true if the colormap is empty or it is not in use + by a QGLWidget; otherwise returns \c false. A colormap with no color values set is considered to be empty. For historical reasons, a colormap that has color values set diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp index 8210b218ec..fa3f653aee 100644 --- a/src/opengl/qglframebufferobject.cpp +++ b/src/opengl/qglframebufferobject.cpp @@ -249,7 +249,7 @@ void QGLFramebufferObjectFormat::setMipmap(bool enabled) /*! \since 4.8 - Returns true if mipmapping is enabled. + Returns \c true if mipmapping is enabled. \sa setMipmap() */ @@ -331,8 +331,8 @@ GLenum QGLFramebufferObjectFormat::internalTextureFormat() const } /*! - Returns true if all the options of this framebuffer object format - are the same as \a other; otherwise returns false. + Returns \c true if all the options of this framebuffer object format + are the same as \a other; otherwise returns \c false. */ bool QGLFramebufferObjectFormat::operator==(const QGLFramebufferObjectFormat& other) const { @@ -343,8 +343,8 @@ bool QGLFramebufferObjectFormat::operator==(const QGLFramebufferObjectFormat& ot } /*! - Returns false if all the options of this framebuffer object format - are the same as \a other; otherwise returns true. + Returns \c false if all the options of this framebuffer object format + are the same as \a other; otherwise returns \c true. */ bool QGLFramebufferObjectFormat::operator!=(const QGLFramebufferObjectFormat& other) const { @@ -946,7 +946,7 @@ QGLFramebufferObject::~QGLFramebufferObject() /*! \fn bool QGLFramebufferObject::isValid() const - Returns true if the framebuffer object is valid. + Returns \c true if the framebuffer object is valid. The framebuffer can become invalid if the initialization process fails, the user attaches an invalid buffer to the framebuffer @@ -972,7 +972,7 @@ bool QGLFramebufferObject::isValid() const Switches rendering from the default, windowing system provided framebuffer to this framebuffer object. - Returns true upon success, false otherwise. + Returns \c true upon success, false otherwise. \sa release() */ @@ -1004,7 +1004,7 @@ bool QGLFramebufferObject::bind() Switches rendering back to the default, windowing system provided framebuffer. - Returns true upon success, false otherwise. + Returns \c true upon success, false otherwise. \sa bind() */ @@ -1125,7 +1125,7 @@ QPaintEngine *QGLFramebufferObject::paintEngine() const Switches rendering back to the default, windowing system provided framebuffer. - Returns true upon success, false otherwise. + Returns \c true upon success, false otherwise. \sa bind(), release() */ @@ -1152,8 +1152,8 @@ bool QGLFramebufferObject::bindDefault() /*! \fn bool QGLFramebufferObject::hasOpenGLFramebufferObjects() - Returns true if the OpenGL \c{GL_EXT_framebuffer_object} extension - is present on this system; otherwise returns false. + Returns \c true if the OpenGL \c{GL_EXT_framebuffer_object} extension + is present on this system; otherwise returns \c false. */ bool QGLFramebufferObject::hasOpenGLFramebufferObjects() { @@ -1277,7 +1277,7 @@ QGLFramebufferObject::Attachment QGLFramebufferObject::attachment() const /*! \since 4.5 - Returns true if the framebuffer object is currently bound to a context, + Returns \c true if the framebuffer object is currently bound to a context, otherwise false is returned. */ @@ -1293,8 +1293,8 @@ bool QGLFramebufferObject::isBound() const \since 4.6 - Returns true if the OpenGL \c{GL_EXT_framebuffer_blit} extension - is present on this system; otherwise returns false. + Returns \c true if the OpenGL \c{GL_EXT_framebuffer_blit} extension + is present on this system; otherwise returns \c false. \sa blitFramebuffer() */ diff --git a/src/opengl/qglfunctions.cpp b/src/opengl/qglfunctions.cpp index 3d3bc0e947..2e8caa30f6 100644 --- a/src/opengl/qglfunctions.cpp +++ b/src/opengl/qglfunctions.cpp @@ -323,7 +323,7 @@ QGLFunctions::OpenGLFeatures QGLFunctions::openGLFeatures() const } /*! - Returns true if \a feature is present on this system's OpenGL + Returns \c true if \a feature is present on this system's OpenGL implementation; false otherwise. It is assumed that the QGLContext associated with this function diff --git a/src/opengl/qglpixelbuffer.cpp b/src/opengl/qglpixelbuffer.cpp index e5e7de0fff..bcb2dd53db 100644 --- a/src/opengl/qglpixelbuffer.cpp +++ b/src/opengl/qglpixelbuffer.cpp @@ -213,7 +213,7 @@ QGLPixelBuffer::~QGLPixelBuffer() /*! \fn bool QGLPixelBuffer::makeCurrent() Makes this pbuffer the current OpenGL rendering context. Returns - true on success; otherwise returns false. + true on success; otherwise returns \c false. \sa QGLContext::makeCurrent(), doneCurrent() */ @@ -242,8 +242,8 @@ bool QGLPixelBuffer::makeCurrent() /*! \fn bool QGLPixelBuffer::doneCurrent() - Makes no context the current OpenGL context. Returns true on - success; otherwise returns false. + Makes no context the current OpenGL context. Returns \c true on + success; otherwise returns \c false. */ bool QGLPixelBuffer::doneCurrent() @@ -278,7 +278,7 @@ QGLContext *QGLPixelBuffer::context() const /*! \fn bool QGLPixelBuffer::bindToDynamicTexture(GLuint texture_id) Binds the texture specified by \a texture_id to this pbuffer. - Returns true on success; otherwise returns false. + Returns \c true on success; otherwise returns \c false. The texture must be of the same size and format as the pbuffer. @@ -312,8 +312,8 @@ QGLContext *QGLPixelBuffer::context() const /*! \fn bool QGLPixelBuffer::hasOpenGLPbuffers() - Returns true if the OpenGL \c pbuffer extension is present on - this system; otherwise returns false. + Returns \c true if the OpenGL \c pbuffer extension is present on + this system; otherwise returns \c false. */ /*! @@ -406,7 +406,7 @@ Qt::HANDLE QGLPixelBuffer::handle() const } /*! - Returns true if this pbuffer is valid; otherwise returns false. + Returns \c true if this pbuffer is valid; otherwise returns \c false. */ bool QGLPixelBuffer::isValid() const { diff --git a/src/opengl/qglshaderprogram.cpp b/src/opengl/qglshaderprogram.cpp index e7b7ad1348..84e4c26ed1 100644 --- a/src/opengl/qglshaderprogram.cpp +++ b/src/opengl/qglshaderprogram.cpp @@ -399,7 +399,7 @@ static const char redefineHighp[] = /*! Sets the \a source code for this shader and compiles it. - Returns true if the source was successfully compiled, false otherwise. + Returns \c true if the source was successfully compiled, false otherwise. \sa compileSourceFile() */ @@ -450,7 +450,7 @@ bool QGLShader::compileSourceCode(const char *source) \overload Sets the \a source code for this shader and compiles it. - Returns true if the source was successfully compiled, false otherwise. + Returns \c true if the source was successfully compiled, false otherwise. \sa compileSourceFile() */ @@ -463,7 +463,7 @@ bool QGLShader::compileSourceCode(const QByteArray& source) \overload Sets the \a source code for this shader and compiles it. - Returns true if the source was successfully compiled, false otherwise. + Returns \c true if the source was successfully compiled, false otherwise. \sa compileSourceFile() */ @@ -474,7 +474,7 @@ bool QGLShader::compileSourceCode(const QString& source) /*! Sets the source code for this shader to the contents of \a fileName - and compiles it. Returns true if the file could be opened and the + and compiles it. Returns \c true if the file could be opened and the source compiled, false otherwise. \sa compileSourceCode() @@ -515,7 +515,7 @@ QByteArray QGLShader::sourceCode() const } /*! - Returns true if this shader has been compiled; false otherwise. + Returns \c true if this shader has been compiled; false otherwise. \sa compileSourceCode(), compileSourceFile() */ @@ -698,7 +698,7 @@ bool QGLShaderProgram::init() } /*! - Adds a compiled \a shader to this shader program. Returns true + Adds a compiled \a shader to this shader program. Returns \c true if the shader could be added, or false otherwise. Ownership of the \a shader object remains with the caller. @@ -735,7 +735,7 @@ bool QGLShaderProgram::addShader(QGLShader *shader) /*! Compiles \a source as a shader of the specified \a type and - adds it to this shader program. Returns true if compilation + adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -765,7 +765,7 @@ bool QGLShaderProgram::addShaderFromSourceCode(QGLShader::ShaderType type, const \overload Compiles \a source as a shader of the specified \a type and - adds it to this shader program. Returns true if compilation + adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -785,7 +785,7 @@ bool QGLShaderProgram::addShaderFromSourceCode(QGLShader::ShaderType type, const \overload Compiles \a source as a shader of the specified \a type and - adds it to this shader program. Returns true if compilation + adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -803,7 +803,7 @@ bool QGLShaderProgram::addShaderFromSourceCode(QGLShader::ShaderType type, const /*! Compiles the contents of \a fileName as a shader of the specified - \a type and adds it to this shader program. Returns true if + \a type and adds it to this shader program. Returns \c true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log(). @@ -895,7 +895,7 @@ void QGLShaderProgram::removeAllShaders() /*! Links together the shaders that were added to this program with - addShader(). Returns true if the link was successful or + addShader(). Returns \c true if the link was successful or false otherwise. If the link failed, the error messages can be retrieved with log(). @@ -969,7 +969,7 @@ bool QGLShaderProgram::link() } /*! - Returns true if this shader program has been linked; false otherwise. + Returns \c true if this shader program has been linked; false otherwise. \sa link() */ @@ -995,7 +995,7 @@ QString QGLShaderProgram::log() const Binds this shader program to the active QGLContext and makes it the current shader program. Any previously bound shader program is released. This is equivalent to calling \c{glUseProgram()} on - programId(). Returns true if the program was successfully bound; + programId(). Returns \c true if the program was successfully bound; false otherwise. If the shader program has not yet been linked, or it needs to be re-linked, this function will call link(). @@ -3153,7 +3153,7 @@ GLenum QGLShaderProgram::geometryOutputType() const /*! - Returns true if shader programs written in the OpenGL Shading + Returns \c true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise. The \a context is used to resolve the GLSL extensions. @@ -3191,7 +3191,7 @@ void QGLShaderProgram::shaderDestroyed() #undef context /*! - Returns true if shader programs of type \a type are supported on + Returns \c true if shader programs of type \a type are supported on this system; false otherwise. The \a context is used to resolve the GLSL extensions. diff --git a/src/platformsupport/eventdispatchers/qeventdispatcher_cf.mm b/src/platformsupport/eventdispatchers/qeventdispatcher_cf.mm index ed86a33782..1e15a9f466 100644 --- a/src/platformsupport/eventdispatchers/qeventdispatcher_cf.mm +++ b/src/platformsupport/eventdispatchers/qeventdispatcher_cf.mm @@ -207,8 +207,8 @@ QEventDispatcherCoreFoundation::~QEventDispatcherCoreFoundation() /*! Processes all pending events that match \a flags until there are no - more events to process. Returns true if pending events were handled; - otherwise returns false. + more events to process. Returns \c true if pending events were handled; + otherwise returns \c false. Note: diff --git a/src/plugins/accessible/widgets/complexwidgets.cpp b/src/plugins/accessible/widgets/complexwidgets.cpp index 9988e73da1..c0d62ccc16 100644 --- a/src/plugins/accessible/widgets/complexwidgets.cpp +++ b/src/plugins/accessible/widgets/complexwidgets.cpp @@ -226,8 +226,8 @@ QString QAccessibleTabBar::text(QAccessible::Text t) const unselects it. If \a extend is true and the selection mode is not \c Single and there is an existing selection, the selection is extended to include all the items from the existing selection up - to and including the item with index \a child. Returns true if a - selection was made or extended; otherwise returns false. + to and including the item with index \a child. Returns \c true if a + selection was made or extended; otherwise returns \c false. \sa selection(), clearSelection() */ diff --git a/src/plugins/accessible/widgets/simplewidgets.cpp b/src/plugins/accessible/widgets/simplewidgets.cpp index 0112182a4b..e3e614d700 100644 --- a/src/plugins/accessible/widgets/simplewidgets.cpp +++ b/src/plugins/accessible/widgets/simplewidgets.cpp @@ -235,7 +235,7 @@ QToolButton *QAccessibleToolButton::toolButton() const } /*! - Returns true if this tool button is a split button. + Returns \c true if this tool button is a split button. */ bool QAccessibleToolButton::isSplitButton() const { diff --git a/src/plugins/imageformats/ico/qicohandler.cpp b/src/plugins/imageformats/ico/qicohandler.cpp index b1a674365d..77bb727a51 100644 --- a/src/plugins/imageformats/ico/qicohandler.cpp +++ b/src/plugins/imageformats/ico/qicohandler.cpp @@ -629,8 +629,8 @@ QList ICOReader::read(QIODevice * device) /*! Writes all the QImages in the \a images list to the given \a - device. Returns true if the images are written successfully; - otherwise returns false. + device. Returns \c true if the images are written successfully; + otherwise returns \c false. The first image in the list is stored as the first icon in the device, and is therefore used as the default icon by applications. diff --git a/src/plugins/platforms/cocoa/qmacmime.mm b/src/plugins/platforms/cocoa/qmacmime.mm index 51c39357ea..b4634c8ad8 100644 --- a/src/plugins/platforms/cocoa/qmacmime.mm +++ b/src/plugins/platforms/cocoa/qmacmime.mm @@ -914,8 +914,8 @@ QList QMacPasteboardMime::all(uchar t) /*! \fn bool QMacPasteboardMime::canConvert(const QString &mime, QString flav) - Returns true if the convertor can convert (both ways) between - \a mime and \a flav; otherwise returns false. + Returns \c true if the convertor can convert (both ways) between + \a mime and \a flav; otherwise returns \c false. All subclasses must reimplement this pure virtual function. */ diff --git a/src/plugins/platforms/ios/qiosglobal.mm b/src/plugins/platforms/ios/qiosglobal.mm index 537d63ae77..9b8462a6cc 100644 --- a/src/plugins/platforms/ios/qiosglobal.mm +++ b/src/plugins/platforms/ios/qiosglobal.mm @@ -48,7 +48,7 @@ QT_BEGIN_NAMESPACE bool isQtApplication() { - // Returns true if the plugin is in full control of the whole application. This means + // Returns \c true if the plugin is in full control of the whole application. This means // that we control the application delegate and the top view controller, and can take // actions that impacts all parts of the application. The opposite means that we are // embedded inside a native iOS application, and should be more focused on playing along diff --git a/src/plugins/platforms/windows/qwindowsmime.cpp b/src/plugins/platforms/windows/qwindowsmime.cpp index c1d75c2ad0..f62b8a6139 100644 --- a/src/plugins/platforms/windows/qwindowsmime.cpp +++ b/src/plugins/platforms/windows/qwindowsmime.cpp @@ -469,7 +469,7 @@ int QWindowsMime::registerMimeType(const QString &mime) /*! \fn bool QWindowsMime::canConvertFromMime(const FORMATETC &formatetc, const QMimeData *mimeData) const - Returns true if the converter can convert from the \a mimeData to + Returns \c true if the converter can convert from the \a mimeData to the format specified in \a formatetc. All subclasses must reimplement this pure virtual function. @@ -478,7 +478,7 @@ int QWindowsMime::registerMimeType(const QString &mime) /*! \fn bool QWindowsMime::canConvertToMime(const QString &mimeType, IDataObject *pDataObj) const - Returns true if the converter can convert to the \a mimeType from + Returns \c true if the converter can convert to the \a mimeType from the available formats in \a pDataObj. All subclasses must reimplement this pure virtual function. diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 1f5169e8d9..a0192510ee 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -156,7 +156,7 @@ enum QX11EmbedMessageType { const long XEMBED_VERSION = 0; -// Returns true if we should set WM_TRANSIENT_FOR on \a w +// Returns \c true if we should set WM_TRANSIENT_FOR on \a w static inline bool isTransient(const QWindow *w) { return w->type() == Qt::Dialog diff --git a/src/printsupport/dialogs/qabstractprintdialog.cpp b/src/printsupport/dialogs/qabstractprintdialog.cpp index ba5320f040..0de51208db 100644 --- a/src/printsupport/dialogs/qabstractprintdialog.cpp +++ b/src/printsupport/dialogs/qabstractprintdialog.cpp @@ -155,7 +155,7 @@ void QPrintDialog::setOption(PrintDialogOption option, bool on) } /*! - Returns true if the given \a option is enabled; otherwise, returns + Returns \c true if the given \a option is enabled; otherwise, returns false. \sa options, setOption() diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp index 9751389d6f..f90fa71b0f 100644 --- a/src/printsupport/kernel/qprinter.cpp +++ b/src/printsupport/kernel/qprinter.cpp @@ -719,8 +719,8 @@ void QPrinter::setPrinterName(const QString &name) /*! \since 4.4 - Returns true if the printer currently selected is a valid printer - in the system, or a pure PDF printer; otherwise returns false. + Returns \c true if the printer currently selected is a valid printer + in the system, or a pure PDF printer; otherwise returns \c false. To detect other failures check the output of QPainter::begin() or QPrinter::newPage(). @@ -1245,7 +1245,7 @@ int QPrinter::copyCount() const /*! \since 4.7 - Returns true if the printer supports printing multiple copies of the same + Returns \c true if the printer supports printing multiple copies of the same document in one job; otherwise false is returned. On most systems this function will return true. However, on X11 systems @@ -1265,8 +1265,8 @@ bool QPrinter::supportsMultipleCopies() const /*! \since 4.1 - Returns true if collation is turned on when multiple copies is selected. - Returns false if it is turned off when multiple copies is selected. + Returns \c true if collation is turned on when multiple copies is selected. + Returns \c false if it is turned off when multiple copies is selected. When collating is turned off the printing of each individual page will be repeated the numCopies() amount before the next page is started. With collating turned on all pages are printed before the next copy of those pages is started. @@ -1330,7 +1330,7 @@ void QPrinter::setFullPage(bool fp) /*! - Returns true if the origin of the printer's coordinate system is + Returns \c true if the origin of the printer's coordinate system is at the corner of the page and false if it is at the edge of the printable area. @@ -1427,7 +1427,7 @@ void QPrinter::setFontEmbeddingEnabled(bool enable) /*! \since 4.1 - Returns true if font embedding is enabled. + Returns \c true if font embedding is enabled. Currently this option is only supported on X11. @@ -1473,7 +1473,7 @@ void QPrinter::setDoubleSidedPrinting(bool doubleSided) /*! \since 4.2 - Returns true if double side printing is enabled. + Returns \c true if double side printing is enabled. Currently this option is only supported on X11. */ @@ -1733,8 +1733,8 @@ QList QPrinter::supportedResolutions() const /*! Tells the printer to eject the current page and to continue - printing on a new page. Returns true if this was successful; - otherwise returns false. + printing on a new page. Returns \c true if this was successful; + otherwise returns \c false. Calling newPage() on an inactive QPrinter object will always fail. @@ -1748,9 +1748,9 @@ bool QPrinter::newPage() } /*! - Aborts the current print run. Returns true if the print run was + Aborts the current print run. Returns \c true if the print run was successfully aborted and printerState() will return QPrinter::Aborted; otherwise - returns false. + returns \c false. It is not always possible to abort a print job. For example, all the data has gone to the printer but the printer cannot or @@ -2073,15 +2073,15 @@ QPrinter::PrintRange QPrinter::printRange() const /*! \fn bool QPrintEngine::newPage() - Instructs the print engine to start a new page. Returns true if - the printer was able to create the new page; otherwise returns false. + Instructs the print engine to start a new page. Returns \c true if + the printer was able to create the new page; otherwise returns \c false. */ /*! \fn bool QPrintEngine::abort() Instructs the print engine to abort the printing process. Returns - true if successful; otherwise returns false. + true if successful; otherwise returns \c false. */ /*! diff --git a/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp b/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp index 26ce7ab4ff..4643883bfe 100644 --- a/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp +++ b/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp @@ -128,7 +128,7 @@ QSqlDatabase db; qDebug() << db.isValid(); // Returns false db = QSqlDatabase::database("sales"); -qDebug() << db.isValid(); // Returns true if "sales" connection exists +qDebug() << db.isValid(); // Returns \c true if "sales" connection exists QSqlDatabase::removeDatabase("sales"); qDebug() << db.isValid(); // Returns false diff --git a/src/sql/doc/src/sql-programming.qdoc b/src/sql/doc/src/sql-programming.qdoc index 9a4f0eec75..33574bf8c2 100644 --- a/src/sql/doc/src/sql-programming.qdoc +++ b/src/sql/doc/src/sql-programming.qdoc @@ -152,7 +152,7 @@ After these connections have been initialized, \l{QSqlDatabase::} {open()} for each one to establish the live connections. If the - \l{QSqlDatabase::} {open()} fails, it returns false. In that case, + \l{QSqlDatabase::} {open()} fails, it returns \c false. In that case, call QSqlDatabase::lastError() to get error information. Once a connection is established, we can call the static function @@ -199,7 +199,7 @@ above, we don't specify any connection, so the default connection is used. - If an error occurs, \l{QSqlQuery::exec()}{exec()} returns false. + If an error occurs, \l{QSqlQuery::exec()}{exec()} returns \c false. The error is then available as QSqlQuery::lastError(). \section2 Navigating the Result Set @@ -209,7 +209,7 @@ internal pointer is located one position \e{before} the first record. We must call QSqlQuery::next() once to advance to the first record, then \l{QSqlQuery::next()}{next()} again repeatedly - to access the other records, until it returns false. Here's a + to access the other records, until it returns \c false. Here's a typical loop that iterates over all the records in order: \snippet sqldatabase/sqldatabase.cpp 32 diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp index 0ca79fd39f..b87a1fe1c5 100644 --- a/src/sql/kernel/qsqldatabase.cpp +++ b/src/sql/kernel/qsqldatabase.cpp @@ -454,7 +454,7 @@ void QSqlDatabasePrivate::disable() The database connection is referred to by \a connectionName. The newly added database connection is returned. - If \a type is not available or could not be loaded, isValid() returns false. + If \a type is not available or could not be loaded, isValid() returns \c false. If \a connectionName is not specified, the new connection becomes the default connection for the application, and subsequent calls @@ -620,8 +620,8 @@ void QSqlDatabase::registerSqlDriver(const QString& name, QSqlDriverCreatorBase /*! \threadsafe - Returns true if the list of database connections contains \a - connectionName; otherwise returns false. + Returns \c true if the list of database connections contains \a + connectionName; otherwise returns \c false. \sa connectionNames(), database(), {Threads and the SQL Module} */ @@ -826,7 +826,7 @@ QSqlQuery QSqlDatabase::exec(const QString & query) const /*! Opens the database connection using the current connection - values. Returns true on success; otherwise returns false. Error + values. Returns \c true on success; otherwise returns \c false. Error information can be retrieved using lastError(). \sa lastError(), setDatabaseName(), setUserName(), setPassword(), @@ -843,7 +843,7 @@ bool QSqlDatabase::open() \overload Opens the database connection using the given \a user name and \a - password. Returns true on success; otherwise returns false. Error + password. Returns \c true on success; otherwise returns \c false. Error information can be retrieved using the lastError() function. This function does not store the password it is given. Instead, @@ -876,8 +876,8 @@ void QSqlDatabase::close() } /*! - Returns true if the database connection is currently open; - otherwise returns false. + Returns \c true if the database connection is currently open; + otherwise returns \c false. */ bool QSqlDatabase::isOpen() const @@ -886,8 +886,8 @@ bool QSqlDatabase::isOpen() const } /*! - Returns true if there was an error opening the database - connection; otherwise returns false. Error information can be + Returns \c true if there was an error opening the database + connection; otherwise returns \c false. Error information can be retrieved using the lastError() function. */ @@ -1302,8 +1302,8 @@ QString QSqlDatabase::connectOptions() const } /*! - Returns true if a driver called \a name is available; otherwise - returns false. + Returns \c true if a driver called \a name is available; otherwise + returns \c false. \sa drivers() */ @@ -1418,7 +1418,7 @@ QSqlDatabase QSqlDatabase::addDatabase(QSqlDriver* driver, const QString& connec } /*! - Returns true if the QSqlDatabase has a valid driver. + Returns \c true if the QSqlDatabase has a valid driver. Example: \snippet code/src_sql_kernel_qsqldatabase.cpp 8 diff --git a/src/sql/kernel/qsqldriver.cpp b/src/sql/kernel/qsqldriver.cpp index 63b90f27c6..36e886ed1f 100644 --- a/src/sql/kernel/qsqldriver.cpp +++ b/src/sql/kernel/qsqldriver.cpp @@ -159,7 +159,7 @@ QSqlDriver::~QSqlDriver() */ /*! - Returns true if the database connection is open; otherwise returns + Returns \c true if the database connection is open; otherwise returns false. */ @@ -169,8 +169,8 @@ bool QSqlDriver::isOpen() const } /*! - Returns true if the there was an error opening the database - connection; otherwise returns false. + Returns \c true if the there was an error opening the database + connection; otherwise returns \c false. */ bool QSqlDriver::isOpenError() const @@ -247,8 +247,8 @@ bool QSqlDriver::isOpenError() const /*! \fn bool QSqlDriver::hasFeature(DriverFeature feature) const - Returns true if the driver supports feature \a feature; otherwise - returns false. + Returns \c true if the driver supports feature \a feature; otherwise + returns \c false. Note that some databases need to be open() before this can be determined. @@ -273,7 +273,7 @@ void QSqlDriver::setOpen(bool open) This function sets the open error state of the database to \a error. Derived classes can use this function to report the status of open(). Note that if \a error is true the open state of the - database is set to closed (i.e., isOpen() returns false). + database is set to closed (i.e., isOpen() returns \c false). \sa open(), setOpen() */ @@ -288,7 +288,7 @@ void QSqlDriver::setOpenError(bool error) /*! This function is called to begin a transaction. If successful, return true, otherwise return false. The default implementation - does nothing and returns false. + does nothing and returns \c false. \sa commitTransaction(), rollbackTransaction() */ @@ -301,7 +301,7 @@ bool QSqlDriver::beginTransaction() /*! This function is called to commit a transaction. If successful, return true, otherwise return false. The default implementation - does nothing and returns false. + does nothing and returns \c false. \sa beginTransaction(), rollbackTransaction() */ @@ -314,7 +314,7 @@ bool QSqlDriver::commitTransaction() /*! This function is called to rollback a transaction. If successful, return true, otherwise return false. The default implementation - does nothing and returns false. + does nothing and returns \c false. \sa beginTransaction(), commitTransaction() */ @@ -779,7 +779,7 @@ QSql::NumericalPrecisionPolicy QSqlDriver::numericalPrecisionPolicy() const \internal Tries to cancel the running query, if the underlying driver has the - capability to cancel queries. Returns true on success, otherwise false. + capability to cancel queries. Returns \c true on success, otherwise false. This function can be called from a different thread. diff --git a/src/sql/kernel/qsqlerror.cpp b/src/sql/kernel/qsqlerror.cpp index 9beaf10a32..e4b8aa0c6d 100644 --- a/src/sql/kernel/qsqlerror.cpp +++ b/src/sql/kernel/qsqlerror.cpp @@ -116,7 +116,7 @@ QSqlError& QSqlError::operator=(const QSqlError& other) } /*! - Compare the \a other error's values to this error and returns true, if it equal. + Compare the \a other error's values to this error and returns \c true, if it equal. */ bool QSqlError::operator==(const QSqlError& other) const @@ -126,7 +126,7 @@ bool QSqlError::operator==(const QSqlError& other) const /*! - Compare the \a other error's values to this error and returns true if it is not equal. + Compare the \a other error's values to this error and returns \c true if it is not equal. */ bool QSqlError::operator!=(const QSqlError& other) const @@ -278,7 +278,7 @@ QString QSqlError::text() const } /*! - Returns true if an error is set, otherwise false. + Returns \c true if an error is set, otherwise false. Example: \snippet code/src_sql_kernel_qsqlerror.cpp 0 diff --git a/src/sql/kernel/qsqlfield.cpp b/src/sql/kernel/qsqlfield.cpp index a0ce4068fc..c3c80cad61 100644 --- a/src/sql/kernel/qsqlfield.cpp +++ b/src/sql/kernel/qsqlfield.cpp @@ -190,12 +190,12 @@ QSqlField& QSqlField::operator=(const QSqlField& other) /*! \fn bool QSqlField::operator!=(const QSqlField &other) const - Returns true if the field is unequal to \a other; otherwise returns + Returns \c true if the field is unequal to \a other; otherwise returns false. */ /*! - Returns true if the field is equal to \a other; otherwise returns + Returns \c true if the field is equal to \a other; otherwise returns false. */ bool QSqlField::operator==(const QSqlField& other) const @@ -299,7 +299,7 @@ void QSqlField::setGenerated(bool gen) /*! Sets the value of the field to \a value. If the field is read-only - (isReadOnly() returns true), nothing happens. + (isReadOnly() returns \c true), nothing happens. If the data type of \a value differs from the field's current data type, an attempt is made to cast it to the proper type. This @@ -403,7 +403,7 @@ void QSqlField::setType(QVariant::Type type) /*! - Returns true if the field's value is read-only; otherwise returns + Returns \c true if the field's value is read-only; otherwise returns false. \sa setReadOnly(), type(), requiredStatus(), length(), precision(), @@ -413,7 +413,7 @@ bool QSqlField::isReadOnly() const { return d->ro; } /*! - Returns true if the field's value is NULL; otherwise returns + Returns \c true if the field's value is NULL; otherwise returns false. \sa value() @@ -429,7 +429,7 @@ void QSqlField::detach() } /*! - Returns true if this is a required field; otherwise returns false. + Returns \c true if this is a required field; otherwise returns \c false. An \c INSERT will fail if a required field does not have a value. \sa setRequiredStatus(), type(), length(), precision(), defaultValue(), @@ -494,7 +494,7 @@ int QSqlField::typeID() const } /*! - Returns true if the field is generated; otherwise returns + Returns \c true if the field is generated; otherwise returns false. \sa setGenerated(), type(), requiredStatus(), length(), precision(), @@ -506,8 +506,8 @@ bool QSqlField::isGenerated() const } /*! - Returns true if the field's variant type is valid; otherwise - returns false. + Returns \c true if the field's variant type is valid; otherwise + returns \c false. */ bool QSqlField::isValid() const { @@ -536,7 +536,7 @@ QDebug operator<<(QDebug dbg, const QSqlField &f) #endif /*! - Returns true if the value is auto-generated by the database, + Returns \c true if the value is auto-generated by the database, for example auto-increment primary key values. \sa setAutoValue() diff --git a/src/sql/kernel/qsqlindex.cpp b/src/sql/kernel/qsqlindex.cpp index 9ca58ba358..4b8ec442e6 100644 --- a/src/sql/kernel/qsqlindex.cpp +++ b/src/sql/kernel/qsqlindex.cpp @@ -141,8 +141,8 @@ void QSqlIndex::append(const QSqlField& field, bool desc) /*! - Returns true if field \a i in the index is sorted in descending - order; otherwise returns false. + Returns \c true if field \a i in the index is sorted in descending + order; otherwise returns \c false. */ bool QSqlIndex::isDescending(int i) const diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index 5b103f1bff..661a582afe 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -114,11 +114,11 @@ QSqlQueryPrivate::~QSqlQueryPrivate() standard SQL (e.g. \c{SET DATESTYLE=ISO} for PostgreSQL). Successfully executed SQL statements set the query's state to - active so that isActive() returns true. Otherwise the query's + active so that isActive() returns \c true. Otherwise the query's state is set to inactive. In either case, when executing a new SQL statement, the query is positioned on an invalid record. An active query must be navigated to a valid record (so that isValid() - returns true) before values can be retrieved. + returns \c true) before values can be retrieved. For some databases, if an active query that is a \c{SELECT} statement exists when you call \l{QSqlDatabase::}{commit()} or @@ -309,7 +309,7 @@ QSqlQuery& QSqlQuery::operator=(const QSqlQuery& other) } /*! - Returns true if the query is \l{isActive()}{active} and positioned + Returns \c true if the query is \l{isActive()}{active} and positioned on a valid record and the \a field is NULL; otherwise returns false. Note that for some drivers, isNull() will not return accurate information until after an attempt is made to retrieve data. @@ -326,9 +326,9 @@ bool QSqlQuery::isNull(int field) const /*! - Executes the SQL in \a query. Returns true and sets the query state + Executes the SQL in \a query. Returns \c true and sets the query state to \l{isActive()}{active} if the query was successful; otherwise - returns false. The \a query string must use syntax appropriate for + returns \c false. The \a query string must use syntax appropriate for the SQL database being queried (for example, standard SQL). After the query is executed, the query is positioned on an \e @@ -339,7 +339,7 @@ bool QSqlQuery::isNull(int field) const called. For SQLite, the query string can contain only one statement at a time. - If more than one statement is given, the function returns false. + If more than one statement is given, the function returns \c false. Example: @@ -686,7 +686,7 @@ bool QSqlQuery::previous() positions the query on the retrieved record. Note that the result must be in the \l{isActive()}{active} state and isSelect() must return true before calling this function or it will do nothing and - return false. Returns true if successful. If unsuccessful the query + return false. Returns \c true if successful. If unsuccessful the query position is set to an invalid position and false is returned. \sa next(), previous(), last(), seek(), at(), isActive(), isValid() @@ -710,7 +710,7 @@ bool QSqlQuery::first() the query on the retrieved record. Note that the result must be in the \l{isActive()}{active} state and isSelect() must return true before calling this function or it will do nothing and return false. - Returns true if successful. If unsuccessful the query position is + Returns \c true if successful. If unsuccessful the query position is set to an invalid position and false is returned. \sa next(), previous(), first(), seek(), at(), isActive(), isValid() @@ -729,8 +729,8 @@ bool QSqlQuery::last() Returns the size of the result (number of rows returned), or -1 if the size cannot be determined or if the database does not support reporting information about query sizes. Note that for non-\c SELECT - statements (isSelect() returns false), size() will return -1. If the - query is not active (isActive() returns false), -1 is returned. + statements (isSelect() returns \c false), size() will return -1. If the + query is not active (isActive() returns \c false), -1 is returned. To determine the number of rows affected by a non-\c SELECT statement, use numRowsAffected(). @@ -773,8 +773,8 @@ QSqlError QSqlQuery::lastError() const } /*! - Returns true if the query is currently positioned on a valid - record; otherwise returns false. + Returns \c true if the query is currently positioned on a valid + record; otherwise returns \c false. */ bool QSqlQuery::isValid() const @@ -784,7 +784,7 @@ bool QSqlQuery::isValid() const /*! - Returns true if the query is \e{active}. An active QSqlQuery is one + Returns \c true if the query is \e{active}. An active QSqlQuery is one that has been \l{QSqlQuery::exec()} {exec()'d} successfully but not yet finished with. When you are finished with an active query, you can make the query inactive by calling finish() or clear(), or @@ -805,8 +805,8 @@ bool QSqlQuery::isActive() const } /*! - Returns true if the current query is a \c SELECT statement; - otherwise returns false. + Returns \c true if the current query is a \c SELECT statement; + otherwise returns \c false. */ bool QSqlQuery::isSelect() const @@ -815,8 +815,8 @@ bool QSqlQuery::isSelect() const } /*! - Returns true if you can only scroll forward through a result set; - otherwise returns false. + Returns \c true if you can only scroll forward through a result set; + otherwise returns \c false. \sa setForwardOnly(), next() */ @@ -894,8 +894,8 @@ void QSqlQuery::clear() } /*! - Prepares the SQL query \a query for execution. Returns true if the - query is prepared successfully; otherwise returns false. + Prepares the SQL query \a query for execution. Returns \c true if the + query is prepared successfully; otherwise returns \c false. The query may contain placeholders for binding values. Both Oracle style colon-name (e.g., \c{:surname}), and ODBC style (\c{?}) @@ -909,7 +909,7 @@ void QSqlQuery::clear() will fail. For SQLite, the query string can contain only one statement at a time. - If more than one statement is given, the function returns false. + If more than one statement is given, the function returns \c false. Example: @@ -949,8 +949,8 @@ bool QSqlQuery::prepare(const QString& query) } /*! - Executes a previously prepared SQL query. Returns true if the query - executed successfully; otherwise returns false. + Executes a previously prepared SQL query. Returns \c true if the query + executed successfully; otherwise returns \c false. Note that the last error for this query is reset when exec() is called. @@ -981,8 +981,8 @@ bool QSqlQuery::exec() support batch executions, the driver will simulate it using conventional exec() calls. - Returns true if the query is executed successfully; otherwise - returns false. + Returns \c true if the query is executed successfully; otherwise + returns \c false. Example: @@ -1229,7 +1229,7 @@ void QSqlQuery::finish() The query will be repositioned on an \e invalid record in the new result set and must be navigated to a valid record before data values can be retrieved. If a new result set isn't available the - function returns false and the query is set to inactive. In any + function returns \c false and the query is set to inactive. In any case the old result set will be discarded. When one of the statements is a non-select statement a count of diff --git a/src/sql/kernel/qsqlrecord.cpp b/src/sql/kernel/qsqlrecord.cpp index 4cac5028c3..b01c20bd1a 100644 --- a/src/sql/kernel/qsqlrecord.cpp +++ b/src/sql/kernel/qsqlrecord.cpp @@ -167,15 +167,15 @@ QSqlRecord::~QSqlRecord() /*! \fn bool QSqlRecord::operator!=(const QSqlRecord &other) const - Returns true if this object is not identical to \a other; - otherwise returns false. + Returns \c true if this object is not identical to \a other; + otherwise returns \c false. \sa operator==() */ /*! - Returns true if this object is identical to \a other (i.e., has - the same fields in the same order); otherwise returns false. + Returns \c true if this object is identical to \a other (i.e., has + the same fields in the same order); otherwise returns \c false. \sa operator!=() */ @@ -329,8 +329,8 @@ void QSqlRecord::clear() } /*! - Returns true if there are no fields in the record; otherwise - returns false. + Returns \c true if there are no fields in the record; otherwise + returns \c false. \sa append(), insert(), clear() */ @@ -342,8 +342,8 @@ bool QSqlRecord::isEmpty() const /*! - Returns true if there is a field in the record called \a name; - otherwise returns false. + Returns \c true if there is a field in the record called \a name; + otherwise returns \c false. */ bool QSqlRecord::contains(const QString& name) const @@ -399,8 +399,8 @@ void QSqlRecord::setGenerated(int index, bool generated) /*! \overload - Returns true if the field \a index is null or if there is no field at - position \a index; otherwise returns false. + Returns \c true if the field \a index is null or if there is no field at + position \a index; otherwise returns \c false. */ bool QSqlRecord::isNull(int index) const { @@ -408,8 +408,8 @@ bool QSqlRecord::isNull(int index) const } /*! - Returns true if the field called \a name is null or if there is no - field called \a name; otherwise returns false. + Returns \c true if the field called \a name is null or if there is no + field called \a name; otherwise returns \c false. \sa setNull() */ @@ -445,8 +445,8 @@ void QSqlRecord::setNull(const QString& name) /*! - Returns true if the record has a field called \a name and this - field is to be generated (the default); otherwise returns false. + Returns \c true if the record has a field called \a name and this + field is to be generated (the default); otherwise returns \c false. \sa setGenerated() */ @@ -457,8 +457,8 @@ bool QSqlRecord::isGenerated(const QString& name) const /*! \overload - Returns true if the record has a field at position \a index and this - field is to be generated (the default); otherwise returns false. + Returns \c true if the record has a field at position \a index and this + field is to be generated (the default); otherwise returns \c false. \sa setGenerated() */ diff --git a/src/sql/kernel/qsqlresult.cpp b/src/sql/kernel/qsqlresult.cpp index e3203f983c..953e2ca66e 100644 --- a/src/sql/kernel/qsqlresult.cpp +++ b/src/sql/kernel/qsqlresult.cpp @@ -289,9 +289,9 @@ int QSqlResult::at() const /*! - Returns true if the result is positioned on a valid record (that + Returns \c true if the result is positioned on a valid record (that is, the result is not positioned before the first or after the - last record); otherwise returns false. + last record); otherwise returns \c false. \sa at() */ @@ -305,13 +305,13 @@ bool QSqlResult::isValid() const /*! \fn bool QSqlResult::isNull(int index) - Returns true if the field at position \a index in the current row - is null; otherwise returns false. + Returns \c true if the field at position \a index in the current row + is null; otherwise returns \c false. */ /*! - Returns true if the result has records to be retrieved; otherwise - returns false. + Returns \c true if the result has records to be retrieved; otherwise + returns \c false. */ bool QSqlResult::isActive() const @@ -350,8 +350,8 @@ void QSqlResult::setSelect(bool select) } /*! - Returns true if the current result is from a \c SELECT statement; - otherwise returns false. + Returns \c true if the current result is from a \c SELECT statement; + otherwise returns \c false. \sa setSelect() */ @@ -538,8 +538,8 @@ bool QSqlResult::fetchPrevious() } /*! - Returns true if you can only scroll forward through the result - set; otherwise returns false. + Returns \c true if you can only scroll forward through the result + set; otherwise returns \c false. \sa setForwardOnly() */ @@ -573,8 +573,8 @@ void QSqlResult::setForwardOnly(bool forward) /*! Prepares the given \a query, using the underlying database - functionality where possible. Returns true if the query is - prepared successfully; otherwise returns false. + functionality where possible. Returns \c true if the query is + prepared successfully; otherwise returns \c false. Note: This method should have been called "safePrepare()". @@ -602,7 +602,7 @@ bool QSqlResult::savePrepare(const QString& query) /*! Prepares the given \a query for execution; the query will normally use placeholders so that it can be executed repeatedly. Returns - true if the query is prepared successfully; otherwise returns false. + true if the query is prepared successfully; otherwise returns \c false. \sa exec() */ @@ -860,8 +860,8 @@ QString QSqlResult::boundValueName(int index) const } /*! - Returns true if at least one of the query's bound values is a \c - QSql::Out or a QSql::InOut; otherwise returns false. + Returns \c true if at least one of the query's bound values is a \c + QSql::Out or a QSql::InOut; otherwise returns \c false. \sa bindValueType() */ diff --git a/src/sql/models/qsqlquerymodel.cpp b/src/sql/models/qsqlquerymodel.cpp index 00fc410ca5..4bee8fe326 100644 --- a/src/sql/models/qsqlquerymodel.cpp +++ b/src/sql/models/qsqlquerymodel.cpp @@ -200,7 +200,7 @@ void QSqlQueryModel::fetchMore(const QModelIndex &parent) /*! \since 4.1 - Returns true if it is possible to read more rows from the database. + Returns \c true if it is possible to read more rows from the database. This only affects databases that don't report back the size of a query (see QSqlDriver::hasFeature()). @@ -493,7 +493,7 @@ void QSqlQueryModel::clear() \a value. This is useful if the model is used to display data in a view (e.g., QTableView). - Returns true if \a orientation is Qt::Horizontal and + Returns \c true if \a orientation is Qt::Horizontal and the \a section refers to a valid section; otherwise returns false. @@ -594,7 +594,7 @@ QSqlRecord QSqlQueryModel::record() const \a parent parameter must always be an invalid QModelIndex, since the model does not support parent-child relationships. - Returns true if \a column is within bounds; otherwise returns false. + Returns \c true if \a column is within bounds; otherwise returns \c false. By default, inserted columns are empty. To fill them with data, reimplement data() and handle any inserted column separately: @@ -636,7 +636,7 @@ bool QSqlQueryModel::insertColumns(int column, int count, const QModelIndex &par Removing columns effectively hides them. It does not affect the underlying QSqlQuery. - Returns true if the columns were removed; otherwise returns false. + Returns \c true if the columns were removed; otherwise returns \c false. */ bool QSqlQueryModel::removeColumns(int column, int count, const QModelIndex &parent) { diff --git a/src/sql/models/qsqlrelationaltablemodel.cpp b/src/sql/models/qsqlrelationaltablemodel.cpp index fb45468d2e..6aeef89483 100644 --- a/src/sql/models/qsqlrelationaltablemodel.cpp +++ b/src/sql/models/qsqlrelationaltablemodel.cpp @@ -124,8 +124,8 @@ typedef QSqlRelationalTableModelSql Sql; /*! \fn bool QSqlRelation::isValid() const - Returns true if the QSqlRelation object is valid; otherwise - returns false. + Returns \c true if the QSqlRelation object is valid; otherwise + returns \c false. */ class QRelatedTableModel; @@ -458,12 +458,12 @@ QVariant QSqlRelationalTableModel::data(const QModelIndex &index, int role) cons value might be applied to the database at once, or it may be cached in the model. - Returns true if the value could be set, or false on error (for + Returns \c true if the value could be set, or false on error (for example, if \a index is out of bounds). For relational columns, \a value must be the index, not the display value. The index must also exist in the referenced - table, otherwise the function returns false. + table, otherwise the function returns \c false. \sa editStrategy(), data(), submit(), revertRow() */ diff --git a/src/sql/models/qsqltablemodel.cpp b/src/sql/models/qsqltablemodel.cpp index 94623548ed..da9b96a625 100644 --- a/src/sql/models/qsqltablemodel.cpp +++ b/src/sql/models/qsqltablemodel.cpp @@ -355,8 +355,8 @@ QString QSqlTableModel::tableName() const /*! Populates the model with data from the table that was set via setTable(), using the - specified filter and sort condition, and returns true if successful; otherwise - returns false. + specified filter and sort condition, and returns \c true if successful; otherwise + returns \c false. \note Calling select() will revert any unsubmitted changes and remove any inserted columns. @@ -393,7 +393,7 @@ bool QSqlTableModel::select() on primary key values. Without a primary key, all column values must match. If no matching row is found, the model will show an empty row. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. \sa select() */ @@ -500,7 +500,7 @@ QVariant QSqlTableModel::headerData(int section, Qt::Orientation orientation, in \overload \since 5.0 - Returns true if the model contains modified values that have not been + Returns \c true if the model contains modified values that have not been committed to the datase, otherwise false. */ bool QSqlTableModel::isDirty() const @@ -515,7 +515,7 @@ bool QSqlTableModel::isDirty() const } /*! - Returns true if the value at the index \a index is dirty, otherwise false. + Returns \c true if the value at the index \a index is dirty, otherwise false. Dirty values are values that were modified in the model but not yet written into the database. @@ -551,10 +551,10 @@ bool QSqlTableModel::isDirty(const QModelIndex &index) const For OnRowChange, an index may receive a change only if no other row has a cached change. Changes are not submitted automatically. - Returns true if \a value is equal to the current value. However, + Returns \c true if \a value is equal to the current value. However, the value will not be submitted to the database. - Returns true if the value could be set or false on error, for + Returns \c true if the value could be set or false on error, for example if \a index is out of bounds. \sa editStrategy(), data(), submit(), submitAll(), revertRow() @@ -609,8 +609,8 @@ void QSqlTableModel::setQuery(const QSqlQuery &query) /*! Updates the given \a row in the currently active database table - with the specified \a values. Returns true if successful; otherwise - returns false. + with the specified \a values. Returns \c true if successful; otherwise + returns \c false. This is a low-level method that operates directly on the database and should not be called directly. Use setData() to update values. @@ -654,7 +654,7 @@ bool QSqlTableModel::updateRowInTable(int row, const QSqlRecord &values) to insert values. The model will decide depending on its edit strategy when to modify the database. - Returns true if the values could be inserted, otherwise false. + Returns \c true if the values could be inserted, otherwise false. Error information can be retrieved with \l lastError(). \sa lastError(), insertRow(), insertRows() @@ -686,7 +686,7 @@ bool QSqlTableModel::insertRowIntoTable(const QSqlRecord &values) to delete values. The model will decide depending on its edit strategy when to modify the database. - Returns true if the row was deleted; otherwise returns false. + Returns \c true if the row was deleted; otherwise returns \c false. \sa removeRow(), removeRows() */ @@ -716,8 +716,8 @@ bool QSqlTableModel::deleteRowFromTable(int row) } /*! - Submits all pending changes and returns true on success. - Returns false on error, detailed error information can be + Submits all pending changes and returns \c true on success. + Returns \c false on error, detailed error information can be obtained with lastError(). In OnManualSubmit, on success the model will be repopulated. @@ -795,7 +795,7 @@ bool QSqlTableModel::submitAll() Use submitAll() to submit all pending changes for the OnManualSubmit strategy. - Returns true on success; otherwise returns false. Use lastError() + Returns \c true on success; otherwise returns \c false. Use lastError() to query detailed error information. Does not automatically repopulate the model. Submitted rows are @@ -1034,7 +1034,7 @@ QString QSqlTableModel::selectStatement() const index \a column. Returns if the columns were successfully removed; otherwise - returns false. + returns \c false. \sa removeRows() */ @@ -1073,8 +1073,8 @@ bool QSqlTableModel::removeColumns(int column, int count, const QModelIndex &par signal is emitted. If row < 0 or row + count > rowCount(), no action is taken and - false is returned. Returns true if all rows could be removed; - otherwise returns false. Detailed database error information + false is returned. Returns \c true if all rows could be removed; + otherwise returns \c false. Detailed database error information can be retrieved using lastError(). \sa removeColumns(), insertRows() @@ -1131,8 +1131,8 @@ bool QSqlTableModel::removeRows(int row, int count, const QModelIndex &parent) Does not submit rows, regardless of edit strategy. - Returns false if the parameters are out of bounds or the row cannot be - inserted; otherwise returns true. + Returns \c false if the parameters are out of bounds or the row cannot be + inserted; otherwise returns \c true. \sa primeInsert(), insertRecord() */ @@ -1178,7 +1178,7 @@ bool QSqlTableModel::insertRows(int row, int count, const QModelIndex &parent) the record will be appended to the end. Calls insertRows() and setRecord() internally. - Returns true if the record could be inserted, otherwise false. + Returns \c true if the record could be inserted, otherwise false. Changes are submitted immediately for OnFieldChange and OnRowChange. Failure does not leave a new row in the model. @@ -1360,7 +1360,7 @@ QSqlRecord QSqlTableModel::record(int row) const Changes are submitted immediately. Submitted changes are not reverted upon failure. - Returns true if all the values could be set; otherwise returns + Returns \c true if all the values could be set; otherwise returns false. \sa record(), editStrategy() diff --git a/src/testlib/qbenchmarkvalgrind.cpp b/src/testlib/qbenchmarkvalgrind.cpp index e267c06ec3..545de3bb65 100644 --- a/src/testlib/qbenchmarkvalgrind.cpp +++ b/src/testlib/qbenchmarkvalgrind.cpp @@ -53,7 +53,7 @@ QT_BEGIN_NAMESPACE -// Returns true iff a sufficiently recent valgrind is available. +// Returns \c true iff a sufficiently recent valgrind is available. bool QBenchmarkValgrindUtils::haveValgrind() { #ifdef NVALGRIND @@ -84,7 +84,7 @@ bool QBenchmarkValgrindUtils::haveValgrind() } // Reruns this program through callgrind. -// Returns true upon success, otherwise false. +// Returns \c true upon success, otherwise false. bool QBenchmarkValgrindUtils::rerunThroughCallgrind(const QStringList &origAppArgs, int &exitCode) { if (!QBenchmarkValgrindUtils::runCallgrindSubProcess(origAppArgs, exitCode)) { @@ -187,7 +187,7 @@ QString QBenchmarkValgrindUtils::outFileBase(qint64 pid) // Reruns this program through callgrind, storing callgrind result files in the // current directory. -// Returns true upon success, otherwise false. +// Returns \c true upon success, otherwise false. bool QBenchmarkValgrindUtils::runCallgrindSubProcess(const QStringList &origAppArgs, int &exitCode) { const QString execFile(origAppArgs.at(0)); diff --git a/src/testlib/qsignalspy.qdoc b/src/testlib/qsignalspy.qdoc index 77dcd99741..9559090e8f 100644 --- a/src/testlib/qsignalspy.qdoc +++ b/src/testlib/qsignalspy.qdoc @@ -74,7 +74,7 @@ /*! \fn QSignalSpy::isValid() const - Returns true if the signal spy listens to a valid signal, otherwise false. + Returns \c true if the signal spy listens to a valid signal, otherwise false. */ /*! \fn QSignalSpy::signal() const @@ -93,7 +93,7 @@ Starts an event loop that runs until the given signal is received. Optionally the event loop can return earlier on a \a timeout (in milliseconds). - Returns true if the signal was emitted at least once in \a timeout milliseconds, otherwise returns false. + Returns \c true if the signal was emitted at least once in \a timeout milliseconds, otherwise returns \c false. Example: \snippet code/doc_src_qsignalspy.cpp 5 diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index ff90ed1c0e..260ace642e 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -864,7 +864,7 @@ QT_BEGIN_NAMESPACE \since 5.0 Waits for \a timeout milliseconds or until the \a window is exposed. - Returns true if \c window is exposed within \a timeout milliseconds, otherwise returns false. + Returns \c true if \c window is exposed within \a timeout milliseconds, otherwise returns \c false. This is mainly useful for asynchronous systems like X11, where a window will be mapped to screen some time after being asked to show itself on the screen. @@ -877,7 +877,7 @@ QT_BEGIN_NAMESPACE Waits for \a timeout milliseconds or until the \a window is active. - Returns true if \c window is active within \a timeout milliseconds, otherwise returns false. + Returns \c true if \c window is active within \a timeout milliseconds, otherwise returns \c false. \sa QTest::qWaitForWindowExposed(), QWindow::isActive() */ @@ -886,7 +886,7 @@ QT_BEGIN_NAMESPACE \since 5.0 Waits for \a timeout milliseconds or until the \a widget's window is exposed. - Returns true if \c widget's window is exposed within \a timeout milliseconds, otherwise returns false. + Returns \c true if \c widget's window is exposed within \a timeout milliseconds, otherwise returns \c false. This is mainly useful for asynchronous systems like X11, where a window will be mapped to screen some time after being asked to show itself on the screen. @@ -899,7 +899,7 @@ QT_BEGIN_NAMESPACE Waits for \a timeout milliseconds or until the \a widget's window is active. - Returns true if \c widget's window is active within \a timeout milliseconds, otherwise returns false. + Returns \c true if \c widget's window is active within \a timeout milliseconds, otherwise returns \c false. \sa QTest::qWaitForWindowExposed(), QWidget::isActiveWindow() */ @@ -909,7 +909,7 @@ QT_BEGIN_NAMESPACE \deprecated Waits for \a timeout milliseconds or until the \a widget's window is exposed. - Returns true if \c widget's window is exposed within \a timeout milliseconds, otherwise returns false. + Returns \c true if \c widget's window is exposed within \a timeout milliseconds, otherwise returns \c false. This function does the same as qWaitForWindowExposed(). @@ -2550,7 +2550,7 @@ const char *QTest::currentDataTag() } /*! - Returns true if the current test function failed, otherwise false. + Returns \c true if the current test function failed, otherwise false. */ bool QTest::currentTestFailed() { diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp index cb18c2c4a5..34d3c06e97 100644 --- a/src/tools/moc/generator.cpp +++ b/src/tools/moc/generator.cpp @@ -65,7 +65,7 @@ uint nameToBuiltinType(const QByteArray &name) } /* - Returns true if the type is a built-in type. + Returns \c true if the type is a built-in type. */ bool isBuiltinType(const QByteArray &type) { @@ -184,8 +184,8 @@ bool Generator::registerableMetaType(const QByteArray &propertyType) return false; } -/* returns true if name and qualifiedName refers to the same name. - * If qualified name is "A::B::C", it returns true for "C", "B::C" or "A::B::C" */ +/* returns \c true if name and qualifiedName refers to the same name. + * If qualified name is "A::B::C", it returns \c true for "C", "B::C" or "A::B::C" */ static bool qualifiedNameEquals(const QByteArray &qualifiedName, const QByteArray &name) { if (qualifiedName == name) diff --git a/src/tools/qdoc/codemarker.cpp b/src/tools/qdoc/codemarker.cpp index a1f0068f7d..99f2abfb2f 100644 --- a/src/tools/qdoc/codemarker.cpp +++ b/src/tools/qdoc/codemarker.cpp @@ -459,7 +459,7 @@ void CodeMarker::insert(FastSection &fastSection, } /*! - Returns true if \a node represents a reimplemented member + Returns \c true if \a node represents a reimplemented member function in the class of the FastSection \a fs. If it is a reimplemented function, then it is inserted into the reimplemented member map in \a fs. The test is performed diff --git a/src/tools/qdoc/codeparser.cpp b/src/tools/qdoc/codeparser.cpp index 8f57a691bf..a0ea561b28 100644 --- a/src/tools/qdoc/codeparser.cpp +++ b/src/tools/qdoc/codeparser.cpp @@ -383,7 +383,7 @@ void CodeParser::setLink(Node* node, Node::LinkType linkType, const QString& arg } /*! - Returns true if the file being parsed is a .h file. + Returns \c true if the file being parsed is a .h file. */ bool CodeParser::isParsingH() const { @@ -391,7 +391,7 @@ bool CodeParser::isParsingH() const } /*! - Returns true if the file being parsed is a .cpp file. + Returns \c true if the file being parsed is a .cpp file. */ bool CodeParser::isParsingCpp() const { @@ -399,7 +399,7 @@ bool CodeParser::isParsingCpp() const } /*! - Returns true if the file being parsed is a .qdoc file. + Returns \c true if the file being parsed is a .qdoc file. */ bool CodeParser::isParsingQdoc() const { diff --git a/src/tools/qdoc/config.cpp b/src/tools/qdoc/config.cpp index 0dd59fd214..cb9b8c3269 100644 --- a/src/tools/qdoc/config.cpp +++ b/src/tools/qdoc/config.cpp @@ -932,7 +932,7 @@ bool Config::removeDirContents(const QString& dir) } /*! - Returns true if \a ch is a letter, number, '_', '.', + Returns \c true if \a ch is a letter, number, '_', '.', '{', '}', or ','. */ bool Config::isMetaKeyChar(QChar ch) diff --git a/src/tools/qdoc/cppcodemarker.cpp b/src/tools/qdoc/cppcodemarker.cpp index a5408f7178..24bd654238 100644 --- a/src/tools/qdoc/cppcodemarker.cpp +++ b/src/tools/qdoc/cppcodemarker.cpp @@ -70,7 +70,7 @@ CppCodeMarker::~CppCodeMarker() } /*! - Returns true. + Returns \c true. */ bool CppCodeMarker::recognizeCode(const QString & /* code */) { @@ -78,7 +78,7 @@ bool CppCodeMarker::recognizeCode(const QString & /* code */) } /*! - Returns true if \a ext is any of a list of file extensions + Returns \c true if \a ext is any of a list of file extensions for the C++ language. */ bool CppCodeMarker::recognizeExtension(const QString& extension) @@ -101,7 +101,7 @@ bool CppCodeMarker::recognizeExtension(const QString& extension) } /*! - Returns true if \a lang is either "C" or "Cpp". + Returns \c true if \a lang is either "C" or "Cpp". */ bool CppCodeMarker::recognizeLanguage(const QString &lang) { diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp index de9573e99d..cec042f92b 100644 --- a/src/tools/qdoc/cppcodeparser.cpp +++ b/src/tools/qdoc/cppcodeparser.cpp @@ -688,7 +688,7 @@ bool CppCodeParser::splitQmlPropertyGroupArg(const QString& arg, Components. A is the QML equivalent of a C++ namespace. So this function splits \a arg on "::" and stores the parts in \a type, \a module, \a qmlType, - and \a name, and returns true. If any part other than + and \a name, and returns \c true. If any part other than \a module is not found, a qdoc warning is emitted and false is returned. diff --git a/src/tools/qdoc/ditaxmlgenerator.cpp b/src/tools/qdoc/ditaxmlgenerator.cpp index ed92fc4722..095e3c9d30 100644 --- a/src/tools/qdoc/ditaxmlgenerator.cpp +++ b/src/tools/qdoc/ditaxmlgenerator.cpp @@ -5342,7 +5342,7 @@ DitaXmlGenerator::generateInnerNode(InnerNode* node) } /*! - Returns true if \a format is "DITAXML" or "HTML" . + Returns \c true if \a format is "DITAXML" or "HTML" . */ bool DitaXmlGenerator::canHandleFormat(const QString& format) { @@ -5751,7 +5751,7 @@ void DitaXmlGenerator::writeTopicrefs(NodeMultiMap* nmm, const QString& navtitle found value. Otherwise if \a force is set, an empty element is written using the tag. - Returns true or false depending on whether it writes + Returns \c true or false depending on whether it writes an element using the tag \a t. \note If \a t is found in the metadata map, it is erased. @@ -5779,7 +5779,7 @@ bool DitaXmlGenerator::writeMetadataElement(const InnerNode* inner, value sfor the tag are found, the elements are written. Otherwise nothing is written. - Returns true or false depending on whether it writes + Returns \c true or false depending on whether it writes at least one element using the tag \a t. \note If \a t is found in the metadata map, it is erased. diff --git a/src/tools/qdoc/doc/qdoc-manual-markupcmds.qdoc b/src/tools/qdoc/doc/qdoc-manual-markupcmds.qdoc index 082d2b44e2..b41c450748 100644 --- a/src/tools/qdoc/doc/qdoc-manual-markupcmds.qdoc +++ b/src/tools/qdoc/doc/qdoc-manual-markupcmds.qdoc @@ -2908,7 +2908,7 @@ The active window is the window that contains the widget that has keyboard focus. - When popup windows are visible, this property is true + When popup windows are visible, this property is \c true for both the active window \e and the popup. \sa activateWindow(), QApplication::activeWindow() diff --git a/src/tools/qdoc/doc/qdoc-manual-topiccmds.qdoc b/src/tools/qdoc/doc/qdoc-manual-topiccmds.qdoc index 3253a052a1..68f3f9652b 100644 --- a/src/tools/qdoc/doc/qdoc-manual-topiccmds.qdoc +++ b/src/tools/qdoc/doc/qdoc-manual-topiccmds.qdoc @@ -475,8 +475,8 @@ / *! \fn bool QToolBar::isAreaAllowed(Qt::ToolBarArea area) const - Returns true if this toolbar is dockable in the given - \a area; otherwise returns false. + Returns \c true if this toolbar is dockable in the given + \a area; otherwise returns \c false. * / \endcode @@ -488,8 +488,8 @@ \endraw - Returns true if this toolbar is dockable in the given - \a area; otherwise returns false. + Returns \c true if this toolbar is dockable in the given + \a area; otherwise returns \c false. \endquotation See also \l {overload-command} {\\overload}. @@ -1093,7 +1093,7 @@ \code / *! \qmlattachedproperty bool ListView::isCurrentItem - This attached property is true if this delegate is the current + This attached property is \c true if this delegate is the current item; otherwise false. It is attached to each instance of the delegate. diff --git a/src/tools/qdoc/jscodemarker.cpp b/src/tools/qdoc/jscodemarker.cpp index 95b2866b03..c56dd8eb20 100644 --- a/src/tools/qdoc/jscodemarker.cpp +++ b/src/tools/qdoc/jscodemarker.cpp @@ -66,7 +66,7 @@ JsCodeMarker::~JsCodeMarker() } /*! - Returns true if the \a code is recognized by the parser. + Returns \c true if the \a code is recognized by the parser. */ bool JsCodeMarker::recognizeCode(const QString &code) { @@ -82,7 +82,7 @@ bool JsCodeMarker::recognizeCode(const QString &code) } /*! - Returns true if \a ext is any of a list of file extensions + Returns \c true if \a ext is any of a list of file extensions for the QML language. */ bool JsCodeMarker::recognizeExtension(const QString &ext) @@ -91,7 +91,7 @@ bool JsCodeMarker::recognizeExtension(const QString &ext) } /*! - Returns true if the \a language is recognized. We recognize JavaScript, + Returns \c true if the \a language is recognized. We recognize JavaScript, ECMAScript and JSON. */ bool JsCodeMarker::recognizeLanguage(const QString &language) diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp index 64a635115e..cdecb59626 100644 --- a/src/tools/qdoc/location.cpp +++ b/src/tools/qdoc/location.cpp @@ -204,7 +204,7 @@ void Location::pop() /*! \fn bool Location::isEmpty() const - Returns true if there is no file name set yet; returns false + Returns \c true if there is no file name set yet; returns \c false otherwise. The functions filePath(), lineNo() and columnNo() must not be called on an empty Location object. */ diff --git a/src/tools/qdoc/node.cpp b/src/tools/qdoc/node.cpp index e854f101f6..75896e2718 100644 --- a/src/tools/qdoc/node.cpp +++ b/src/tools/qdoc/node.cpp @@ -625,7 +625,7 @@ ClassNode* Node::declarativeCppNode() } /*! - Returns true if the node's status is Internal, or if its + Returns \c true if the node's status is Internal, or if its parent is a class with internal status. */ bool Node::isInternal() const @@ -654,7 +654,7 @@ InnerNode::~InnerNode() } /*! - Returns true if this node's members coolection is not empty. + Returns \c true if this node's members coolection is not empty. */ bool InnerNode::hasMembers() const { @@ -672,7 +672,7 @@ void InnerNode::addMember(Node* node) } /*! - Returns true if this node's members collection contains at + Returns \c true if this node's members collection contains at least one namespace node. */ bool InnerNode::hasNamespaces() const @@ -689,7 +689,7 @@ bool InnerNode::hasNamespaces() const } /*! - Returns true if this node's members collection contains at + Returns \c true if this node's members collection contains at least one class node. */ bool InnerNode::hasClasses() const @@ -816,8 +816,8 @@ void InnerNode::findNodes(const QString& name, QList& n) not a recearsive search. If \a qml is true, only match a node for which node->isQmlNode() - returns true. If \a qml is false, only match a node for which - node->isQmlNode() returns false. + returns \c true. If \a qml is false, only match a node for which + node->isQmlNode() returns \c false. */ Node* InnerNode::findChildNodeByName(const QString& name, bool qml) { @@ -1078,11 +1078,11 @@ void InnerNode::deleteChildren() } /*! \fn bool InnerNode::isInnerNode() const - Returns true because this is an inner node. + Returns \c true because this is an inner node. */ /*! - Returns true if the node is a class node or a QML type node + Returns \c true if the node is a class node or a QML type node that is marked as being a wrapper class or QML type, or if it is a member of a wrapper class or type. */ @@ -1101,8 +1101,8 @@ const Node *InnerNode::findChildNodeByName(const QString& name) const /*! If \a qml is true, only match a node for which node->isQmlNode() - returns true. If \a qml is false, only match a node for which - node->isQmlNode() returns false. + returns \c true. If \a qml is false, only match a node for which + node->isQmlNode() returns \c false. */ const Node* InnerNode::findChildNodeByName(const QString& name, bool qml) const { @@ -1395,7 +1395,7 @@ QmlPropertyNode* InnerNode::hasQmlProperty(const QString& n) const */ /*! \fn bool LeafNode::isInnerNode() const - Returns false because this is a LeafNode. + Returns \c false because this is a LeafNode. */ /*! @@ -2329,7 +2329,7 @@ QmlPropertyNode::QmlPropertyNode(InnerNode* parent, } /*! - Returns true if a QML property or attached property is + Returns \c true if a QML property or attached property is not read-only. The algorithm for figuring this out is long amd tedious and almost certainly will break. It currently doesn't work for the qmlproperty: @@ -2474,7 +2474,7 @@ NameCollisionNode::~NameCollisionNode() */ /*! - Returns true if this collision node's current node is a QML node. + Returns \c true if this collision node's current node is a QML node. */ bool NameCollisionNode::isQmlNode() const { diff --git a/src/tools/qdoc/qdocindexfiles.cpp b/src/tools/qdoc/qdocindexfiles.cpp index 4181478274..7424971b13 100644 --- a/src/tools/qdoc/qdocindexfiles.cpp +++ b/src/tools/qdoc/qdocindexfiles.cpp @@ -1162,7 +1162,7 @@ bool QDocIndexFiles::generateIndexSection(QXmlStreamWriter& writer, } /*! - Returns true if the node \a n1 is less than node \a n2. The + Returns \c true if the node \a n1 is less than node \a n2. The comparison is performed by comparing properties of the nodes in order of increasing complexity. */ diff --git a/src/tools/qdoc/qmlcodemarker.cpp b/src/tools/qdoc/qmlcodemarker.cpp index 35c0953d9f..5e4e1d4b40 100644 --- a/src/tools/qdoc/qmlcodemarker.cpp +++ b/src/tools/qdoc/qmlcodemarker.cpp @@ -67,7 +67,7 @@ QmlCodeMarker::~QmlCodeMarker() } /*! - Returns true if the \a code is recognized by the parser. + Returns \c true if the \a code is recognized by the parser. */ bool QmlCodeMarker::recognizeCode(const QString &code) { @@ -83,7 +83,7 @@ bool QmlCodeMarker::recognizeCode(const QString &code) } /*! - Returns true if \a ext is any of a list of file extensions + Returns \c true if \a ext is any of a list of file extensions for the QML language. */ bool QmlCodeMarker::recognizeExtension(const QString &ext) @@ -92,7 +92,7 @@ bool QmlCodeMarker::recognizeExtension(const QString &ext) } /*! - Returns true if the \a language is recognized. Only "QML" is + Returns \c true if the \a language is recognized. Only "QML" is recognized by this marker. */ bool QmlCodeMarker::recognizeLanguage(const QString &language) diff --git a/src/tools/qdoc/qmlvisitor.cpp b/src/tools/qdoc/qmlvisitor.cpp index c049857717..323c312eb5 100644 --- a/src/tools/qdoc/qmlvisitor.cpp +++ b/src/tools/qdoc/qmlvisitor.cpp @@ -311,7 +311,7 @@ bool QmlDocVisitor::applyDocumentation(QQmlJS::AST::SourceLocation location, Nod C++ namespace. So this function splits \a arg on "::" and stores the parts in the \e {type}, \e {module}, \e {component}, and \a {name}, fields of \a qpa. If it - is successful, it returns true. If not enough parts + is successful, it returns \c true. If not enough parts are found, a qdoc warning is emitted and false is returned. */ diff --git a/src/tools/qdoc/tokenizer.cpp b/src/tools/qdoc/tokenizer.cpp index e1ca28eef8..dc934a6473 100644 --- a/src/tools/qdoc/tokenizer.cpp +++ b/src/tools/qdoc/tokenizer.cpp @@ -715,7 +715,7 @@ bool Tokenizer::popSkipping() } /* - Returns true if the condition evaluates as true, otherwise false. The + Returns \c true if the condition evaluates as true, otherwise false. The condition is represented by a string. Unsophisticated parsing techniques are used. The preprocessing method could be named StriNg-Oriented PreProcessing, as SNOBOL stands for StriNg-Oriented symBOlic Language. diff --git a/src/tools/qdoc/yyindent.cpp b/src/tools/qdoc/yyindent.cpp index 08ac0dfe3b..9d7a66a55a 100644 --- a/src/tools/qdoc/yyindent.cpp +++ b/src/tools/qdoc/yyindent.cpp @@ -148,8 +148,8 @@ static QChar firstNonWhiteSpace( const QString& t ) } /* - Returns true if string t is made only of white space; otherwise - returns false. + Returns \c true if string t is made only of white space; otherwise + returns \c false. */ static bool isOnlyWhiteSpace( const QString& t ) { @@ -283,8 +283,8 @@ static inline QChar lastParen( const QString& t ) } /* - Returns true if typedIn the same as okayCh or is null; otherwise - returns false. + Returns \c true if typedIn the same as okayCh or is null; otherwise + returns \c false. */ static inline bool okay( QChar typedIn, QChar okayCh ) { @@ -456,9 +456,9 @@ static void startLinizer() } /* - Returns true if the start of the bottom line of yyProgram (and + Returns \c true if the start of the bottom line of yyProgram (and potentially the whole line) is part of a C-style comment; - otherwise returns false. + otherwise returns \c false. */ static bool bottomLineStartsInCComment() { @@ -526,15 +526,15 @@ static int indentWhenBottomLineStartsInCComment() /* A function called match...() modifies the linizer state. If it - returns true, yyLine is the top line of the matched construct; + returns \c true, yyLine is the top line of the matched construct; otherwise, the linizer is left in an unknown state. A function called is...() keeps the linizer state intact. */ /* - Returns true if the current line (and upwards) forms a braceless - control statement; otherwise returns false. + Returns \c true if the current line (and upwards) forms a braceless + control statement; otherwise returns \c false. The first line of the following example is a "braceless control statement": @@ -614,7 +614,7 @@ static bool matchBracelessControlStatement() } /* - Returns true if yyLine is an unfinished line; otherwise returns + Returns \c true if yyLine is an unfinished line; otherwise returns false. In many places we'll use the terms "standalone line", "unfinished @@ -669,7 +669,7 @@ static bool isUnfinishedLine() } /* - Returns true if yyLine is a continuation line; otherwise returns + Returns \c true if yyLine is a continuation line; otherwise returns false. */ static bool isContinuationLine() diff --git a/src/widgets/dialogs/qcolordialog.cpp b/src/widgets/dialogs/qcolordialog.cpp index 82f70f323b..d20725fc89 100644 --- a/src/widgets/dialogs/qcolordialog.cpp +++ b/src/widgets/dialogs/qcolordialog.cpp @@ -1889,7 +1889,7 @@ void QColorDialog::setOption(ColorDialogOption option, bool on) /*! \since 4.5 - Returns true if the given \a option is enabled; otherwise, returns + Returns \c true if the given \a option is enabled; otherwise, returns false. \sa options, setOption() diff --git a/src/widgets/dialogs/qdialog.cpp b/src/widgets/dialogs/qdialog.cpp index e1097dd1bb..af352e45c6 100644 --- a/src/widgets/dialogs/qdialog.cpp +++ b/src/widgets/dialogs/qdialog.cpp @@ -1041,7 +1041,7 @@ QSize QDialog::minimumSizeHint() const \property QDialog::modal \brief whether show() should pop up the dialog as modal or modeless - By default, this property is false and show() pops up the dialog + By default, this property is \c false and show() pops up the dialog as modeless. Setting his property to true is equivalent to setting QWidget::windowModality to Qt::ApplicationModal. diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp index 62cec34b2b..b688dfb0a4 100644 --- a/src/widgets/dialogs/qfiledialog.cpp +++ b/src/widgets/dialogs/qfiledialog.cpp @@ -490,7 +490,7 @@ QByteArray QFileDialog::saveState() const Typically this is used in conjunction with QSettings to restore the size from a past session. - Returns false if there are errors + Returns \c false if there are errors */ bool QFileDialog::restoreState(const QByteArray &state) { @@ -751,7 +751,7 @@ void QFileDialog::setOption(Option option, bool on) /*! \since 4.5 - Returns true if the given \a option is enabled; otherwise, returns + Returns \c true if the given \a option is enabled; otherwise, returns false. \sa options, setOption() @@ -1287,7 +1287,7 @@ void QFileDialog::setNameFilter(const QString &filter) \brief This property holds whether the filter details is shown or not. \since 4.4 - When this property is true (the default), the filter details are shown + When this property is \c true (the default), the filter details are shown in the combo box. When the property is set to false, these are hidden. Use setOption(HideNameFilterDetails, !\e enabled) or @@ -3567,7 +3567,7 @@ void QFileDialogPrivate::_q_nativeEnterDirectory(const QUrl &directory) For the list and tree view watch keys to goto parent and back in the history - returns true if handled + returns \c true if handled */ bool QFileDialogPrivate::itemViewKeyboardEvent(QKeyEvent *event) { diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp index c86c7ff931..6330d529fb 100644 --- a/src/widgets/dialogs/qfilesystemmodel.cpp +++ b/src/widgets/dialogs/qfilesystemmodel.cpp @@ -482,8 +482,8 @@ void QFileSystemModel::timerEvent(QTimerEvent *event) } /*! - Returns true if the model item \a index represents a directory; - otherwise returns false. + Returns \c true if the model item \a index represents a directory; + otherwise returns \c false. */ bool QFileSystemModel::isDir(const QModelIndex &index) const { @@ -1531,7 +1531,7 @@ QDir::Filters QFileSystemModel::filter() const This is only relevant on Windows. - By default, this property is true. + By default, this property is \c true. */ void QFileSystemModel::setResolveSymlinks(bool enable) { @@ -1558,7 +1558,7 @@ bool QFileSystemModel::resolveSymlinks() const If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories. - This property is true by default + This property is \c true by default */ void QFileSystemModel::setReadOnly(bool enable) { @@ -1576,7 +1576,7 @@ bool QFileSystemModel::isReadOnly() const \property QFileSystemModel::nameFilterDisables \brief Whether files that don't pass the name filter are hidden or disabled - This property is true by default + This property is \c true by default */ void QFileSystemModel::setNameFilterDisables(bool enable) { @@ -1971,7 +1971,7 @@ void QFileSystemModelPrivate::init() /*! \internal - Returns false if node doesn't pass the filters otherwise true + Returns \c false if node doesn't pass the filters otherwise true QDir::Modified is not supported QDir::Drives is not supported @@ -2020,7 +2020,7 @@ bool QFileSystemModelPrivate::filtersAcceptsNode(const QFileSystemNode *node) co /* \internal - Returns true if node passes the name filters and should be visible. + Returns \c true if node passes the name filters and should be visible. */ bool QFileSystemModelPrivate::passNameFilters(const QFileSystemNode *node) const { diff --git a/src/widgets/dialogs/qfontdialog.cpp b/src/widgets/dialogs/qfontdialog.cpp index b989ea7c86..d908a683a9 100644 --- a/src/widgets/dialogs/qfontdialog.cpp +++ b/src/widgets/dialogs/qfontdialog.cpp @@ -885,7 +885,7 @@ void QFontDialog::setOption(FontDialogOption option, bool on) } /*! - Returns true if the given \a option is enabled; otherwise, returns + Returns \c true if the given \a option is enabled; otherwise, returns false. \sa options, setOption() diff --git a/src/widgets/dialogs/qinputdialog.cpp b/src/widgets/dialogs/qinputdialog.cpp index c1f8deb4eb..4eec2eb3e2 100644 --- a/src/widgets/dialogs/qinputdialog.cpp +++ b/src/widgets/dialogs/qinputdialog.cpp @@ -629,7 +629,7 @@ void QInputDialog::setOption(InputDialogOption option, bool on) } /*! - Returns true if the given \a option is enabled; otherwise, returns + Returns \c true if the given \a option is enabled; otherwise, returns false. \sa options, setOption() diff --git a/src/widgets/dialogs/qwizard.cpp b/src/widgets/dialogs/qwizard.cpp index 02d4d1ca27..02ad5a3be5 100644 --- a/src/widgets/dialogs/qwizard.cpp +++ b/src/widgets/dialogs/qwizard.cpp @@ -1963,7 +1963,7 @@ void QWizardAntiFlickerWidget::paintEvent(QPaintEvent *) Another way is to reimplement validateCurrentPage() (or QWizardPage::validatePage()) to perform some last-minute validation (and show an error message if the user has entered - incomplete or invalid information). If the function returns true, + incomplete or invalid information). If the function returns \c true, the next page is shown (or the wizard finishes); otherwise, the current page stays up. @@ -2331,8 +2331,8 @@ QWizardPage *QWizard::page(int theid) const /*! \fn bool QWizard::hasVisitedPage(int id) const - Returns true if the page history contains page \a id; otherwise, - returns false. + Returns \c true if the page history contains page \a id; otherwise, + returns \c false. Pressing \uicontrol Back marks the current page as "unvisited" again. @@ -2544,7 +2544,7 @@ void QWizard::setOption(WizardOption option, bool on) } /*! - Returns true if the given \a option is enabled; otherwise, returns + Returns \c true if the given \a option is enabled; otherwise, returns false. \sa options, setOption(), setWizardStyle() @@ -3276,7 +3276,7 @@ void QWizard::cleanupPage(int theid) /*! This virtual function is called by QWizard when the user clicks \uicontrol Next or \uicontrol Finish to perform some last-minute validation. - If it returns true, the next page is shown (or the wizard + If it returns \c true, the next page is shown (or the wizard finishes); otherwise, the current page stays up. The default implementation calls QWizardPage::validatePage() on @@ -3363,7 +3363,7 @@ int QWizard::nextId() const \endlist Normally, the \uicontrol Next button and the \uicontrol Finish button of a - wizard are mutually exclusive. If isFinalPage() returns true, \uicontrol + wizard are mutually exclusive. If isFinalPage() returns \c true, \uicontrol Finish is available; otherwise, \uicontrol Next is available. By default, isFinalPage() is true only when nextId() returns -1. If you want to show \uicontrol Next and \uicontrol Final simultaneously for a @@ -3566,10 +3566,10 @@ void QWizardPage::cleanupPage() /*! This virtual function is called by QWizard::validateCurrentPage() when the user clicks \uicontrol Next or \uicontrol Finish to perform some - last-minute validation. If it returns true, the next page is shown + last-minute validation. If it returns \c true, the next page is shown (or the wizard finishes); otherwise, the current page stays up. - The default implementation returns true. + The default implementation returns \c true. When possible, it is usually better style to disable the \uicontrol Next or \uicontrol Finish button (by specifying \l{mandatory fields} or @@ -3587,8 +3587,8 @@ bool QWizardPage::validatePage() the \uicontrol Next or \uicontrol Finish button should be enabled or disabled. - The default implementation returns true if all \l{mandatory - fields} are filled; otherwise, it returns false. + The default implementation returns \c true if all \l{mandatory + fields} are filled; otherwise, it returns \c false. If you reimplement this function, make sure to emit completeChanged(), from the rest of your implementation, whenever the value of isComplete() @@ -3634,12 +3634,12 @@ bool QWizardPage::isComplete() const /*! Explicitly sets this page to be final if \a finalPage is true. - After calling setFinalPage(true), isFinalPage() returns true and the \uicontrol + After calling setFinalPage(true), isFinalPage() returns \c true and the \uicontrol Finish button is visible (and enabled if isComplete() returns true). - After calling setFinalPage(false), isFinalPage() returns true if - nextId() returns -1; otherwise, it returns false. + After calling setFinalPage(false), isFinalPage() returns \c true if + nextId() returns -1; otherwise, it returns \c false. \sa isComplete(), QWizard::HaveFinishButtonOnEarlyPages */ @@ -3656,8 +3656,8 @@ void QWizardPage::setFinalPage(bool finalPage) This function is called by QWizard to determine whether the \uicontrol Finish button should be shown for this page or not. - By default, it returns true if there is no next page - (i.e., nextId() returns -1); otherwise, it returns false. + By default, it returns \c true if there is no next page + (i.e., nextId() returns -1); otherwise, it returns \c false. By explicitly calling setFinalPage(true), you can let the user perform an "early finish". @@ -3703,7 +3703,7 @@ void QWizardPage::setCommitPage(bool commitPage) } /*! - Returns true if this page is a commit page; otherwise returns false. + Returns \c true if this page is a commit page; otherwise returns \c false. \sa setCommitPage() */ diff --git a/src/widgets/doc/src/graphicsview.qdoc b/src/widgets/doc/src/graphicsview.qdoc index cc81d51a8f..148b4ea47d 100644 --- a/src/widgets/doc/src/graphicsview.qdoc +++ b/src/widgets/doc/src/graphicsview.qdoc @@ -222,7 +222,7 @@ transformations for you. This makes it very easy to implement custom items. For example, if you receive a mouse press or a drag enter event, the event position is given in item coordinates. The - QGraphicsItem::contains() virtual function, which returns true if a + QGraphicsItem::contains() virtual function, which returns \c true if a certain point is inside your item, and false otherwise, takes a point argument in item coordinates. Similarly, an item's bounding rect and shape are in item coordinates. diff --git a/src/widgets/doc/src/model-view-programming.qdoc b/src/widgets/doc/src/model-view-programming.qdoc index d0d925e74a..3d3b6da819 100644 --- a/src/widgets/doc/src/model-view-programming.qdoc +++ b/src/widgets/doc/src/model-view-programming.qdoc @@ -2279,7 +2279,7 @@ \section2 Performance optimization for large amounts of data The \l{QAbstractItemModel::}{canFetchMore()} function checks if the parent - has more data available and returns true or false accordingly. The + has more data available and returns \c true or false accordingly. The \l{QAbstractItemModel::}{fetchMore()} function fetches data based on the parent specified. Both these functions can be combined, for example, in a database query involving incremental data to populate a QAbstractItemModel. diff --git a/src/widgets/effects/qgraphicseffect.cpp b/src/widgets/effects/qgraphicseffect.cpp index 420392c0fb..390c4e96e5 100644 --- a/src/widgets/effects/qgraphicseffect.cpp +++ b/src/widgets/effects/qgraphicseffect.cpp @@ -267,12 +267,12 @@ void QGraphicsEffectSource::update() } /*! - Returns true if the source effectively is a pixmap, e.g., a + Returns \c true if the source effectively is a pixmap, e.g., a QGraphicsPixmapItem. This function is useful for optimization purposes. For instance, there's no point in drawing the source in device coordinates to avoid pixmap scaling - if this function returns true - the source pixmap will be scaled anyways. + if this function returns \c true - the source pixmap will be scaled anyways. */ bool QGraphicsEffectSource::isPixmap() const { @@ -280,12 +280,12 @@ bool QGraphicsEffectSource::isPixmap() const } /*! - Returns true if the source effectively is a pixmap, e.g., a + Returns \c true if the source effectively is a pixmap, e.g., a QGraphicsPixmapItem. This function is useful for optimization purposes. For instance, there's no point in drawing the source in device coordinates to avoid pixmap scaling - if this function returns true - the source pixmap will be scaled anyways. + if this function returns \c true - the source pixmap will be scaled anyways. */ bool QGraphicsEffect::sourceIsPixmap() const { diff --git a/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp b/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp index 93fb968d69..27a75655a0 100644 --- a/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp @@ -819,7 +819,7 @@ static AnchorData *createSequence(Graph *graph, 3. Done When creating the parallel anchors, the algorithm might identify unfeasible situations. In this - case the simplification process stops and returns false. Otherwise returns true. + case the simplification process stops and returns \c false. Otherwise returns \c true. */ bool QGraphicsAnchorLayoutPrivate::simplifyGraph(Orientation orientation) { @@ -1014,7 +1014,7 @@ bool QGraphicsAnchorLayoutPrivate::simplifyVertices(Orientation orientation) /*! \internal - One iteration of the simplification algorithm. Returns true if another iteration is needed. + One iteration of the simplification algorithm. Returns \c true if another iteration is needed. The algorithm walks the graph in depth-first order, and only collects vertices that has two edges connected to it. If the vertex does not have two edges or if it is a layout edge, it @@ -2967,8 +2967,8 @@ bool QGraphicsAnchorLayoutPrivate::solvePreferred(const QList QGraphicsItem::childItems() const /*! \since 4.4 - Returns true if this item is a widget (i.e., QGraphicsWidget); otherwise, - returns false. + Returns \c true if this item is a widget (i.e., QGraphicsWidget); otherwise, + returns \c false. */ bool QGraphicsItem::isWidget() const { @@ -1719,7 +1719,7 @@ bool QGraphicsItem::isWidget() const /*! \since 4.4 - Returns true if the item is a QGraphicsWidget window, otherwise returns + Returns \c true if the item is a QGraphicsWidget window, otherwise returns false. \sa QGraphicsWidget::windowFlags() @@ -1731,7 +1731,7 @@ bool QGraphicsItem::isWindow() const /*! \since 4.6 - Returns true if the item is a panel; otherwise returns false. + Returns \c true if the item is a panel; otherwise returns \c false. \sa QGraphicsItem::panel(), ItemIsPanel */ @@ -2021,11 +2021,11 @@ void QGraphicsItem::setPanelModality(PanelModality panelModality) /*! \since 4.6 - Returns true if this item is blocked by a modal panel, false otherwise. If \a blockingPanel is + Returns \c true if this item is blocked by a modal panel, false otherwise. If \a blockingPanel is non-zero, \a blockingPanel will be set to the modal panel that is blocking this item. If this item is not blocked, \a blockingPanel will not be set by this function. - This function always returns false for items not in a scene. + This function always returns \c false for items not in a scene. \sa panelModality(), setPanelModality(), PanelModality */ @@ -2156,7 +2156,7 @@ void QGraphicsItem::setCursor(const QCursor &cursor) } /*! - Returns true if this item has a cursor set; otherwise, false is returned. + Returns \c true if this item has a cursor set; otherwise, false is returned. By default, items don't have any cursor set. cursor() will return a standard pointing arrow cursor. @@ -2192,7 +2192,7 @@ void QGraphicsItem::unsetCursor() #endif // QT_NO_CURSOR /*! - Returns true if the item is visible; otherwise, false is returned. + Returns \c true if the item is visible; otherwise, false is returned. Note that the item's general visibility is unrelated to whether or not it is actually being visualized by a QGraphicsView. @@ -2206,7 +2206,7 @@ bool QGraphicsItem::isVisible() const /*! \since 4.4 - Returns true if the item is visible to \a parent; otherwise, false is + Returns \c true if the item is visible to \a parent; otherwise, false is returned. \a parent can be 0, in which case this function will return whether the item is visible to the scene or not. @@ -2448,7 +2448,7 @@ void QGraphicsItem::setVisible(bool visible) */ /*! - Returns true if the item is enabled; otherwise, false is returned. + Returns \c true if the item is enabled; otherwise, false is returned. \sa setEnabled() */ @@ -2552,7 +2552,7 @@ void QGraphicsItem::setEnabled(bool enabled) } /*! - Returns true if this item is selected; otherwise, false is returned. + Returns \c true if this item is selected; otherwise, false is returned. Items that are in a group inherit the group's selected state. @@ -2888,8 +2888,8 @@ QRectF QGraphicsItemPrivate::sceneEffectiveBoundingRect() const } /*! - Returns true if this item can accept drag and drop events; otherwise, - returns false. By default, items do not accept drag and drop events; items + Returns \c true if this item can accept drag and drop events; otherwise, + returns \c false. By default, items do not accept drag and drop events; items are transparent to drag and drop. \sa setAcceptDrops() @@ -2956,8 +2956,8 @@ void QGraphicsItem::setAcceptedMouseButtons(Qt::MouseButtons buttons) /*! \since 4.4 - Returns true if an item accepts hover events - (QGraphicsSceneHoverEvent); otherwise, returns false. By default, + Returns \c true if an item accepts hover events + (QGraphicsSceneHoverEvent); otherwise, returns \c false. By default, items do not accept hover events. \sa setAcceptedMouseButtons() @@ -3025,8 +3025,8 @@ void QGraphicsItem::setAcceptHoverEvents(bool enabled) /*! \since 4.6 - Returns true if an item accepts \l{QTouchEvent}{touch events}; - otherwise, returns false. By default, items do not accept touch events. + Returns \c true if an item accepts \l{QTouchEvent}{touch events}; + otherwise, returns \c false. By default, items do not accept touch events. \sa setAcceptTouchEvents() */ @@ -3056,7 +3056,7 @@ void QGraphicsItem::setAcceptTouchEvents(bool enabled) /*! \since 4.6 - Returns true if this item filters child events (i.e., all events + Returns \c true if this item filters child events (i.e., all events intended for any of its children are instead sent to this item); otherwise, false is returned. @@ -3092,7 +3092,7 @@ void QGraphicsItem::setFiltersChildEvents(bool enabled) /*! \obsolete - Returns true if this item handles child events (i.e., all events + Returns \c true if this item handles child events (i.e., all events intended for any of its children are instead sent to this item); otherwise, false is returned. @@ -3141,7 +3141,7 @@ void QGraphicsItem::setHandlesChildEvents(bool enabled) } /*! \since 4.6 - Returns true if this item is active; otherwise returns false. + Returns \c true if this item is active; otherwise returns \c false. An item can only be active if the scene is active. An item is active if it is, or is a descendent of, an active panel. Items in non-active @@ -3203,8 +3203,8 @@ void QGraphicsItem::setActive(bool active) } /*! - Returns true if this item is active, and it or its \l{focusProxy()}{focus - proxy} has keyboard input focus; otherwise, returns false. + Returns \c true if this item is active, and it or its \l{focusProxy()}{focus + proxy} has keyboard input focus; otherwise, returns \c false. \sa focusItem(), setFocus(), QGraphicsScene::setFocusItem(), isActive() */ @@ -4839,7 +4839,7 @@ QPainterPath QGraphicsItem::shape() const } /*! - Returns true if this item is clipped. An item is clipped if it has either + Returns \c true if this item is clipped. An item is clipped if it has either set the \l ItemClipsToShape flag, or if it or any of its ancestors has set the \l ItemClipsChildrenToShape flag. @@ -4922,7 +4922,7 @@ QPainterPath QGraphicsItem::clipPath() const } /*! - Returns true if this item contains \a point, which is in local + Returns \c true if this item contains \a point, which is in local coordinates; otherwise, false is returned. It is most often called from QGraphicsView to determine what item is under the cursor, and for that reason, the implementation of this function should be as light-weight as @@ -4940,8 +4940,8 @@ bool QGraphicsItem::contains(const QPointF &point) const /*! - Returns true if this item collides with \a other; otherwise - returns false. + Returns \c true if this item collides with \a other; otherwise + returns \c false. The \a mode is applied to \a other, and the resulting shape or bounding rectangle is then compared to this item's shape. The @@ -4997,7 +4997,7 @@ bool QGraphicsItem::collidesWithItem(const QGraphicsItem *other, Qt::ItemSelecti } /*! - Returns true if this item collides with \a path. + Returns \c true if this item collides with \a path. The collision is determined by \a mode. The default value for \a mode is Qt::IntersectsItemShape; \a path collides with this item if it either @@ -5067,7 +5067,7 @@ QList QGraphicsItem::collidingItems(Qt::ItemSelectionMode mode) Item obscurity helper function. - Returns true if the subrect \a rect of \a item's bounding rect is obscured + Returns \c true if the subrect \a rect of \a item's bounding rect is obscured by \a other (i.e., \a other's opaque area covers \a item's \a rect completely. \a other is assumed to already be "on top of" \a item wrt. stacking order. @@ -5083,7 +5083,7 @@ static bool qt_QGraphicsItem_isObscured(const QGraphicsItem *item, \overload \since 4.3 - Returns true if \a rect is completely obscured by the opaque shape of any + Returns \c true if \a rect is completely obscured by the opaque shape of any of colliding items above it (i.e., with a higher Z value than this item). \sa opaqueArea() @@ -5115,7 +5115,7 @@ bool QGraphicsItem::isObscured(const QRectF &rect) const */ /*! - Returns true if this item's bounding rect is completely obscured by the + Returns \c true if this item's bounding rect is completely obscured by the opaque shape of \a item. The base implementation maps \a item's opaqueArea() to this item's @@ -5317,7 +5317,7 @@ void QGraphicsItem::setBoundingRegionGranularity(qreal granularity) /*! \internal - Returns true if we can discard an update request; otherwise false. + Returns \c true if we can discard an update request; otherwise false. */ bool QGraphicsItemPrivate::discardUpdateRequest(bool ignoreVisibleBit, bool ignoreDirtyBit, bool ignoreOpacity) const @@ -5646,7 +5646,7 @@ bool QGraphicsItemPrivate::isProxyWidget() const As a side effect of the item being repainted, other items that overlap the area \a rect may also be repainted. - If the item is invisible (i.e., isVisible() returns false), this function + If the item is invisible (i.e., isVisible() returns \c false), this function does nothing. \sa paint(), boundingRect() @@ -6404,7 +6404,7 @@ QPainterPath QGraphicsItem::mapFromScene(const QPainterPath &path) const } /*! - Returns true if this item is an ancestor of \a child (i.e., if this item + Returns \c true if this item is an ancestor of \a child (i.e., if this item is \a child's parent, or one of \a child's parent's ancestors). \sa parentItem() @@ -6458,7 +6458,7 @@ QGraphicsItem *QGraphicsItem::commonAncestorItem(const QGraphicsItem *other) con /*! \since 4,4 - Returns true if this item is currently under the mouse cursor in one of + Returns \c true if this item is currently under the mouse cursor in one of the views; otherwise, false is returned. \sa QGraphicsScene::views(), QCursor::pos() @@ -6627,7 +6627,7 @@ bool QGraphicsItem::sceneEventFilter(QGraphicsItem *watched, QEvent *event) mousePressEvent(), mouseReleaseEvent(), mouseMoveEvent(), and mouseDoubleClickEvent(). - Returns true if the event was recognized and handled; otherwise, (e.g., if + Returns \c true if the event was recognized and handled; otherwise, (e.g., if the event type was not recognized,) false is returned. \a event is the intercepted event. @@ -7944,7 +7944,7 @@ void QGraphicsItemPrivate::resetHeight() This property is declared in QGraphicsItem. - By default, this property is true. + By default, this property is \c true. \sa QGraphicsItem::isEnabled(), QGraphicsItem::setEnabled() */ @@ -7963,7 +7963,7 @@ void QGraphicsItemPrivate::resetHeight() This property is declared in QGraphicsItem. - By default, this property is true. + By default, this property is \c true. \sa QGraphicsItem::isVisible(), QGraphicsItem::setVisible() */ @@ -10510,7 +10510,7 @@ void QGraphicsTextItem::setTabChangesFocus(bool b) /*! \since 4.5 - Returns true if the \uicontrol Tab key will cause the widget to change focus; + Returns \c true if the \uicontrol Tab key will cause the widget to change focus; otherwise, false is returned. By default, this behavior is disabled, and this function will return false. diff --git a/src/widgets/graphicsview/qgraphicsitem_p.h b/src/widgets/graphicsview/qgraphicsitem_p.h index d80df7c4ad..3968d89a13 100644 --- a/src/widgets/graphicsview/qgraphicsitem_p.h +++ b/src/widgets/graphicsview/qgraphicsitem_p.h @@ -720,7 +720,7 @@ public: #endif //QT_NO_GRAPHICSEFFECT /*! - Returns true if \a item1 is on top of \a item2. + Returns \c true if \a item1 is on top of \a item2. The items don't need to be siblings. \internal @@ -774,7 +774,7 @@ inline bool qt_closestItemFirst(const QGraphicsItem *item1, const QGraphicsItem } /*! - Returns true if \a item2 is on top of \a item1. + Returns \c true if \a item2 is on top of \a item1. The items don't need to be siblings. \internal diff --git a/src/widgets/graphicsview/qgraphicslayout.cpp b/src/widgets/graphicsview/qgraphicslayout.cpp index f7c89cf376..f2ff1fa562 100644 --- a/src/widgets/graphicsview/qgraphicslayout.cpp +++ b/src/widgets/graphicsview/qgraphicslayout.cpp @@ -291,8 +291,8 @@ void QGraphicsLayout::activate() } /*! - Returns true if the layout is currently being activated; otherwise, - returns false. If the layout is being activated, this means that it is + Returns \c true if the layout is currently being activated; otherwise, + returns \c false. If the layout is being activated, this means that it is currently in the process of rearranging its items (i.e., the activate() function has been called, and has not yet returned). @@ -515,7 +515,7 @@ void QGraphicsLayout::setInstantInvalidatePropagation(bool enable) \since 4.8 \sa setInstantInvalidatePropagation() - returns true if the complete widget/layout hierarchy is rearranged in one go. + returns \c true if the complete widget/layout hierarchy is rearranged in one go. */ bool QGraphicsLayout::instantInvalidatePropagation() { diff --git a/src/widgets/graphicsview/qgraphicslayoutitem.cpp b/src/widgets/graphicsview/qgraphicslayoutitem.cpp index 78b75e08d1..2eaac6a57e 100644 --- a/src/widgets/graphicsview/qgraphicslayoutitem.cpp +++ b/src/widgets/graphicsview/qgraphicslayoutitem.cpp @@ -374,7 +374,7 @@ bool QGraphicsLayoutItemPrivate::hasWidthForHeight() const parentLayoutItem() function returns a pointer to the item's layoutItem parent. If the item's parent is 0 or if the parent does not inherit from QGraphicsItem, the parentLayoutItem() function then returns 0. - isLayout() returns true if the QGraphicsLayoutItem subclass is itself a + isLayout() returns \c true if the QGraphicsLayoutItem subclass is itself a layout, or false otherwise. Qt uses QGraphicsLayoutItem to provide layout functionality in the @@ -853,9 +853,9 @@ void QGraphicsLayoutItem::setParentLayoutItem(QGraphicsLayoutItem *parent) } /*! - Returns true if this QGraphicsLayoutItem is a layout (e.g., is inherited + Returns \c true if this QGraphicsLayoutItem is a layout (e.g., is inherited by an object that arranges other QGraphicsLayoutItem objects); otherwise - returns false. + returns \c false. \sa QGraphicsLayout */ diff --git a/src/widgets/graphicsview/qgraphicsscene.cpp b/src/widgets/graphicsview/qgraphicsscene.cpp index 394c24d671..ad7a82518e 100644 --- a/src/widgets/graphicsview/qgraphicsscene.cpp +++ b/src/widgets/graphicsview/qgraphicsscene.cpp @@ -1215,9 +1215,9 @@ bool QGraphicsScenePrivate::filterEvent(QGraphicsItem *item, QEvent *event) \internal This is the final dispatch point for any events from the scene to the - item. It filters the event first - if the filter returns true, the event + item. It filters the event first - if the filter returns \c true, the event is considered to have been eaten by the filter, and is therefore stopped - (the default filter returns false). Then/otherwise, if the item is + (the default filter returns \c false). Then/otherwise, if the item is enabled, the event is sent; otherwise it is stopped. */ bool QGraphicsScenePrivate::sendEvent(QGraphicsItem *item, QEvent *event) @@ -1988,7 +1988,7 @@ QList QGraphicsScene::items(Qt::SortOrder order) const \brief Returns all visible items that, depending on \a mode, are either inside or intersect with the rectangle defined by \a x, \a y, \a w and \a h, in a list sorted using \a order. In this case, "visible" defines items for which: - isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 + isVisible() returns \c true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. \a deviceTransform is the transformation that applies to the view, and needs to @@ -2001,7 +2001,7 @@ QList QGraphicsScene::items(Qt::SortOrder order) const \brief Returns all visible items that, depending on \a mode, are at the specified \a pos in a list sorted using \a order. In this case, "visible" defines items for which: - isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 + isVisible() returns \c true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. The default value for \a mode is Qt::IntersectsItemShape; all items whose @@ -2027,7 +2027,7 @@ QList QGraphicsScene::items(const QPointF &pos, Qt::ItemSelecti \brief Returns all visible items that, depending on \a mode, are either inside or intersect with the specified \a rect, in a list sorted using \a order. In this case, "visible" defines items for which: - isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 + isVisible() returns \c true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. The default value for \a mode is Qt::IntersectsItemShape; all items whose @@ -2053,7 +2053,7 @@ QList QGraphicsScene::items(const QRectF &rect, Qt::ItemSelecti \brief Returns all visible items that, depending on \a mode, are either inside or intersect with the specified \a polygon, in a list sorted using \a order. In this case, "visible" defines items for which: - isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 + isVisible() returns \c true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. The default value for \a mode is Qt::IntersectsItemShape; all items whose @@ -2079,7 +2079,7 @@ QList QGraphicsScene::items(const QPolygonF &polygon, Qt::ItemS \brief Returns all visible items that, depending on \a mode, are either inside or intersect with the specified \a path, in a list sorted using \a order. In this case, "visible" defines items for which: - isVisible() returns true, effectiveOpacity() returns a value greater than 0.0 + isVisible() returns \c true, effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. The default value for \a mode is Qt::IntersectsItemShape; all items whose @@ -2626,7 +2626,7 @@ void QGraphicsScene::addItem(QGraphicsItem *item) Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2658,7 +2658,7 @@ QGraphicsEllipseItem *QGraphicsScene::addEllipse(const QRectF &rect, const QPen Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2689,7 +2689,7 @@ QGraphicsLineItem *QGraphicsScene::addLine(const QLineF &line, const QPen &pen) Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2712,7 +2712,7 @@ QGraphicsPathItem *QGraphicsScene::addPath(const QPainterPath &path, const QPen Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2734,7 +2734,7 @@ QGraphicsPixmapItem *QGraphicsScene::addPixmap(const QPixmap &pixmap) Note that the item's geometry is provided in item coordinates, and its position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2761,7 +2761,7 @@ QGraphicsPolygonItem *QGraphicsScene::addPolygon(const QPolygonF &polygon, 100) is added, its top-left corner will be at (50, 50) relative to the origin in the items coordinate system. - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2792,7 +2792,7 @@ QGraphicsRectItem *QGraphicsScene::addRect(const QRectF &rect, const QPen &pen, The item's position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2814,7 +2814,7 @@ QGraphicsTextItem *QGraphicsScene::addText(const QString &text, const QFont &fon The item's position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2836,7 +2836,7 @@ QGraphicsSimpleTextItem *QGraphicsScene::addSimpleText(const QString &text, cons The item's position is initialized to (0, 0). - If the item is visible (i.e., QGraphicsItem::isVisible() returns true), + If the item is visible (i.e., QGraphicsItem::isVisible() returns \c true), QGraphicsScene will emit changed() once control goes back to the event loop. @@ -2923,7 +2923,7 @@ QGraphicsItem *QGraphicsScene::focusItem() const focusitem. If item is not 0, and the scene does not currently have focus (i.e., - hasFocus() returns false), this function will call setFocus() + hasFocus() returns \c false), this function will call setFocus() automatically. \sa focusItem(), hasFocus(), setFocus() @@ -2938,7 +2938,7 @@ void QGraphicsScene::setFocusItem(QGraphicsItem *item, Qt::FocusReason focusReas } /*! - Returns true if the scene has focus; otherwise returns false. If the scene + Returns \c true if the scene has focus; otherwise returns \c false. If the scene has focus, it will will forward key events from QKeyEvent to any item that has focus. @@ -2998,7 +2998,7 @@ void QGraphicsScene::clearFocus() unchanged when the user clicks into the scene background or on an item that does not accept focus. Otherwise, focus will be cleared. - By default, this property is false. + By default, this property is \c false. Focus changes in response to a mouse press. You can reimplement mousePressEvent() in a subclass of QGraphicsScene to toggle this property @@ -4311,7 +4311,7 @@ static void _q_paintIntoCache(QPixmap *pix, QGraphicsItem *item, const QRegion & } // Copied from qpaintengine_vg.cpp -// Returns true for 90, 180, and 270 degree rotations. +// Returns \c true for 90, 180, and 270 degree rotations. static inline bool transformIsSimple(const QTransform& transform) { QTransform::TransformationType type = transform.type(); @@ -5330,7 +5330,7 @@ void QGraphicsScene::drawItems(QPainter *painter, \since 4.4 Finds a new widget to give the keyboard focus to, as appropriate for Tab - and Shift+Tab, and returns true if it can find a new widget, or false if + and Shift+Tab, and returns \c true if it can find a new widget, or false if it cannot. If \a next is true, this function searches forward; if \a next is false, it searches backward. @@ -5603,8 +5603,8 @@ void QGraphicsScene::setPalette(const QPalette &palette) /*! \since 4.6 - Returns true if the scene is active (e.g., it's viewed by - at least one QGraphicsView that is active); otherwise returns false. + Returns \c true if the scene is active (e.g., it's viewed by + at least one QGraphicsView that is active); otherwise returns \c false. \sa QGraphicsItem::isActive(), QWidget::isActiveWindow() */ diff --git a/src/widgets/graphicsview/qgraphicsview.cpp b/src/widgets/graphicsview/qgraphicsview.cpp index a39c084798..86648c4f26 100644 --- a/src/widgets/graphicsview/qgraphicsview.cpp +++ b/src/widgets/graphicsview/qgraphicsview.cpp @@ -1661,7 +1661,7 @@ void QGraphicsView::invalidateScene(const QRectF &rect, QGraphicsScene::SceneLay view will not allow interaction, and any mouse or key events are ignored (i.e., it will act as a read-only view). - By default, this property is true. + By default, this property is \c true. */ bool QGraphicsView::isInteractive() const { @@ -3825,7 +3825,7 @@ QTransform QGraphicsView::viewportTransform() const /*! \since 4.6 - Returns true if the view is transformed (i.e., a non-identity transform + Returns \c true if the view is transformed (i.e., a non-identity transform has been assigned, or the scrollbars are adjusted). \sa setTransform(), horizontalScrollBar(), verticalScrollBar() diff --git a/src/widgets/graphicsview/qgraphicswidget.cpp b/src/widgets/graphicsview/qgraphicswidget.cpp index 3d902d9227..4abb5e39e5 100644 --- a/src/widgets/graphicsview/qgraphicswidget.cpp +++ b/src/widgets/graphicsview/qgraphicswidget.cpp @@ -1043,7 +1043,7 @@ void QGraphicsWidget::setPalette(const QPalette &palette) In addition, Windows are always filled with QPalette::Window, unless the WA_OpaquePaintEvent or WA_NoSystemBackground attributes are set. - By default, this property is false. + By default, this property is \c false. \sa Qt::WA_OpaquePaintEvent, Qt::WA_NoSystemBackground, */ @@ -1239,8 +1239,8 @@ bool QGraphicsWidget::sceneEvent(QEvent *event) You can reimplement this handler in a subclass of QGraphicsWidget to provide your own custom window frame interaction support. - Returns true if \a event has been recognized and processed; otherwise, - returns false. + Returns \c true if \a event has been recognized and processed; otherwise, + returns \c false. \sa event() */ @@ -1524,7 +1524,7 @@ void QGraphicsWidget::focusInEvent(QFocusEvent *event) /*! Finds a new widget to give the keyboard focus to, as appropriate for Tab - and Shift+Tab, and returns true if it can find a new widget; returns false + and Shift+Tab, and returns \c true if it can find a new widget; returns \c false otherwise. If \a next is true, this function searches forward; if \a next is false, it searches backward. @@ -1782,7 +1782,7 @@ void QGraphicsWidget::setWindowFlags(Qt::WindowFlags wFlags) } /*! - Returns true if this widget's window is in the active window, or if the + Returns \c true if this widget's window is in the active window, or if the widget does not have a window but is in an active scene (i.e., a scene that currently has focus). @@ -2193,8 +2193,8 @@ void QGraphicsWidget::setAttribute(Qt::WidgetAttribute attribute, bool on) } /*! - Returns true if \a attribute is enabled for this widget; otherwise, - returns false. + Returns \c true if \a attribute is enabled for this widget; otherwise, + returns \c false. \sa setAttribute() */ @@ -2364,7 +2364,7 @@ QPainterPath QGraphicsWidget::shape() const /*! Call this function to close the widget. - Returns true if the widget was closed; otherwise returns false. + Returns \c true if the widget was closed; otherwise returns \c false. This slot will first send a QCloseEvent to the widget, which may or may not accept the event. If the event was ignored, nothing happens. If the event was accepted, it will hide() the widget. diff --git a/src/widgets/graphicsview/qgridlayoutengine.cpp b/src/widgets/graphicsview/qgridlayoutengine.cpp index f741962264..a1affdb55e 100644 --- a/src/widgets/graphicsview/qgridlayoutengine.cpp +++ b/src/widgets/graphicsview/qgridlayoutengine.cpp @@ -570,7 +570,7 @@ QSizePolicy::Policy QGridLayoutItem::sizePolicy(Qt::Orientation orientation) con } /* - returns true if the size policy returns true for either hasHeightForWidth() + returns \c true if the size policy returns \c true for either hasHeightForWidth() or hasWidthForHeight() */ bool QGridLayoutItem::hasDynamicConstraint() const @@ -1657,7 +1657,7 @@ void QGridLayoutEngine::ensureColumnAndRowData(QGridLayoutRowData *rowData, QGri } /** - returns false if the layout has contradicting constraints (i.e. some items with a horizontal + returns \c false if the layout has contradicting constraints (i.e. some items with a horizontal constraint and other items with a vertical constraint) */ bool QGridLayoutEngine::ensureDynamicConstraint() const @@ -1691,7 +1691,7 @@ bool QGridLayoutEngine::hasDynamicConstraint() const } /* - * return value is only valid if hasConstraint() returns true + * return value is only valid if hasConstraint() returns \c true */ Qt::Orientation QGridLayoutEngine::constraintOrientation() const { diff --git a/src/widgets/itemviews/qabstractitemdelegate.cpp b/src/widgets/itemviews/qabstractitemdelegate.cpp index 7786a74cc6..16a6e2ca38 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.cpp +++ b/src/widgets/itemviews/qabstractitemdelegate.cpp @@ -316,7 +316,7 @@ void QAbstractItemDelegate::updateEditorGeometry(QWidget *, to open a context menu when the right mouse button is pressed on an item. - The base implementation returns false (indicating that it has not + The base implementation returns \c false (indicating that it has not handled the event). */ bool QAbstractItemDelegate::editorEvent(QEvent *, @@ -354,7 +354,7 @@ QString QAbstractItemDelegate::elidedText(const QFontMetrics &fontMetrics, int w \a view \a option and the \a index that corresponds to the item where the event occurs. - Returns true if the delegate can handle the event; otherwise returns false. + Returns \c true if the delegate can handle the event; otherwise returns \c false. A return value of true indicates that the data obtained using the index had the required role. diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp index f4a98d2575..35ba1ed74e 100644 --- a/src/widgets/itemviews/qabstractitemview.cpp +++ b/src/widgets/itemviews/qabstractitemview.cpp @@ -566,8 +566,8 @@ void QAbstractItemViewPrivate::_q_scrollerStateChanged() /*! \fn bool QAbstractItemView::isIndexHidden(const QModelIndex &index) const - Returns true if the item referred to by the given \a index is hidden in the view, - otherwise returns false. + Returns \c true if the item referred to by the given \a index is hidden in the view, + otherwise returns \c false. Hiding is a view specific feature. For example in TableView a column can be marked as hidden or a row in the TreeView. @@ -1495,11 +1495,11 @@ Qt::DropAction QAbstractItemView::defaultDropAction() const \property QAbstractItemView::alternatingRowColors \brief whether to draw the background using alternating colors - If this property is true, the item background will be drawn using + If this property is \c true, the item background will be drawn using QPalette::Base and QPalette::AlternateBase; otherwise the background will be drawn using the QPalette::Base color. - By default, this property is false. + By default, this property is \c false. */ void QAbstractItemView::setAlternatingRowColors(bool enable) { @@ -2061,7 +2061,7 @@ void QAbstractItemView::dropEvent(QDropEvent *event) else // place at row, col in drop index - If it returns true a drop can be done, and dropRow, dropCol and dropIndex reflects the position of the drop. + If it returns \c true a drop can be done, and dropRow, dropCol and dropIndex reflects the position of the drop. \internal */ bool QAbstractItemViewPrivate::dropOn(QDropEvent *event, int *dropRow, int *dropCol, QModelIndex *dropIndex) @@ -2547,8 +2547,8 @@ QModelIndexList QAbstractItemView::selectedIndexes() const /*! Starts editing the item at \a index, creating an editor if - necessary, and returns true if the view's \l{State} is now - EditingState; otherwise returns false. + necessary, and returns \c true if the view's \l{State} is now + EditingState; otherwise returns \c false. The action that caused the editing process is described by \a trigger, and the associated event is specified by \a event. diff --git a/src/widgets/itemviews/qdatawidgetmapper.cpp b/src/widgets/itemviews/qdatawidgetmapper.cpp index e5b7e810fb..76d01dbb2b 100644 --- a/src/widgets/itemviews/qdatawidgetmapper.cpp +++ b/src/widgets/itemviews/qdatawidgetmapper.cpp @@ -610,7 +610,7 @@ void QDataWidgetMapper::revert() value from the widget and sets it in the model. Finally, the model's \l {QAbstractItemModel::}{submit()} method is invoked. - Returns true if all the values were submitted, otherwise false. + Returns \c true if all the values were submitted, otherwise false. Note: For database models, QSqlQueryModel::lastError() can be used to retrieve the last error. diff --git a/src/widgets/itemviews/qdirmodel.cpp b/src/widgets/itemviews/qdirmodel.cpp index e1ba0ede57..1e51f4e073 100644 --- a/src/widgets/itemviews/qdirmodel.cpp +++ b/src/widgets/itemviews/qdirmodel.cpp @@ -395,8 +395,8 @@ QVariant QDirModel::data(const QModelIndex &index, int role) const /*! Sets the data for the model item \a index with the given \a role to - the data referenced by the \a value. Returns true if successful; - otherwise returns false. + the data referenced by the \a value. Returns \c true if successful; + otherwise returns \c false. \sa Qt::ItemDataRole */ @@ -456,8 +456,8 @@ QVariant QDirModel::headerData(int section, Qt::Orientation orientation, int rol } /*! - Returns true if the \a parent model item has children; otherwise - returns false. + Returns \c true if the \a parent model item has children; otherwise + returns \c false. */ bool QDirModel::hasChildren(const QModelIndex &parent) const @@ -566,7 +566,7 @@ QMimeData *QDirModel::mimeData(const QModelIndexList &indexes) const the given \a action over the row in the model specified by the \a row and \a column and by the \a parent index. - Returns true if the drop was successful, and false otherwise. + Returns \c true if the drop was successful, and false otherwise. \sa supportedDropActions() */ @@ -771,7 +771,7 @@ bool QDirModel::resolveSymlinks() const If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories. - This property is true by default + This property is \c true by default */ void QDirModel::setReadOnly(bool enable) @@ -796,7 +796,7 @@ bool QDirModel::isReadOnly() const Otherwise the directory model will report that an item has children if the item is a directory. - This property is false by default + This property is \c false by default */ void QDirModel::setLazyChildCount(bool enable) @@ -966,8 +966,8 @@ QModelIndex QDirModel::index(const QString &path, int column) const } /*! - Returns true if the model item \a index represents a directory; - otherwise returns false. + Returns \c true if the model item \a index represents a directory; + otherwise returns \c false. */ bool QDirModel::isDir(const QModelIndex &index) const diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index 239cc84a0a..123594637a 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -294,7 +294,7 @@ static const int maxSizeSection = 1048575; // since section size is in a bitfiel \property QHeaderView::highlightSections \brief whether the sections containing selected items are highlighted - By default, this property is false. + By default, this property is \c false. */ /*! @@ -982,8 +982,8 @@ void QHeaderView::resizeSections(QHeaderView::ResizeMode mode) */ /*! - Returns true if the section specified by \a logicalIndex is explicitly - hidden from the user; otherwise returns false. + Returns \c true if the section specified by \a logicalIndex is explicitly + hidden from the user; otherwise returns \c false. \sa hideSection(), showSection(), setSectionHidden(), hiddenSectionCount() */ @@ -1139,7 +1139,7 @@ void QHeaderView::setSectionsMovable(bool movable) /*! \since 5.0 - Returns true if the header can be moved by the user; otherwise returns + Returns \c true if the header can be moved by the user; otherwise returns false. \sa setSectionsMovable() @@ -1189,7 +1189,7 @@ void QHeaderView::setSectionsClickable(bool clickable) /*! \since 5.0 - Returns true if the header is clickable; otherwise returns false. A + Returns \c true if the header is clickable; otherwise returns \c false. A clickable header could be set up to allow the user to change the representation of the data in the view related to the header. @@ -1395,7 +1395,7 @@ int QHeaderView::stretchSectionCount() const \property QHeaderView::showSortIndicator \brief whether the sort indicator is shown - By default, this property is false. + By default, this property is \c false. \sa setSectionsClickable() */ @@ -1681,7 +1681,7 @@ void QHeaderView::doItemsLayout() } /*! - Returns true if sections in the header has been moved; otherwise returns + Returns \c true if sections in the header has been moved; otherwise returns false; \sa moveSection() @@ -1695,7 +1695,7 @@ bool QHeaderView::sectionsMoved() const /*! \since 4.1 - Returns true if sections in the header has been hidden; otherwise returns + Returns \c true if sections in the header has been hidden; otherwise returns false; \sa setSectionHidden() diff --git a/src/widgets/itemviews/qitemdelegate.cpp b/src/widgets/itemviews/qitemdelegate.cpp index 3e34568a12..0b654a7485 100644 --- a/src/widgets/itemviews/qitemdelegate.cpp +++ b/src/widgets/itemviews/qitemdelegate.cpp @@ -1146,8 +1146,8 @@ QRect QItemDelegate::textRectangle(QPainter * /*painter*/, const QRect &rect, /*! \fn bool QItemDelegate::eventFilter(QObject *editor, QEvent *event) - Returns true if the given \a editor is a valid QWidget and the - given \a event is handled; otherwise returns false. The following + Returns \c true if the given \a editor is a valid QWidget and the + given \a event is handled; otherwise returns \c false. The following key press events are handled by default: \list diff --git a/src/widgets/itemviews/qlistview.cpp b/src/widgets/itemviews/qlistview.cpp index 331748eedc..e5a8647f87 100644 --- a/src/widgets/itemviews/qlistview.cpp +++ b/src/widgets/itemviews/qlistview.cpp @@ -251,7 +251,7 @@ QListView::Movement QListView::movement() const \brief which direction the items layout should flow. If this property is \l LeftToRight, the items will be laid out left - to right. If the \l isWrapping property is true, the layout will wrap + to right. If the \l isWrapping property is \c true, the layout will wrap when it reaches the right side of the visible area. If this property is \l TopToBottom, the items will be laid out from the top of the visible area, wrapping when it reaches the bottom. @@ -288,7 +288,7 @@ QListView::Flow QListView::flow() const Setting this property when the view is visible will cause the items to be laid out again. - By default, this property is false. + By default, this property is \c false. \sa viewMode */ @@ -527,7 +527,7 @@ void QListView::clearPropertyFlags() } /*! - Returns true if the \a row is hidden; otherwise returns false. + Returns \c true if the \a row is hidden; otherwise returns \c false. */ bool QListView::isRowHidden(int row) const { @@ -1529,7 +1529,7 @@ int QListView::modelColumn() const in the view have the same size. This enables the view to do some optimizations for performance purposes. - By default, this property is false. + By default, this property is \c false. */ void QListView::setUniformItemSizes(bool enable) { @@ -1548,9 +1548,9 @@ bool QListView::uniformItemSizes() const \brief the item text word-wrapping policy \since 4.2 - If this property is true then the item text is wrapped where + If this property is \c true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. - This property is false by default. + This property is \c false by default. Please note that even if wrapping is enabled, the cell will not be expanded to make room for the text. It will print ellipsis for @@ -1577,7 +1577,7 @@ bool QListView::wordWrap() const \brief if the selection rectangle should be visible \since 4.3 - If this property is true then the selection rectangle is visible; + If this property is \c true then the selection rectangle is visible; otherwise it will be hidden. \note The selection rectangle will only be visible if the selection mode @@ -1585,7 +1585,7 @@ bool QListView::wordWrap() const draw a selection rectangle if the selection mode is QAbstractItemView::SingleSelection. - By default, this property is false. + By default, this property is \c false. */ void QListView::setSelectionRectVisible(bool show) { @@ -2013,7 +2013,7 @@ void QListModeViewBase::dragMoveEvent(QDragMoveEvent *event) else // place at row, col in drop index - If it returns true a drop can be done, and dropRow, dropCol and dropIndex reflects the position of the drop. + If it returns \c true a drop can be done, and dropRow, dropCol and dropIndex reflects the position of the drop. \internal */ bool QListModeViewBase::dropOn(QDropEvent *event, int *dropRow, int *dropCol, QModelIndex *dropIndex) diff --git a/src/widgets/itemviews/qlistwidget.cpp b/src/widgets/itemviews/qlistwidget.cpp index 27abfb8eb4..aa1dbf1de3 100644 --- a/src/widgets/itemviews/qlistwidget.cpp +++ b/src/widgets/itemviews/qlistwidget.cpp @@ -555,7 +555,7 @@ Qt::DropActions QListModel::supportedDropActions() const \fn bool QListWidgetItem::isSelected() const \since 4.2 - Returns true if the item is selected; otherwise returns false. + Returns \c true if the item is selected; otherwise returns \c false. \sa setSelected() */ @@ -573,7 +573,7 @@ Qt::DropActions QListModel::supportedDropActions() const \fn bool QListWidgetItem::isHidden() const \since 4.2 - Returns true if the item is hidden; otherwise returns false. + Returns \c true if the item is hidden; otherwise returns \c false. \sa setHidden() */ @@ -725,8 +725,8 @@ QVariant QListWidgetItem::data(int role) const } /*! - Returns true if this item's text is less then \a other item's text; - otherwise returns false. + Returns \c true if this item's text is less then \a other item's text; + otherwise returns \c false. */ bool QListWidgetItem::operator<(const QListWidgetItem &other) const { @@ -1555,7 +1555,7 @@ void QListWidget::sortItems(Qt::SortOrder order) \property QListWidget::sortingEnabled \brief whether sorting is enabled - If this property is true, sorting is enabled for the list; if the property + If this property is \c true, sorting is enabled for the list; if the property is false, sorting is not enabled. The default value is false. @@ -1648,7 +1648,7 @@ void QListWidget::setItemWidget(QListWidgetItem *item, QWidget *widget) } /*! - Returns true if \a item is selected; otherwise returns false. + Returns \c true if \a item is selected; otherwise returns \c false. \obsolete @@ -1717,7 +1717,7 @@ QList QListWidget::findItems(const QString &text, Qt::MatchFla } /*! - Returns true if the \a item is explicitly hidden; otherwise returns false. + Returns \c true if the \a item is explicitly hidden; otherwise returns \c false. \obsolete @@ -1792,8 +1792,8 @@ QMimeData *QListWidget::mimeData(const QList) const #ifndef QT_NO_DRAGANDDROP /*! Handles \a data supplied by an external drag and drop operation that ended - with the given \a action in the given \a index. Returns true if \a data and - \a action can be handled by the model; otherwise returns false. + with the given \a action in the given \a index. Returns \c true if \a data and + \a action can be handled by the model; otherwise returns \c false. \sa supportedDropActions() */ diff --git a/src/widgets/itemviews/qstyleditemdelegate.cpp b/src/widgets/itemviews/qstyleditemdelegate.cpp index c1fa9fe28e..c2aa630918 100644 --- a/src/widgets/itemviews/qstyleditemdelegate.cpp +++ b/src/widgets/itemviews/qstyleditemdelegate.cpp @@ -615,8 +615,8 @@ void QStyledItemDelegate::setItemEditorFactory(QItemEditorFactory *factory) /*! \fn bool QStyledItemDelegate::eventFilter(QObject *editor, QEvent *event) - Returns true if the given \a editor is a valid QWidget and the - given \a event is handled; otherwise returns false. The following + Returns \c true if the given \a editor is a valid QWidget and the + given \a event is handled; otherwise returns \c false. The following key press events are handled by default: \list diff --git a/src/widgets/itemviews/qtableview.cpp b/src/widgets/itemviews/qtableview.cpp index 871ad656ea..34e881571e 100644 --- a/src/widgets/itemviews/qtableview.cpp +++ b/src/widgets/itemviews/qtableview.cpp @@ -747,9 +747,9 @@ int QTableViewPrivate::sectionSpanSize(const QHeaderView *header, int logical, i /*! \internal - Returns true if the section at logical index \a logical is part of the span + Returns \c true if the section at logical index \a logical is part of the span starting at logical index \a spanLogical and spanning \a span sections; - otherwise, returns false. + otherwise, returns \c false. */ bool QTableViewPrivate::spanContainsSection(const QHeaderView *header, int logical, int spanLogical, int span) const { @@ -2482,7 +2482,7 @@ int QTableView::columnWidth(int column) const } /*! - Returns true if the given \a row is hidden; otherwise returns false. + Returns \c true if the given \a row is hidden; otherwise returns \c false. \sa isColumnHidden() */ @@ -2506,7 +2506,7 @@ void QTableView::setRowHidden(int row, bool hide) } /*! - Returns true if the given \a column is hidden; otherwise returns false. + Returns \c true if the given \a column is hidden; otherwise returns \c false. \sa isRowHidden() */ @@ -2535,8 +2535,8 @@ void QTableView::setColumnHidden(int column, bool hide) \property QTableView::sortingEnabled \brief whether sorting is enabled - If this property is true, sorting is enabled for the table. If - this property is false, sorting is not enabled. The default value + If this property is \c true, sorting is enabled for the table. If + this property is \c false, sorting is not enabled. The default value is false. \note. Setting the property to true with setSortingEnabled() @@ -2585,8 +2585,8 @@ bool QTableView::isSortingEnabled() const \property QTableView::showGrid \brief whether the grid is shown - If this property is true a grid is drawn for the table; if the - property is false, no grid is drawn. The default value is true. + If this property is \c true a grid is drawn for the table; if the + property is \c false, no grid is drawn. The default value is true. */ bool QTableView::showGrid() const { @@ -2629,9 +2629,9 @@ void QTableView::setGridStyle(Qt::PenStyle style) \brief the item text word-wrapping policy \since 4.3 - If this property is true then the item text is wrapped where + If this property is \c true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. - This property is true by default. + This property is \c true by default. Note that even of wrapping is enabled, the cell will not be expanded to fit all text. Ellipsis will be inserted according to @@ -2659,11 +2659,11 @@ bool QTableView::wordWrap() const \brief whether the button in the top-left corner is enabled \since 4.3 - If this property is true then button in the top-left corner + If this property is \c true then button in the top-left corner of the table view is enabled. Clicking on this button will select all the cells in the table view. - This property is true by default. + This property is \c true by default. */ void QTableView::setCornerButtonEnabled(bool enable) { diff --git a/src/widgets/itemviews/qtablewidget.cpp b/src/widgets/itemviews/qtablewidget.cpp index f15124605f..43b6b62cc1 100644 --- a/src/widgets/itemviews/qtablewidget.cpp +++ b/src/widgets/itemviews/qtablewidget.cpp @@ -1041,7 +1041,7 @@ QTableWidgetSelectionRange::~QTableWidgetSelectionRange() \fn bool QTableWidgetItem::isSelected() const \since 4.2 - Returns true if the item is selected, otherwise returns false. + Returns \c true if the item is selected, otherwise returns \c false. \sa setSelected() */ @@ -1395,7 +1395,7 @@ QVariant QTableWidgetItem::data(int role) const } /*! - Returns true if the item is less than the \a other item; otherwise returns + Returns \c true if the item is less than the \a other item; otherwise returns false. */ bool QTableWidgetItem::operator<(const QTableWidgetItem &other) const @@ -2280,7 +2280,7 @@ void QTableWidget::setCellWidget(int row, int column, QWidget *widget) } /*! - Returns true if the \a item is selected, otherwise returns false. + Returns \c true if the \a item is selected, otherwise returns \c false. \obsolete @@ -2567,8 +2567,8 @@ QMimeData *QTableWidget::mimeData(const QList) const /*! Handles the \a data supplied by a drag and drop operation that ended with the given \a action in the given \a row and \a column. - Returns true if the data and action can be handled by the model; - otherwise returns false. + Returns \c true if the data and action can be handled by the model; + otherwise returns \c false. \sa supportedDropActions() */ diff --git a/src/widgets/itemviews/qtreeview.cpp b/src/widgets/itemviews/qtreeview.cpp index 76e15faf2a..22cd9abc73 100644 --- a/src/widgets/itemviews/qtreeview.cpp +++ b/src/widgets/itemviews/qtreeview.cpp @@ -397,7 +397,7 @@ void QTreeView::setIndentation(int i) false, these controls are not shown for top-level items. This can be used to make a single level tree structure appear like a simple list of items. - By default, this property is true. + By default, this property is \c true. */ bool QTreeView::rootIsDecorated() const { @@ -425,7 +425,7 @@ void QTreeView::setRootIsDecorated(bool show) The height is obtained from the first item in the view. It is updated when the data changes on that item. - By default, this property is false. + By default, this property is \c false. */ bool QTreeView::uniformRowHeights() const { @@ -446,7 +446,7 @@ void QTreeView::setUniformRowHeights(bool uniform) This property holds whether the user can expand and collapse items interactively. - By default, this property is true. + By default, this property is \c true. */ bool QTreeView::itemsExpandable() const @@ -527,7 +527,7 @@ int QTreeView::columnAt(int x) const } /*! - Returns true if the \a column is hidden; otherwise returns false. + Returns \c true if the \a column is hidden; otherwise returns \c false. \sa hideColumn(), isRowHidden() */ @@ -555,7 +555,7 @@ void QTreeView::setColumnHidden(int column, bool hide) \brief whether the header is shown or not. \since 4.4 - If this property is true, the header is not shown otherwise it is. + If this property is \c true, the header is not shown otherwise it is. The default value is false. \sa header() @@ -573,8 +573,8 @@ void QTreeView::setHeaderHidden(bool hide) } /*! - Returns true if the item in the given \a row of the \a parent is hidden; - otherwise returns false. + Returns \c true if the item in the given \a row of the \a parent is hidden; + otherwise returns \c false. \sa setRowHidden(), isColumnHidden() */ @@ -612,8 +612,8 @@ void QTreeView::setRowHidden(int row, const QModelIndex &parent, bool hide) /*! \since 4.3 - Returns true if the item in first column in the given \a row - of the \a parent is spanning all the columns; otherwise returns false. + Returns \c true if the item in first column in the given \a row + of the \a parent is spanning all the columns; otherwise returns \c false. \sa setFirstColumnSpanned() */ @@ -810,7 +810,7 @@ void QTreeView::collapse(const QModelIndex &index) /*! \fn bool QTreeView::isExpanded(const QModelIndex &index) const - Returns true if the model item \a index is expanded; otherwise returns + Returns \c true if the model item \a index is expanded; otherwise returns false. \sa expand(), expanded(), setExpanded() @@ -840,7 +840,7 @@ void QTreeView::setExpanded(const QModelIndex &index, bool expanded) \property QTreeView::sortingEnabled \brief whether sorting is enabled - If this property is true, sorting is enabled for the tree; if the property + If this property is \c true, sorting is enabled for the tree; if the property is false, sorting is not enabled. The default value is false. \note In order to avoid performance issues, it is recommended that @@ -880,12 +880,12 @@ bool QTreeView::isSortingEnabled() const \property QTreeView::animated \brief whether animations are enabled - If this property is true the treeview will animate expansion - and collapsing of branches. If this property is false, the treeview + If this property is \c true the treeview will animate expansion + and collapsing of branches. If this property is \c false, the treeview will expand or collapse branches immediately without showing the animation. - By default, this property is false. + By default, this property is \c false. */ void QTreeView::setAnimated(bool animate) @@ -905,7 +905,7 @@ bool QTreeView::isAnimated() const \property QTreeView::allColumnsShowFocus \brief whether items should show keyboard focus using all columns - If this property is true all columns will show focus, otherwise only + If this property is \c true all columns will show focus, otherwise only one column will show focus. The default is false. @@ -931,9 +931,9 @@ bool QTreeView::allColumnsShowFocus() const \brief the item text word-wrapping policy \since 4.3 - If this property is true then the item text is wrapped where + If this property is \c true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. - This property is false by default. + This property is \c false by default. Note that even if wrapping is enabled, the cell will not be expanded to fit all text. Ellipsis will be inserted according to diff --git a/src/widgets/itemviews/qtreewidget.cpp b/src/widgets/itemviews/qtreewidget.cpp index f098236d5c..e75f602e90 100644 --- a/src/widgets/itemviews/qtreewidget.cpp +++ b/src/widgets/itemviews/qtreewidget.cpp @@ -103,7 +103,7 @@ public: \fn bool QTreeWidgetItem::isDisabled() const \since 4.3 - Returns true if the item is disabled; otherwise returns false. + Returns \c true if the item is disabled; otherwise returns \c false. \sa setFlags() */ @@ -380,7 +380,7 @@ QVariant QTreeModel::data(const QModelIndex &index, int role) const Sets the data for the item specified by the \a index and \a role to that referred to by the \a value. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. */ bool QTreeModel::setData(const QModelIndex &index, const QVariant &value, int role) @@ -537,7 +537,7 @@ QVariant QTreeModel::headerData(int section, Qt::Orientation orientation, int ro Sets the header data for the item specified by the header \a section, \a orientation and data \a role to the given \a value. - Returns true if successful; otherwise returns false. + Returns \c true if successful; otherwise returns \c false. */ bool QTreeModel::setHeaderData(int section, Qt::Orientation orientation, @@ -681,7 +681,7 @@ void QTreeModel::ensureSorted(int column, Qt::SortOrder order, /*! \internal - Returns true if the value of the \a left item is + Returns \c true if the value of the \a left item is less than the value of the \a right item. Used by the sorting functions. @@ -696,7 +696,7 @@ bool QTreeModel::itemLessThan(const QPair &left, /*! \internal - Returns true if the value of the \a left item is + Returns \c true if the value of the \a left item is greater than the value of the \a right item. Used by the sorting functions. @@ -1001,7 +1001,7 @@ void QTreeModel::timerEvent(QTimerEvent *ev) \fn bool QTreeWidgetItem::isSelected() const \since 4.2 - Returns true if the item is selected, otherwise returns false. + Returns \c true if the item is selected, otherwise returns \c false. \sa setSelected() */ @@ -1019,7 +1019,7 @@ void QTreeModel::timerEvent(QTimerEvent *ev) \fn bool QTreeWidgetItem::isHidden() const \since 4.2 - Returns true if the item is hidden, otherwise returns false. + Returns \c true if the item is hidden, otherwise returns \c false. \sa setHidden() */ @@ -1038,7 +1038,7 @@ void QTreeModel::timerEvent(QTimerEvent *ev) \fn bool QTreeWidgetItem::isExpanded() const \since 4.2 - Returns true if the item is expanded, otherwise returns false. + Returns \c true if the item is expanded, otherwise returns \c false. \sa setExpanded() */ @@ -1057,7 +1057,7 @@ void QTreeModel::timerEvent(QTimerEvent *ev) \fn bool QTreeWidgetItem::isFirstColumnSpanned() const \since 4.3 - Returns true if the item is spanning all the columns in a row; otherwise returns false. + Returns \c true if the item is spanning all the columns in a row; otherwise returns \c false. \sa setFirstColumnSpanned() */ @@ -1800,8 +1800,8 @@ QVariant QTreeWidgetItem::data(int column, int role) const } /*! - Returns true if the text in the item is less than the text in the - \a other item, otherwise returns false. + Returns \c true if the text in the item is less than the text in the + \a other item, otherwise returns \c false. */ bool QTreeWidgetItem::operator<(const QTreeWidgetItem &other) const @@ -2979,7 +2979,7 @@ void QTreeWidget::setItemWidget(QTreeWidgetItem *item, int column, QWidget *widg } /*! - Returns true if the \a item is selected; otherwise returns false. + Returns \c true if the \a item is selected; otherwise returns \c false. \sa itemSelectionChanged() @@ -3055,7 +3055,7 @@ QList QTreeWidget::findItems(const QString &text, Qt::MatchFla } /*! - Returns true if the \a item is explicitly hidden, otherwise returns false. + Returns \c true if the \a item is explicitly hidden, otherwise returns \c false. \obsolete @@ -3093,7 +3093,7 @@ void QTreeWidget::setItemHidden(const QTreeWidgetItem *item, bool hide) } /*! - Returns true if the given \a item is open; otherwise returns false. + Returns \c true if the given \a item is open; otherwise returns \c false. \sa itemExpanded() @@ -3128,8 +3128,8 @@ void QTreeWidget::setItemExpanded(const QTreeWidgetItem *item, bool expand) /*! \since 4.3 - Returns true if the given \a item is set to show only one section over all columns; - otherwise returns false. + Returns \c true if the given \a item is set to show only one section over all columns; + otherwise returns \c false. \sa setFirstItemColumnSpanned() */ @@ -3294,9 +3294,9 @@ QMimeData *QTreeWidget::mimeData(const QList items) const Handles the \a data supplied by a drag and drop operation that ended with the given \a action in the \a index in the given \a parent item. - The default implementation returns true if the drop was + The default implementation returns \c true if the drop was successfully handled by decoding the mime data and inserting it - into the model; otherwise it returns false. + into the model; otherwise it returns \c false. \sa supportedDropActions() */ diff --git a/src/widgets/kernel/qaction.cpp b/src/widgets/kernel/qaction.cpp index 267d787116..3e76699aca 100644 --- a/src/widgets/kernel/qaction.cpp +++ b/src/widgets/kernel/qaction.cpp @@ -706,8 +706,8 @@ void QAction::setSeparator(bool b) } /*! - Returns true if this action is a separator action; otherwise it - returns false. + Returns \c true if this action is a separator action; otherwise it + returns \c false. \sa QAction::setSeparator() */ @@ -931,7 +931,7 @@ QAction::Priority QAction::priority() const in a word processor, a Bold toolbar button may be either on or off. An action which is not a toggle action is a command action; a command action is simply executed, e.g. file save. - By default, this property is false. + By default, this property is \c false. In some situations, the state of one toggle action should depend on the state of others. For example, "Left Align", "Center" and @@ -1024,7 +1024,7 @@ bool QAction::isChecked() const action is disabled, it is not possible to trigger it through its shortcut. - By default, this property is true (actions are enabled). + By default, this property is \c true (actions are enabled). \sa text */ @@ -1061,7 +1061,7 @@ bool QAction::isEnabled() const Actions which are not visible are \e not grayed out; they do not appear at all. - By default, this property is true (actions are visible). + By default, this property is \c true (actions are visible). */ void QAction::setVisible(bool b) { @@ -1137,8 +1137,8 @@ QAction::setData(const QVariant &data) /*! Updates the relevant status bar for the \a widget specified by sending a - QStatusTipEvent to its parent widget. Returns true if an event was sent; - otherwise returns false. + QStatusTipEvent to its parent widget. Returns \c true if an event was sent; + otherwise returns \c false. If a null widget is specified, the event is sent to the action's parent. diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index 565960f8d5..70c63086a3 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -2238,7 +2238,7 @@ Q_WIDGETS_EXPORT bool qt_tryModalHelper(QWidget *widget, QWidget **rettop) } /*! \internal - Returns true if \a widget is blocked by a modal window. + Returns \c true if \a widget is blocked by a modal window. */ bool QApplicationPrivate::isBlockedByModal(QWidget *widget) { @@ -2367,7 +2367,7 @@ bool QApplicationPrivate::isWindowBlocked(QWindow *window, QWindow **blockingWin /*!\internal - Called from qapplication_\e{platform}.cpp, returns true + Called from qapplication_\e{platform}.cpp, returns \c true if the widget should accept the event. */ bool QApplicationPrivate::tryModalHelper(QWidget *widget, QWidget **rettop) @@ -3539,7 +3539,7 @@ void QApplication::setKeypadNavigationEnabled(bool enable) } /*! - Returns true if Qt is set to use keypad navigation; otherwise returns + Returns \c true if Qt is set to use keypad navigation; otherwise returns false. The default value is false. This feature is available in Qt for Embedded Linux, and Windows CE only. @@ -3686,7 +3686,7 @@ int QApplication::keyboardInputInterval() /*! \fn bool QApplication::isEffectEnabled(Qt::UIEffect effect) - Returns true if \a effect is enabled; otherwise returns false. + Returns \c true if \a effect is enabled; otherwise returns \c false. By default, Qt will try to use the desktop settings. To prevent this, call setDesktopSettingsAware(false). diff --git a/src/widgets/kernel/qboxlayout.cpp b/src/widgets/kernel/qboxlayout.cpp index 67621ade23..157fa55d2e 100644 --- a/src/widgets/kernel/qboxlayout.cpp +++ b/src/widgets/kernel/qboxlayout.cpp @@ -52,8 +52,8 @@ QT_BEGIN_NAMESPACE /* - Returns true if the \a widget can be added to the \a layout; - otherwise returns false. + Returns \c true if the \a widget can be added to the \a layout; + otherwise returns \c false. */ static bool checkWidget(QLayout *layout, QWidget *widget) { @@ -1112,7 +1112,7 @@ void QBoxLayout::addStrut(int size) /*! Sets the stretch factor for \a widget to \a stretch and returns true if \a widget is found in this layout (not including child - layouts); otherwise returns false. + layouts); otherwise returns \c false. \sa setAlignment() */ @@ -1136,8 +1136,8 @@ bool QBoxLayout::setStretchFactor(QWidget *widget, int stretch) \overload Sets the stretch factor for the layout \a layout to \a stretch and - returns true if \a layout is found in this layout (not including - child layouts); otherwise returns false. + returns \c true if \a layout is found in this layout (not including + child layouts); otherwise returns \c false. */ bool QBoxLayout::setStretchFactor(QLayout *layout, int stretch) { diff --git a/src/widgets/kernel/qgesture.cpp b/src/widgets/kernel/qgesture.cpp index 4baeae9021..f475642f78 100644 --- a/src/widgets/kernel/qgesture.cpp +++ b/src/widgets/kernel/qgesture.cpp @@ -987,7 +987,7 @@ void QGestureEvent::ignore(QGesture *gesture) } /*! - Returns true if the \a gesture is accepted; otherwise returns false. + Returns \c true if the \a gesture is accepted; otherwise returns \c false. */ bool QGestureEvent::isAccepted(QGesture *gesture) const { @@ -1044,8 +1044,8 @@ void QGestureEvent::ignore(Qt::GestureType gestureType) } /*! - Returns true if the gesture of type \a gestureType is accepted; otherwise - returns false. + Returns \c true if the gesture of type \a gestureType is accepted; otherwise + returns \c false. */ bool QGestureEvent::isAccepted(Qt::GestureType gestureType) const { @@ -1114,7 +1114,7 @@ QPointF QGestureEvent::mapToGraphicsScene(const QPointF &gesturePoint) const /*! \fn bool QGestureEvent::isAccepted() const - Returns true is the event has been accepted; otherwise returns false. + Returns \c true is the event has been accepted; otherwise returns \c false. \sa QEvent::accepted */ diff --git a/src/widgets/kernel/qgridlayout.cpp b/src/widgets/kernel/qgridlayout.cpp index 7da2104971..5434c40f97 100644 --- a/src/widgets/kernel/qgridlayout.cpp +++ b/src/widgets/kernel/qgridlayout.cpp @@ -1431,8 +1431,8 @@ void QGridLayout::addItem(QLayoutItem *item, int row, int column, int rowSpan, i } /* - Returns true if the widget \a w can be added to the layout \a l; - otherwise returns false. + Returns \c true if the widget \a w can be added to the layout \a l; + otherwise returns \c false. */ static bool checkWidget(QLayout *l, QWidget *w) { diff --git a/src/widgets/kernel/qlayout.cpp b/src/widgets/kernel/qlayout.cpp index b79a6fe6c7..cd2891d829 100644 --- a/src/widgets/kernel/qlayout.cpp +++ b/src/widgets/kernel/qlayout.cpp @@ -234,7 +234,7 @@ void QLayout::addWidget(QWidget *w) /*! Sets the alignment for widget \a w to \a alignment and returns true if \a w is found in this layout (not including child - layouts); otherwise returns false. + layouts); otherwise returns \c false. */ bool QLayout::setAlignment(QWidget *w, Qt::Alignment alignment) { @@ -256,8 +256,8 @@ bool QLayout::setAlignment(QWidget *w, Qt::Alignment alignment) \overload Sets the alignment for the layout \a l to \a alignment and - returns true if \a l is found in this layout (not including child - layouts); otherwise returns false. + returns \c true if \a l is found in this layout (not including child + layouts); otherwise returns \c false. */ bool QLayout::setAlignment(QLayout *l, Qt::Alignment alignment) { @@ -1386,7 +1386,7 @@ void QLayout::setEnabled(bool enable) } /*! - Returns true if the layout is enabled; otherwise returns false. + Returns \c true if the layout is enabled; otherwise returns \c false. \sa setEnabled() */ diff --git a/src/widgets/kernel/qlayoutitem.cpp b/src/widgets/kernel/qlayoutitem.cpp index a99ea77ce2..259af8a5e8 100644 --- a/src/widgets/kernel/qlayoutitem.cpp +++ b/src/widgets/kernel/qlayoutitem.cpp @@ -366,8 +366,8 @@ QWidget *QWidgetItem::widget() } /*! - Returns true if this layout's preferred height depends on its - width; otherwise returns false. The default implementation returns + Returns \c true if this layout's preferred height depends on its + width; otherwise returns \c false. The default implementation returns false. Reimplement this function in layout managers that support height @@ -668,7 +668,7 @@ QSize QWidgetItem::sizeHint() const } /*! - Returns true. + Returns \c true. */ bool QSpacerItem::isEmpty() const { @@ -676,7 +676,7 @@ bool QSpacerItem::isEmpty() const } /*! - Returns true if the widget is hidden; otherwise returns false. + Returns \c true if the widget is hidden; otherwise returns \c false. \sa QWidget::isHidden() */ diff --git a/src/widgets/kernel/qshortcut.cpp b/src/widgets/kernel/qshortcut.cpp index 678e6f25d1..f7f7cf1039 100644 --- a/src/widgets/kernel/qshortcut.cpp +++ b/src/widgets/kernel/qshortcut.cpp @@ -72,7 +72,7 @@ static bool correctActionContext(Qt::ShortcutContext context, QAction *a, QWidge /*! \internal - Returns true if the widget \a w is a logical sub window of the current + Returns \c true if the widget \a w is a logical sub window of the current top-level widget. */ bool qWidgetShortcutContextMatcher(QObject *object, Qt::ShortcutContext context) @@ -517,7 +517,7 @@ QKeySequence QShortcut::key() const If the application is in \c WhatsThis mode the shortcut will not emit the signals, but will show the "What's This?" text instead. - By default, this property is true. + By default, this property is \c true. \sa whatsThis */ diff --git a/src/widgets/kernel/qsizepolicy.qdoc b/src/widgets/kernel/qsizepolicy.qdoc index 2c088113e1..1c99131bc4 100644 --- a/src/widgets/kernel/qsizepolicy.qdoc +++ b/src/widgets/kernel/qsizepolicy.qdoc @@ -243,8 +243,8 @@ /*! \fn bool QSizePolicy::hasHeightForWidth() const - Returns true if the widget's preferred height depends on its - width; otherwise returns false. + Returns \c true if the widget's preferred height depends on its + width; otherwise returns \c false. \sa setHeightForWidth() */ @@ -265,8 +265,8 @@ /*! \fn bool QSizePolicy::hasWidthForHeight() const - Returns true if the widget's width depends on its - height; otherwise returns false. + Returns \c true if the widget's width depends on its + height; otherwise returns \c false. \sa setWidthForHeight() */ @@ -274,8 +274,8 @@ /*! \fn bool QSizePolicy::operator==(const QSizePolicy &other) const - Returns true if this policy is equal to \a other; otherwise - returns false. + Returns \c true if this policy is equal to \a other; otherwise + returns \c false. \sa operator!=() */ @@ -283,8 +283,8 @@ /*! \fn bool QSizePolicy::operator!=(const QSizePolicy &other) const - Returns true if this policy is different from \a other; otherwise - returns false. + Returns \c true if this policy is different from \a other; otherwise + returns \c false. \sa operator==() */ diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp index 8399f94976..c898f56015 100644 --- a/src/widgets/kernel/qtooltip.cpp +++ b/src/widgets/kernel/qtooltip.cpp @@ -107,7 +107,7 @@ QT_BEGIN_NAMESPACE The default tool tip color and font can be customized with setPalette() and setFont(). When a tooltip is currently on - display, isVisible() returns true and text() the currently visible + display, isVisible() returns \c true and text() the currently visible text. \note Tool tips use the inactive color group of QPalette, because tool @@ -526,7 +526,7 @@ void QToolTip::showText(const QPoint &pos, const QString &text, QWidget *w) /*! \since 4.4 - Returns true if this tooltip is currently shown. + Returns \c true if this tooltip is currently shown. \sa showText() */ diff --git a/src/widgets/kernel/qwhatsthis.cpp b/src/widgets/kernel/qwhatsthis.cpp index 661317d21a..d5c249c074 100644 --- a/src/widgets/kernel/qwhatsthis.cpp +++ b/src/widgets/kernel/qwhatsthis.cpp @@ -542,8 +542,8 @@ void QWhatsThis::enterWhatsThisMode() } /*! - Returns true if the user interface is in "What's This?" mode; - otherwise returns false. + Returns \c true if the user interface is in "What's This?" mode; + otherwise returns \c false. \sa enterWhatsThisMode() */ diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 02d95d2fa5..f439edcf2e 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -369,7 +369,7 @@ void QWidgetPrivate::updateWidgetTransform() QPointer QWidgetPrivate::editingWidget; /*! - Returns true if this widget currently has edit focus; otherwise false. + Returns \c true if this widget currently has edit focus; otherwise false. This feature is only available in Qt for Embedded Linux. @@ -445,7 +445,7 @@ void QWidget::setEditFocus(bool on) \l{Qt Style Sheets}. When a widget has a style sheet with a valid background or a border-image, this property is automatically disabled. - By default, this property is false. + By default, this property is \c false. \sa Qt::WA_OpaquePaintEvent, Qt::WA_NoSystemBackground, {QWidget#Transparency and Double Buffering}{Transparency and Double Buffering} @@ -1634,7 +1634,7 @@ void QWidgetPrivate::deleteExtra() } /* - Returns true if there are widgets above this which overlap with + Returns \c true if there are widgets above this which overlap with \a rect, which is in parent's coordinate system (same as crect). */ @@ -2583,8 +2583,8 @@ void QWidgetPrivate::inheritStyle() /*! \fn bool QWidget::isWindow() const - Returns true if the widget is an independent window, otherwise - returns false. + Returns \c true if the widget is an independent window, otherwise + returns \c false. A window is a widget that isn't visually the child of any other widget and that usually has a frame and a @@ -2610,7 +2610,7 @@ void QWidgetPrivate::inheritStyle() This property only makes sense for windows. A modal widget prevents widgets in all other windows from getting any input. - By default, this property is false. + By default, this property is \c false. \sa isWindow(), windowModality, QDialog */ @@ -2647,8 +2647,8 @@ void QWidget::setWindowModality(Qt::WindowModality windowModality) /*! \fn bool QWidget::underMouse() const - Returns true if the widget is under the mouse cursor; otherwise - returns false. + Returns \c true if the widget is under the mouse cursor; otherwise + returns \c false. This value is not updated properly during drag and drop operations. @@ -2662,7 +2662,7 @@ void QWidget::setWindowModality(Qt::WindowModality windowModality) This property is only relevant for windows. - By default, this property is false. + By default, this property is \c false. \sa showMinimized(), visible, show(), hide(), showNormal(), maximized */ @@ -2702,7 +2702,7 @@ void QWidget::showMinimized() from any other resize). This is expected to improve as window manager protocols evolve. - By default, this property is false. + By default, this property is \c false. \sa windowState(), showMaximized(), visible, show(), hide(), showNormal(), minimized */ @@ -2744,7 +2744,7 @@ void QWidget::overrideWindowState(Qt::WindowStates newstate) combination of Qt::WindowState: Qt::WindowMinimized, Qt::WindowMaximized, Qt::WindowFullScreen, and Qt::WindowActive. - If the window is not visible (i.e. isVisible() returns false), the + If the window is not visible (i.e. isVisible() returns \c false), the window state will take effect when show() is called. For visible windows, the change is immediate. For example, to toggle between full-screen and normal mode, use the following code: @@ -2775,7 +2775,7 @@ void QWidget::overrideWindowState(Qt::WindowStates newstate) A widget in full screen mode occupies the whole screen area and does not display window decorations, such as a title bar. - By default, this property is false. + By default, this property is \c false. \sa windowState(), minimized, maximized */ @@ -2891,8 +2891,8 @@ void QWidget::showNormal() } /*! - Returns true if this widget would become enabled if \a ancestor is - enabled; otherwise returns false. + Returns \c true if this widget would become enabled if \a ancestor is + enabled; otherwise returns \c false. @@ -3052,7 +3052,7 @@ QList QWidget::actions() const explicitly disabled. It it not possible to explicitly enable a child widget which is not a window while its parent widget remains disabled. - By default, this property is true. + By default, this property is \c true. \sa isEnabledTo(), QKeyEvent, QMouseEvent, changeEvent() */ @@ -3135,7 +3135,7 @@ void QWidgetPrivate::setEnabled_helper(bool enable) \warning Do not modify this property in a drag and drop event handler. - By default, this property is false. + By default, this property is \c false. \sa {Drag and Drop} */ @@ -5513,7 +5513,7 @@ void QWidget::unsetLocale() contain a "[*]" placeholder, which indicates where the '*' should appear. Normally, it should appear right after the file name (e.g., "document1.txt[*] - Text Editor"). If the \l - windowModified property is false (the default), the placeholder + windowModified property is \c false (the default), the placeholder is simply removed. On some desktop platforms (including Windows and Unix), the application name @@ -5879,7 +5879,7 @@ QWidget * QWidget::focusProxy() const \brief whether this widget (or its focus proxy) has the keyboard input focus - By default, this property is false. + By default, this property is \c false. \note Obtaining the value of this property for a widget is effectively equivalent to checking whether QApplication::focusWidget() refers to the widget. @@ -6132,7 +6132,7 @@ void QWidget::clearFocus() \fn bool QWidget::focusNextChild() Finds a new widget to give the keyboard focus to, as appropriate - for \uicontrol Tab, and returns true if it can find a new widget, or + for \uicontrol Tab, and returns \c true if it can find a new widget, or false if it can't. \sa focusPreviousChild() @@ -6142,7 +6142,7 @@ void QWidget::clearFocus() \fn bool QWidget::focusPreviousChild() Finds a new widget to give the keyboard focus to, as appropriate - for \uicontrol Shift+Tab, and returns true if it can find a new widget, + for \uicontrol Shift+Tab, and returns \c true if it can find a new widget, or false if it can't. \sa focusNextChild() @@ -6150,7 +6150,7 @@ void QWidget::clearFocus() /*! Finds a new widget to give the keyboard focus to, as appropriate - for Tab and Shift+Tab, and returns true if it can find a new + for Tab and Shift+Tab, and returns \c true if it can find a new widget, or false if it can't. If \a next is true, this function searches forward, if \a next @@ -6257,10 +6257,10 @@ QWidget *QWidget::previousInFocusChain() const keyboard focus (The window may still have focus if it has no widgets or none of its widgets accepts keyboard focus). - When popup windows are visible, this property is true for both the + When popup windows are visible, this property is \c true for both the active window \e and for the popup. - By default, this property is false. + By default, this property is \c false. \sa activateWindow(), QApplication::activeWindow() */ @@ -6640,8 +6640,8 @@ QByteArray QWidget::saveGeometry() const \since 4.2 Restores the geometry and state top-level widgets stored in the - byte array \a geometry. Returns true on success; otherwise - returns false. + byte array \a geometry. Returns \c true on success; otherwise + returns \c false. If the restored geometry is off-screen, it will be modified to be inside the available screen geometry. @@ -6965,7 +6965,7 @@ void QWidget::setFocusPolicy(Qt::FocusPolicy policy) calling update() and repaint() has no effect if updates are disabled. - By default, this property is true. + By default, this property is \c true. setUpdatesEnabled() is normally used to disable updates for a short period of time, for instance to avoid screen flicker during @@ -7261,7 +7261,7 @@ void QWidgetPrivate::hide_helper() /*! \fn bool QWidget::isHidden() const - Returns true if the widget is hidden, otherwise returns false. + Returns \c true if the widget is hidden, otherwise returns \c false. A hidden widget will only become visible when show() is called on it. It will not be automatically shown when the parent is shown. @@ -7567,8 +7567,8 @@ bool QWidgetPrivate::close_helper(CloseMode mode) /*! - Closes this widget. Returns true if the widget was closed; - otherwise returns false. + Closes this widget. Returns \c true if the widget was closed; + otherwise returns \c false. First it sends the widget a QCloseEvent. The widget is \l{hide()}{hidden} if it \l{QCloseEvent::accept()}{accepts} @@ -7636,8 +7636,8 @@ bool QWidget::close() /*! - Returns true if this widget would become visible if \a ancestor is - shown; otherwise returns false. + Returns \c true if this widget would become visible if \a ancestor is + shown; otherwise returns \c false. The true case occurs if neither the widget itself nor any parent up to but excluding \a ancestor has been explicitly hidden. @@ -7827,9 +7827,9 @@ QSize QWidget::minimumSizeHint() const /*! - Returns true if this widget is a parent, (or grandparent and so on + Returns \c true if this widget is a parent, (or grandparent and so on to any level), of the given \a child, and both widgets are within - the same window; otherwise returns false. + the same window; otherwise returns \c false. */ bool QWidget::isAncestorOf(const QWidget *child) const @@ -7884,8 +7884,8 @@ inline void setDisabledStyle(QWidget *w, bool setStyle) handlers such as mousePressEvent(); otherwise it will discard the event. - This function returns true if the event was recognized, otherwise - it returns false. If the recognized event was accepted (see \l + This function returns \c true if the event was recognized, otherwise + it returns \c false. If the recognized event was accepted (see \l QEvent::accepted), any further processing such as event propagation to the parent widget stops. @@ -9349,7 +9349,7 @@ int QWidget::heightForWidth(int w) const /*! \since 5.0 - Returns true if the widget's preferred height depends on its width; otherwise returns false. + Returns \c true if the widget's preferred height depends on its width; otherwise returns \c false. */ bool QWidget::hasHeightForWidth() const { @@ -10324,8 +10324,8 @@ void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on) /*! \fn bool QWidget::testAttribute(Qt::WidgetAttribute attribute) const - Returns true if attribute \a attribute is set on this widget; - otherwise returns false. + Returns \c true if attribute \a attribute is set on this widget; + otherwise returns \c false. \sa setAttribute() */ @@ -10888,7 +10888,7 @@ QRect QWidgetPrivate::frameStrut() const Changes the focus from the current focusWidget to a widget in the \a direction. - Returns true, if there was a widget in that direction + Returns \c true, if there was a widget in that direction */ bool QWidgetPrivate::navigateToDirection(Direction direction) { @@ -11249,7 +11249,7 @@ void QWidget::ungrabGesture(Qt::GestureType gesture) button is released. \note Only visible widgets can grab mouse input. If isVisible() - returns false for a widget, that widget cannot call grabMouse(). + returns \c false for a widget, that widget cannot call grabMouse(). \note \b{(Mac OS X developers)} For \e Cocoa, calling grabMouse() on a widget only works when the mouse is inside the diff --git a/src/widgets/kernel/qwidget_p.h b/src/widgets/kernel/qwidget_p.h index 88aff2b65d..cc740034fc 100644 --- a/src/widgets/kernel/qwidget_p.h +++ b/src/widgets/kernel/qwidget_p.h @@ -274,7 +274,7 @@ struct QWExtra { /*! \internal - Returns true if \a p or any of its parents enable the + Returns \c true if \a p or any of its parents enable the Qt::BypassGraphicsProxyWidget window flag. Used in QWidget::show() and QWidget::setParent() to determine whether it's necessary to embed the widget into a QGraphicsProxyWidget or not. diff --git a/src/widgets/styles/qstylepainter.cpp b/src/widgets/styles/qstylepainter.cpp index 5c2c44b45b..bc1fe748a8 100644 --- a/src/widgets/styles/qstylepainter.cpp +++ b/src/widgets/styles/qstylepainter.cpp @@ -100,7 +100,7 @@ QT_BEGIN_NAMESPACE \fn bool QStylePainter::begin(QWidget *widget) Begin painting operations on the specified \a widget. - Returns true if the painter is ready to use; otherwise returns false. + Returns \c true if the painter is ready to use; otherwise returns \c false. This is automatically called by the constructor that takes a QWidget. */ diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 85520d3c40..417e092e11 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -2379,7 +2379,7 @@ static QWidget *containerWidget(const QWidget *w) } /** \internal - returns true if the widget can NOT be styled directly + returns \c true if the widget can NOT be styled directly */ static bool unstylable(const QWidget *w) { @@ -5840,7 +5840,7 @@ void QStyleSheetStyle::clearWidgetFont(QWidget* w) const // Polish palette that should be used for a particular widget, with particular states // (eg. :focus, :hover, ...) // this is called by widgets that paint themself in their paint event -// Returns true if there is a new palette in pal. +// Returns \c true if there is a new palette in pal. bool QStyleSheetStyle::styleSheetPalette(const QWidget* w, const QStyleOption* opt, QPalette* pal) { if (!w || !opt || !pal) diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp index b153d05885..dde705f9b9 100644 --- a/src/widgets/styles/qwindowsstyle.cpp +++ b/src/widgets/styles/qwindowsstyle.cpp @@ -130,7 +130,7 @@ QWindowsStylePrivate::QWindowsStylePrivate() #endif } -// Returns true if the toplevel parent of \a widget has seen the Alt-key +// Returns \c true if the toplevel parent of \a widget has seen the Alt-key bool QWindowsStylePrivate::hasSeenAlt(const QWidget *widget) const { widget = widget->window(); diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp index 22458eb96f..2f36944b5e 100644 --- a/src/widgets/styles/qwindowsvistastyle.cpp +++ b/src/widgets/styles/qwindowsvistastyle.cpp @@ -2502,7 +2502,7 @@ bool QWindowsVistaStylePrivate::transitionsEnabled() const } /*! \internal - Returns true if all the necessary theme engine symbols were + Returns \c true if all the necessary theme engine symbols were resolved. */ bool QWindowsVistaStylePrivate::resolveSymbols() diff --git a/src/widgets/styles/qwindowsxpstyle.cpp b/src/widgets/styles/qwindowsxpstyle.cpp index 506a148d2f..63ed3ef7c8 100644 --- a/src/widgets/styles/qwindowsxpstyle.cpp +++ b/src/widgets/styles/qwindowsxpstyle.cpp @@ -169,7 +169,7 @@ static inline HDC hdcForWidgetBackingStore(const QWidget *widget) // Theme data helper ------------------------------------------------------------------------------ /* \internal - Returns true if the themedata is valid for use. + Returns \c true if the themedata is valid for use. */ bool XPThemeData::isValid() { @@ -399,7 +399,7 @@ const QPixmap *QWindowsXPStylePrivate::tabBody(QWidget *) } /*! \internal - Returns true if all the necessary theme engine symbols were + Returns \c true if all the necessary theme engine symbols were resolved. */ bool QWindowsXPStylePrivate::resolveSymbols() @@ -501,7 +501,7 @@ HBITMAP QWindowsXPStylePrivate::buffer(int w, int h) } /*! \internal - Returns true if the part contains any transparency at all. This does + Returns \c true if the part contains any transparency at all. This does not indicate what kind of transparency we're dealing with. It can be - Alpha transparency - Masked transparency @@ -572,7 +572,7 @@ void QWindowsXPStylePrivate::setTransparency(QWidget *widget, XPThemeData &theme } /*! \internal - Returns true if the native doublebuffer contains pixels with + Returns \c true if the native doublebuffer contains pixels with varying alpha value. */ bool QWindowsXPStylePrivate::hasAlphaChannel(const QRect &rect) diff --git a/src/widgets/util/qcompleter.cpp b/src/widgets/util/qcompleter.cpp index 97e6a04992..ab3c640421 100644 --- a/src/widgets/util/qcompleter.cpp +++ b/src/widgets/util/qcompleter.cpp @@ -1469,8 +1469,8 @@ void QCompleter::complete(const QRect& rect) } /*! - Sets the current row to the \a row specified. Returns true if successful; - otherwise returns false. + Sets the current row to the \a row specified. Returns \c true if successful; + otherwise returns \c false. This function may be used along with currentCompletion() to iterate through all the possible completions. diff --git a/src/widgets/util/qscroller.cpp b/src/widgets/util/qscroller.cpp index 0a58711b92..235cbc7865 100644 --- a/src/widgets/util/qscroller.cpp +++ b/src/widgets/util/qscroller.cpp @@ -1429,7 +1429,7 @@ void QScrollerPrivate::createScrollingSegments(const QPointF &v, /*! \internal Prepares scrolling by sending a QScrollPrepareEvent to the receiver widget. - Returns true if the scrolling was accepted and a target was returned. + Returns \c true if the scrolling was accepted and a target was returned. */ bool QScrollerPrivate::prepareScrolling(const QPointF &position) { diff --git a/src/widgets/util/qscrollerproperties.cpp b/src/widgets/util/qscrollerproperties.cpp index cebb054a53..66b1c284c1 100644 --- a/src/widgets/util/qscrollerproperties.cpp +++ b/src/widgets/util/qscrollerproperties.cpp @@ -139,7 +139,7 @@ QScrollerProperties::~QScrollerProperties() } /*! - Returns true if these scroller properties are equal to \a sp; otherwise returns false. + Returns \c true if these scroller properties are equal to \a sp; otherwise returns \c false. */ bool QScrollerProperties::operator==(const QScrollerProperties &sp) const { @@ -147,7 +147,7 @@ bool QScrollerProperties::operator==(const QScrollerProperties &sp) const } /*! - Returns true if these scroller properties are different from \a sp; otherwise returns false. + Returns \c true if these scroller properties are different from \a sp; otherwise returns \c false. */ bool QScrollerProperties::operator!=(const QScrollerProperties &sp) const { diff --git a/src/widgets/util/qsystemtrayicon.cpp b/src/widgets/util/qsystemtrayicon.cpp index f74d88f6a0..08b24a8200 100644 --- a/src/widgets/util/qsystemtrayicon.cpp +++ b/src/widgets/util/qsystemtrayicon.cpp @@ -337,7 +337,7 @@ bool QSystemTrayIcon::event(QEvent *e) /*! - Returns true if the system tray is available; otherwise returns false. + Returns \c true if the system tray is available; otherwise returns \c false. If the system tray is currently unavailable but becomes available later, QSystemTrayIcon will automatically add an entry in the system tray if it @@ -350,7 +350,7 @@ bool QSystemTrayIcon::isSystemTrayAvailable() } /*! - Returns true if the system tray supports balloon messages; otherwise returns false. + Returns \c true if the system tray supports balloon messages; otherwise returns \c false. \sa showMessage() */ diff --git a/src/widgets/util/qundogroup.cpp b/src/widgets/util/qundogroup.cpp index 57563c434b..a2b256b4ce 100644 --- a/src/widgets/util/qundogroup.cpp +++ b/src/widgets/util/qundogroup.cpp @@ -294,7 +294,7 @@ void QUndoGroup::redo() Returns the value of the active stack's QUndoStack::canUndo(). If none of the stacks are active, or if the group is empty, this function - returns false. + returns \c false. \sa canRedo(), setActiveStack() */ @@ -309,7 +309,7 @@ bool QUndoGroup::canUndo() const Returns the value of the active stack's QUndoStack::canRedo(). If none of the stacks are active, or if the group is empty, this function - returns false. + returns \c false. \sa canUndo(), setActiveStack() */ @@ -354,7 +354,7 @@ QString QUndoGroup::redoText() const Returns the value of the active stack's QUndoStack::isClean(). If none of the stacks are active, or if the group is empty, this function - returns true. + returns \c true. \sa setActiveStack() */ diff --git a/src/widgets/util/qundostack.cpp b/src/widgets/util/qundostack.cpp index 46730ef7bd..2ca482be96 100644 --- a/src/widgets/util/qundostack.cpp +++ b/src/widgets/util/qundostack.cpp @@ -169,10 +169,10 @@ int QUndoCommand::id() const } /*! - Attempts to merge this command with \a command. Returns true on - success; otherwise returns false. + Attempts to merge this command with \a command. Returns \c true on + success; otherwise returns \c false. - If this function returns true, calling this command's redo() must have the same + If this function returns \c true, calling this command's redo() must have the same effect as redoing both this command and \a command. Similarly, calling this command's undo() must have the same effect as undoing \a command and this command. @@ -180,7 +180,7 @@ int QUndoCommand::id() const QUndoStack will only try to merge two commands if they have the same id, and the id is not -1. - The default implementation returns false. + The default implementation returns \c false. \snippet code/src_gui_util_qundostack.cpp 3 @@ -461,7 +461,7 @@ void QUndoStackPrivate::setIndex(int idx, bool clean) If the number of commands on the stack exceedes the undo limit, deletes commands from the bottom of the stack. - Returns true if commands were deleted. + Returns \c true if commands were deleted. */ bool QUndoStackPrivate::checkUndoLimit() @@ -565,7 +565,7 @@ void QUndoStack::clear() If \a cmd's id is not -1, and if the id is the same as that of the most recently executed command, QUndoStack will attempt to merge the two commands by calling QUndoCommand::mergeWith() on the most recently executed - command. If QUndoCommand::mergeWith() returns true, \a cmd is deleted. + command. If QUndoCommand::mergeWith() returns \c true, \a cmd is deleted. In all other cases \a cmd is simply pushed on the stack. @@ -650,7 +650,7 @@ void QUndoStack::setClean() } /*! - If the stack is in the clean state, returns true; otherwise returns false. + If the stack is in the clean state, returns \c true; otherwise returns \c false. \sa setClean(), cleanIndex() */ @@ -789,9 +789,9 @@ void QUndoStack::setIndex(int idx) } /*! - Returns true if there is a command available for undo; otherwise returns false. + Returns \c true if there is a command available for undo; otherwise returns \c false. - This function returns false if the stack is empty, or if the bottom command + This function returns \c false if the stack is empty, or if the bottom command on the stack has already been undone. Synonymous with index() == 0. @@ -808,9 +808,9 @@ bool QUndoStack::canUndo() const } /*! - Returns true if there is a command available for redo; otherwise returns false. + Returns \c true if there is a command available for redo; otherwise returns \c false. - This function returns false if the stack is empty or if the top command + This function returns \c false if the stack is empty or if the top command on the stack has already been redone. Synonymous with index() == count(). diff --git a/src/widgets/widgets/qabstractbutton.cpp b/src/widgets/widgets/qabstractbutton.cpp index cdadde5cc1..acec526512 100644 --- a/src/widgets/widgets/qabstractbutton.cpp +++ b/src/widgets/widgets/qabstractbutton.cpp @@ -795,7 +795,7 @@ bool QAbstractButton::isChecked() const \property QAbstractButton::down \brief whether the button is pressed down - If this property is true, the button is pressed down. The signals + If this property is \c true, the button is pressed down. The signals pressed() and clicked() are not emitted if you set this property to true. The default is false. */ @@ -1038,8 +1038,8 @@ void QAbstractButton::nextCheckState() } /*! -Returns true if \a pos is inside the clickable button rectangle; -otherwise returns false. +Returns \c true if \a pos is inside the clickable button rectangle; +otherwise returns \c false. By default, the clickable area is the entire widget. Subclasses may reimplement this function to provide support for clickable diff --git a/src/widgets/widgets/qabstractscrollarea.cpp b/src/widgets/widgets/qabstractscrollarea.cpp index e7827055fb..d8ee923f7a 100644 --- a/src/widgets/widgets/qabstractscrollarea.cpp +++ b/src/widgets/widgets/qabstractscrollarea.cpp @@ -1146,8 +1146,8 @@ bool QAbstractScrollArea::event(QEvent *e) It handles the \a event specified, and can be called by subclasses to provide reasonable default behavior. - Returns true to indicate to the event system that the event has been - handled, and needs no further processing; otherwise returns false to + Returns \c true to indicate to the event system that the event has been + handled, and needs no further processing; otherwise returns \c false to indicate that the event should be propagated further. You can reimplement this function in a subclass, but we recommend diff --git a/src/widgets/widgets/qabstractslider.cpp b/src/widgets/widgets/qabstractslider.cpp index 8c3dedb84f..40d8c6b417 100644 --- a/src/widgets/widgets/qabstractslider.cpp +++ b/src/widgets/widgets/qabstractslider.cpp @@ -549,7 +549,7 @@ void QAbstractSlider::setValue(int value) \property QAbstractSlider::invertedAppearance \brief whether or not a slider shows its values inverted. - If this property is false (the default), the minimum and maximum will + If this property is \c false (the default), the minimum and maximum will be shown in its classic position for the inherited widget. If the value is true, the minimum and maximum appear at their opposite location. @@ -577,7 +577,7 @@ void QAbstractSlider::setInvertedAppearance(bool invert) \property QAbstractSlider::invertedControls \brief whether or not the slider inverts its wheel and key events. - If this property is false, scrolling the mouse wheel "up" and using keys + If this property is \c false, scrolling the mouse wheel "up" and using keys like page up will increase the slider's value towards its maximum. Otherwise pressing page up will move value towards the slider's minimum. */ diff --git a/src/widgets/widgets/qabstractspinbox.cpp b/src/widgets/widgets/qabstractspinbox.cpp index 0355578327..25369a01b6 100644 --- a/src/widgets/widgets/qabstractspinbox.cpp +++ b/src/widgets/widgets/qabstractspinbox.cpp @@ -1408,7 +1408,7 @@ void QAbstractSpinBoxPrivate::updateEditFieldGeometry() } /*! \internal - Returns true if a specialValueText has been set and the current value is minimum. + Returns \c true if a specialValueText has been set and the current value is minimum. */ bool QAbstractSpinBoxPrivate::specialValue() const diff --git a/src/widgets/widgets/qbuttongroup.cpp b/src/widgets/widgets/qbuttongroup.cpp index c484b154fd..1385ef590e 100644 --- a/src/widgets/widgets/qbuttongroup.cpp +++ b/src/widgets/widgets/qbuttongroup.cpp @@ -103,7 +103,7 @@ \property QButtonGroup::exclusive \brief whether the button group is exclusive - If this property is true, then only one button in the group can be checked + If this property is \c true, then only one button in the group can be checked at any given time. The user can click on any button to check it, and that button will replace the existing one as the checked button in the group. @@ -111,7 +111,7 @@ by clicking on it; instead, another button in the group must be clicked to set the new checked button for that group. - By default, this property is true. + By default, this property is \c true. */ /*! diff --git a/src/widgets/widgets/qcalendarwidget.cpp b/src/widgets/widgets/qcalendarwidget.cpp index 82c5a29497..8755f99288 100644 --- a/src/widgets/widgets/qcalendarwidget.cpp +++ b/src/widgets/widgets/qcalendarwidget.cpp @@ -2954,7 +2954,7 @@ void QCalendarWidget::updateCells() \since 4.3 - When this property is true (the default), the next month, + When this property is \c true (the default), the next month, previous month, month selection, year selection controls are shown on top. diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index 90310308c3..37a14d3eb3 100644 --- a/src/widgets/widgets/qcombobox.cpp +++ b/src/widgets/widgets/qcombobox.cpp @@ -1379,7 +1379,7 @@ int QComboBox::maxCount() const Use setCompleter() instead. - By default, this property is true. + By default, this property is \c true. \sa editable */ @@ -1473,7 +1473,7 @@ void QComboBox::setAutoCompletionCaseSensitivity(Qt::CaseSensitivity sensitivity Note that it is always possible to programmatically insert duplicate items into the combobox. - By default, this property is false (duplicates are not allowed). + By default, this property is \c false (duplicates are not allowed). */ bool QComboBox::duplicatesEnabled() const { @@ -1632,7 +1632,7 @@ void QComboBox::setIconSize(const QSize &size) \property QComboBox::editable \brief whether the combo box can be edited by the user - By default, this property is false. The effect of editing depends + By default, this property is \c false. The effect of editing depends on the insert policy. \sa InsertPolicy diff --git a/src/widgets/widgets/qdial.cpp b/src/widgets/widgets/qdial.cpp index b415b5254a..632e548e6f 100644 --- a/src/widgets/widgets/qdial.cpp +++ b/src/widgets/widgets/qdial.cpp @@ -369,7 +369,7 @@ void QDial::setWrapping(bool enable) into the space at the bottom of the dial, it will be clamped to the closest end of the valid range of values. - By default this property is false. + By default this property is \c false. */ bool QDial::wrapping() const @@ -450,7 +450,7 @@ void QDial::setNotchesVisible(bool visible) \property QDial::notchesVisible \brief whether the notches are shown - If the property is true, a series of notches are drawn around the dial + If the property is \c true, a series of notches are drawn around the dial to indicate the range of values available; otherwise no notches are shown. diff --git a/src/widgets/widgets/qdialogbuttonbox.cpp b/src/widgets/widgets/qdialogbuttonbox.cpp index 226969cdd1..9789c453f3 100644 --- a/src/widgets/widgets/qdialogbuttonbox.cpp +++ b/src/widgets/widgets/qdialogbuttonbox.cpp @@ -1075,7 +1075,7 @@ void QDialogButtonBoxPrivate::_q_handleButtonDestroyed() \property QDialogButtonBox::centerButtons \brief whether the buttons in the button box are centered - By default, this property is false. This behavior is appopriate + By default, this property is \c false. This behavior is appopriate for most types of dialogs. A notable exception is message boxes on most platforms (e.g. Windows), where the button box is centered horizontally. diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index 45e3f1b10b..a9b21cbc81 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -1247,7 +1247,7 @@ QDockWidget::DockWidgetFeatures QDockWidget::features() const window "on top" of its parent QMainWindow, instead of being docked in the QMainWindow. - By default, this property is true. + By default, this property is \c true. \sa isWindow() */ @@ -1301,8 +1301,8 @@ Qt::DockWidgetAreas QDockWidget::allowedAreas() const /*! \fn bool QDockWidget::isAreaAllowed(Qt::DockWidgetArea area) const - Returns true if this dock widget can be placed in the given \a area; - otherwise returns false. + Returns \c true if this dock widget can be placed in the given \a area; + otherwise returns \c false. */ /*! \reimp */ diff --git a/src/widgets/widgets/qgroupbox.cpp b/src/widgets/widgets/qgroupbox.cpp index d82f151165..14d434ec28 100644 --- a/src/widgets/widgets/qgroupbox.cpp +++ b/src/widgets/widgets/qgroupbox.cpp @@ -543,7 +543,7 @@ void QGroupBox::setFlat(bool b) \property QGroupBox::checkable \brief whether the group box has a checkbox in its title - If this property is true, the group box displays its title using + If this property is \c true, the group box displays its title using a checkbox in place of an ordinary label. If the checkbox is checked, the group box's children are enabled; otherwise, they are disabled and inaccessible. diff --git a/src/widgets/widgets/qlabel.cpp b/src/widgets/widgets/qlabel.cpp index 7f2a7684eb..919d7090e0 100644 --- a/src/widgets/widgets/qlabel.cpp +++ b/src/widgets/widgets/qlabel.cpp @@ -460,7 +460,7 @@ Qt::Alignment QLabel::alignment() const \property QLabel::wordWrap \brief the label's word-wrapping policy - If this property is true then label text is wrapped where + If this property is \c true then label text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. By default, word wrap is disabled. @@ -749,10 +749,10 @@ void QLabel::setSelection(int start, int length) \property QLabel::hasSelectedText \brief whether there is any text selected - hasSelectedText() returns true if some or all of the text has been - selected by the user; otherwise returns false. + hasSelectedText() returns \c true if some or all of the text has been + selected by the user; otherwise returns \c false. - By default, this property is false. + By default, this property is \c false. \sa selectedText() diff --git a/src/widgets/widgets/qlcdnumber.cpp b/src/widgets/widgets/qlcdnumber.cpp index 5104171fb1..11a456bc47 100644 --- a/src/widgets/widgets/qlcdnumber.cpp +++ b/src/widgets/widgets/qlcdnumber.cpp @@ -468,8 +468,8 @@ int QLCDNumber::digitCount() const /*! \overload - Returns true if \a num is too big to be displayed in its entirety; - otherwise returns false. + Returns \c true if \a num is too big to be displayed in its entirety; + otherwise returns \c false. \sa display(), digitCount(), smallDecimalPoint() */ @@ -484,8 +484,8 @@ bool QLCDNumber::checkOverflow(int num) const /*! - Returns true if \a num is too big to be displayed in its entirety; - otherwise returns false. + Returns \c true if \a num is too big to be displayed in its entirety; + otherwise returns \c false. \sa display(), digitCount(), smallDecimalPoint() */ diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp index adf70fde66..d3c37ab612 100644 --- a/src/widgets/widgets/qlineedit.cpp +++ b/src/widgets/widgets/qlineedit.cpp @@ -908,7 +908,7 @@ void QLineEdit::end(bool mark) do not start out knowing what the default should be (perhaps it depends on other fields on the form). Start the line edit without the best default, and when the default is known, if modified() - returns false (the user hasn't entered any text), insert the + returns \c false (the user hasn't entered any text), insert the default value. Calling setText() resets the modified flag to false. @@ -930,10 +930,10 @@ void QLineEdit::setModified(bool modified) \property QLineEdit::hasSelectedText \brief whether there is any text selected - hasSelectedText() returns true if some or all of the text has been - selected by the user; otherwise returns false. + hasSelectedText() returns \c true if some or all of the text has been + selected by the user; otherwise returns \c false. - By default, this property is false. + By default, this property is \c false. \sa selectedText() */ @@ -1011,7 +1011,7 @@ void QLineEdit::setSelection(int start, int length) Undo becomes available once the user has modified the text in the line edit. - By default, this property is false. + By default, this property is \c false. */ bool QLineEdit::isUndoAvailable() const @@ -1027,7 +1027,7 @@ bool QLineEdit::isUndoAvailable() const Redo becomes available once the user has performed one or more undo operations on text in the line edit. - By default, this property is false. + By default, this property is \c false. */ bool QLineEdit::isRedoAvailable() const @@ -1089,7 +1089,7 @@ void QLineEdit::setCursorMoveStyle(Qt::CursorMoveStyle style) \brief whether the input satisfies the inputMask and the validator. - By default, this property is true. + By default, this property is \c true. \sa setInputMask(), setValidator() */ @@ -1320,7 +1320,7 @@ void QLineEdit::redo() QLineEdit does not show a cursor in read-only mode. - By default, this property is false. + By default, this property is \c false. \sa setEnabled() */ diff --git a/src/widgets/widgets/qmainwindow.cpp b/src/widgets/widgets/qmainwindow.cpp index 0df83189ba..0638981a9c 100644 --- a/src/widgets/widgets/qmainwindow.cpp +++ b/src/widgets/widgets/qmainwindow.cpp @@ -904,8 +904,8 @@ void QMainWindow::setAnimated(bool enabled) \brief whether docks can be nested \since 4.2 - If this property is false, dock areas can only contain a single row - (horizontal or vertical) of dock widgets. If this property is true, + If this property is \c false, dock areas can only contain a single row + (horizontal or vertical) of dock widgets. If this property is \c true, the area occupied by a dock widget can be split in either direction to contain more dock widgets. @@ -1092,8 +1092,8 @@ void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget /*! Restores the state of \a dockwidget if it is created after the call - to restoreState(). Returns true if the state was restored; otherwise - returns false. + to restoreState(). Returns \c true if the state was restored; otherwise + returns \c false. \sa restoreState(), saveState() */ diff --git a/src/widgets/widgets/qmdiarea.cpp b/src/widgets/widgets/qmdiarea.cpp index fd94dadac6..5c1d7a6c05 100644 --- a/src/widgets/widgets/qmdiarea.cpp +++ b/src/widgets/widgets/qmdiarea.cpp @@ -2090,7 +2090,7 @@ void QMdiArea::setOption(AreaOption option, bool on) } /*! - Returns true if \a option is enabled; otherwise returns false. + Returns \c true if \a option is enabled; otherwise returns \c false. \sa AreaOption, setOption() */ diff --git a/src/widgets/widgets/qmdisubwindow.cpp b/src/widgets/widgets/qmdisubwindow.cpp index 63d14f2301..b80eb069e2 100644 --- a/src/widgets/widgets/qmdisubwindow.cpp +++ b/src/widgets/widgets/qmdisubwindow.cpp @@ -2383,7 +2383,7 @@ QWidget *QMdiSubWindow::maximizedSystemMenuIconWidget() const } /*! - Returns true if this window is shaded; otherwise returns false. + Returns \c true if this window is shaded; otherwise returns \c false. A window is shaded if it is collapsed so that only the title bar is visible. @@ -2414,7 +2414,7 @@ void QMdiSubWindow::setOption(SubWindowOption option, bool on) } /*! - Returns true if \a option is enabled; otherwise returns false. + Returns \c true if \a option is enabled; otherwise returns \c false. \sa SubWindowOption, setOption() */ diff --git a/src/widgets/widgets/qmenu.cpp b/src/widgets/widgets/qmenu.cpp index c305748c7d..3a4fd449c8 100644 --- a/src/widgets/widgets/qmenu.cpp +++ b/src/widgets/widgets/qmenu.cpp @@ -1649,7 +1649,7 @@ QAction *QMenu::defaultAction() const This "torn-off" copy lives in a separate window. It contains the same menu items as the original menu, with the exception of the tear-off handle. - By default, this property is false. + By default, this property is \c false. */ void QMenu::setTearOffEnabled(bool b) { @@ -1673,7 +1673,7 @@ bool QMenu::isTearOffEnabled() const /*! When a menu is torn off a second menu is shown to display the menu contents in a new window. When the menu is in this mode and the menu - is visible returns true; otherwise false. + is visible returns \c true; otherwise false. \sa hideTearOffMenu(), isTearOffEnabled() */ @@ -1721,7 +1721,7 @@ QAction *QMenu::activeAction() const /*! \since 4.2 - Returns true if there are no visible actions inserted into the menu, false + Returns \c true if there are no visible actions inserted into the menu, false otherwise. \sa QWidget::actions() @@ -3164,7 +3164,7 @@ QPlatformMenu *QMenu::platformMenu() should be visually collapsed to a single one. Separators at the beginning or the end of the menu are also hidden. - By default, this property is true. + By default, this property is \c true. */ bool QMenu::separatorsCollapsible() const { @@ -3197,7 +3197,7 @@ void QMenu::setSeparatorsCollapsible(bool collapse) This property specifies whether action menu entries show their tooltip. - By default, this property is false. + By default, this property is \c false. */ bool QMenu::toolTipsVisible() const { diff --git a/src/widgets/widgets/qmenubar.cpp b/src/widgets/widgets/qmenubar.cpp index a7cad28df3..9c1e2f0516 100644 --- a/src/widgets/widgets/qmenubar.cpp +++ b/src/widgets/widgets/qmenubar.cpp @@ -1810,7 +1810,7 @@ QWidget *QMenuBar::cornerWidget(Qt::Corner corner) const This property specifies whether or not the menubar should be used as a native menubar on platforms that support it. The currently supported platforms are Mac OS X and Windows CE. On these platforms - if this property is true, the menubar is used in the native menubar and is not in the window of + if this property is \c true, the menubar is used in the native menubar and is not in the window of its parent, if false the menubar remains in the window. On other platforms the value of this attribute has no effect. diff --git a/src/widgets/widgets/qplaintextedit.cpp b/src/widgets/widgets/qplaintextedit.cpp index 5a8da45a88..90f2e47cd3 100644 --- a/src/widgets/widgets/qplaintextedit.cpp +++ b/src/widgets/widgets/qplaintextedit.cpp @@ -1211,7 +1211,7 @@ void QPlainTextEditPrivate::ensureViewportLayouted() Users are only able to undo or redo actions if this property is true, and if there is an action that can be undone (or redone). - By default, this property is true. + By default, this property is \c true. */ /*! @@ -2332,11 +2332,11 @@ QRect QPlainTextEdit::cursorRect() const As with many text editors, the plain text editor widget can be configured to insert or overwrite existing text with new text entered by the user. - If this property is true, existing text is overwritten, character-for-character + If this property is \c true, existing text is overwritten, character-for-character by new text; otherwise, text is inserted at the cursor position, displacing existing text. - By default, this property is false (new text does not overwrite existing text). + By default, this property is \c false (new text does not overwrite existing text). */ bool QPlainTextEdit::overwriteMode() const @@ -2435,7 +2435,7 @@ QMimeData *QPlainTextEdit::createMimeDataFromSelection() const } /*! - This function returns true if the contents of the MIME data object, specified + This function returns \c true if the contents of the MIME data object, specified by \a source, can be decoded and inserted into the document. It is called for example when during a drag operation the mouse enters this widget and it is necessary to determine whether it is possible to accept the drag. @@ -2747,8 +2747,8 @@ void QPlainTextEdit::setCenterOnScroll(bool enabled) /*! Finds the next occurrence of the string, \a exp, using the given - \a options. Returns true if \a exp was found and changes the - cursor to select the match; otherwise returns false. + \a options. Returns \c true if \a exp was found and changes the + cursor to select the match; otherwise returns \c false. */ bool QPlainTextEdit::find(const QString &exp, QTextDocument::FindFlags options) { diff --git a/src/widgets/widgets/qprogressbar.cpp b/src/widgets/widgets/qprogressbar.cpp index e317933e4d..123cb5bd6e 100644 --- a/src/widgets/widgets/qprogressbar.cpp +++ b/src/widgets/widgets/qprogressbar.cpp @@ -533,7 +533,7 @@ Qt::Orientation QProgressBar::orientation() const \property QProgressBar::invertedAppearance \brief whether or not a progress bar shows its progress inverted - If this property is false, the progress bar grows in the other + If this property is \c false, the progress bar grows in the other direction (e.g. from right to left). By default, the progress bar is not inverted. diff --git a/src/widgets/widgets/qsplitter.cpp b/src/widgets/widgets/qsplitter.cpp index 1f3646ea6e..f58881af0d 100644 --- a/src/widgets/widgets/qsplitter.cpp +++ b/src/widgets/widgets/qsplitter.cpp @@ -158,8 +158,8 @@ Qt::Orientation QSplitterHandle::orientation() const /*! - Returns true if widgets are resized dynamically (opaquely), otherwise - returns false. This value is controlled by the QSplitter. + Returns \c true if widgets are resized dynamically (opaquely), otherwise + returns \c false. This value is controlled by the QSplitter. \sa QSplitter::opaqueResize() @@ -1070,7 +1070,7 @@ void QSplitter::setCollapsible(int index, bool collapse) } /*! - Returns true if the widget at \a index is collapsible, otherwise returns false. + Returns \c true if the widget at \a index is collapsible, otherwise returns \c false. */ bool QSplitter::isCollapsible(int index) const { @@ -1616,7 +1616,7 @@ QByteArray QSplitter::saveState() const /*! Restores the splitter's layout to the \a state specified. - Returns true if the state is restored; otherwise returns false. + Returns \c true if the state is restored; otherwise returns \c false. Typically this is used in conjunction with QSettings to restore the size from a past session. Here is an example: diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp index 94c85ff92b..094e9af0de 100644 --- a/src/widgets/widgets/qtabbar.cpp +++ b/src/widgets/widgets/qtabbar.cpp @@ -930,8 +930,8 @@ void QTabBar::removeTab(int index) /*! - Returns true if the tab at position \a index is enabled; otherwise - returns false. + Returns \c true if the tab at position \a index is enabled; otherwise + returns \c false. */ bool QTabBar::isTabEnabled(int index) const { @@ -2219,7 +2219,7 @@ void QTabBar::setExpanding(bool enabled) \since 4.5 - By default, this property is false; + By default, this property is \c false; */ bool QTabBar::isMovable() const diff --git a/src/widgets/widgets/qtabwidget.cpp b/src/widgets/widgets/qtabwidget.cpp index 9d14c01490..8c15b3e58e 100644 --- a/src/widgets/widgets/qtabwidget.cpp +++ b/src/widgets/widgets/qtabwidget.cpp @@ -523,7 +523,7 @@ QIcon QTabWidget::tabIcon(int index) const } /*! - Returns true if the page at position \a index is enabled; otherwise returns false. + Returns \c true if the page at position \a index is enabled; otherwise returns \c false. \sa setTabEnabled(), QWidget::isEnabled() */ @@ -1020,7 +1020,7 @@ void QTabWidget::setTabsClosable(bool closeable) \since 4.5 - By default, this property is false; + By default, this property is \c false; */ bool QTabWidget::isMovable() const diff --git a/src/widgets/widgets/qtextbrowser.cpp b/src/widgets/widgets/qtextbrowser.cpp index e05da51207..273a5dabeb 100644 --- a/src/widgets/widgets/qtextbrowser.cpp +++ b/src/widgets/widgets/qtextbrowser.cpp @@ -643,14 +643,14 @@ void QTextBrowserPrivate::restoreHistoryEntry(const HistoryEntry entry) \property QTextBrowser::readOnly \brief whether the text browser is read-only - By default, this property is true. + By default, this property is \c true. */ /*! \property QTextBrowser::undoRedoEnabled \brief whether the text browser supports undo/redo operations - By default, this property is false. + By default, this property is \c false. */ void QTextBrowserPrivate::init() @@ -1103,7 +1103,7 @@ QVariant QTextBrowser::loadResource(int /*type*/, const QUrl &name) /*! \since 4.2 - Returns true if the text browser can go backward in the document history + Returns \c true if the text browser can go backward in the document history using backward(). \sa backwardAvailable(), backward() @@ -1117,7 +1117,7 @@ bool QTextBrowser::isBackwardAvailable() const /*! \since 4.2 - Returns true if the text browser can go forward in the document history + Returns \c true if the text browser can go forward in the document history using forward(). \sa forwardAvailable(), forward() diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index 4e0c682493..0f61eb487f 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -664,7 +664,7 @@ int QTextEdit::fontWeight() const } /*! - Returns true if the font of the current format is underlined; otherwise returns + Returns \c true if the font of the current format is underlined; otherwise returns false. \sa setFontUnderline() @@ -676,7 +676,7 @@ bool QTextEdit::fontUnderline() const } /*! - Returns true if the font of the current format is italic; otherwise returns + Returns \c true if the font of the current format is italic; otherwise returns false. \sa setFontItalic() @@ -1906,11 +1906,11 @@ QString QTextEdit::anchorAt(const QPoint& pos) const As with many text editors, the text editor widget can be configured to insert or overwrite existing text with new text entered by the user. - If this property is true, existing text is overwritten, character-for-character + If this property is \c true, existing text is overwritten, character-for-character by new text; otherwise, text is inserted at the cursor position, displacing existing text. - By default, this property is false (new text does not overwrite existing text). + By default, this property is \c false (new text does not overwrite existing text). */ bool QTextEdit::overwriteMode() const @@ -2054,7 +2054,7 @@ QMimeData *QTextEdit::createMimeDataFromSelection() const } /*! - This function returns true if the contents of the MIME data object, specified + This function returns \c true if the contents of the MIME data object, specified by \a source, can be decoded and inserted into the document. It is called for example when during a drag operation the mouse enters this widget and it is necessary to determine whether it is possible to accept the drag and drop @@ -2445,8 +2445,8 @@ void QTextEdit::setWordWrapMode(QTextOption::WrapMode mode) /*! Finds the next occurrence of the string, \a exp, using the given - \a options. Returns true if \a exp was found and changes the - cursor to select the match; otherwise returns false. + \a options. Returns \c true if \a exp was found and changes the + cursor to select the match; otherwise returns \c false. */ bool QTextEdit::find(const QString &exp, QTextDocument::FindFlags options) { diff --git a/src/widgets/widgets/qtoolbar.cpp b/src/widgets/widgets/qtoolbar.cpp index 0c2dd20d77..5f80bbb1ca 100644 --- a/src/widgets/widgets/qtoolbar.cpp +++ b/src/widgets/widgets/qtoolbar.cpp @@ -446,8 +446,8 @@ void QToolBarPrivate::plug(const QRect &r) /*! \fn bool QToolBar::isAreaAllowed(Qt::ToolBarArea area) const - Returns true if this toolbar is dockable in the given \a area; - otherwise returns false. + Returns \c true if this toolbar is dockable in the given \a area; + otherwise returns \c false. */ /*! @@ -585,7 +585,7 @@ QToolBar::~QToolBar() \brief whether the user can move the toolbar within the toolbar area, or between toolbar areas. - By default, this property is true. + By default, this property is \c true. This property only makes sense if the toolbar is in a QMainWindow. @@ -631,7 +631,7 @@ void QToolBar::setFloatable(bool floatable) \property QToolBar::floating \brief whether the toolbar is an independent window. - By default, this property is true. + By default, this property is \c true. \sa QWidget::isWindow() */ diff --git a/src/widgets/widgets/qtoolbox.cpp b/src/widgets/widgets/qtoolbox.cpp index 1264a5b6f2..e29fa18e35 100644 --- a/src/widgets/widgets/qtoolbox.cpp +++ b/src/widgets/widgets/qtoolbox.cpp @@ -646,7 +646,7 @@ void QToolBox::setItemToolTip(int index, const QString &toolTip) #endif // QT_NO_TOOLTIP /*! - Returns true if the item at position \a index is enabled; otherwise returns false. + Returns \c true if the item at position \a index is enabled; otherwise returns \c false. */ bool QToolBox::isItemEnabled(int index) const diff --git a/src/widgets/widgets/qwidgetlinecontrol.cpp b/src/widgets/widgets/qwidgetlinecontrol.cpp index 6a41144cc1..b16477246f 100644 --- a/src/widgets/widgets/qwidgetlinecontrol.cpp +++ b/src/widgets/widgets/qwidgetlinecontrol.cpp @@ -416,7 +416,7 @@ QRect QWidgetLineControl::cursorRect() const Fixes the current text so that it is valid given any set validators. - Returns true if the text was changed. Otherwise returns false. + Returns \c true if the text was changed. Otherwise returns \c false. */ bool QWidgetLineControl::fixup() // this function assumes that validate currently returns != Acceptable { @@ -1090,10 +1090,10 @@ bool QWidgetLineControl::isValidInput(QChar key, QChar mask) const /*! \internal - Returns true if the given text \a str is valid for any + Returns \c true if the given text \a str is valid for any validator or input mask set for the line control. - Otherwise returns false + Otherwise returns \c false */ bool QWidgetLineControl::hasAcceptableInput(const QString &str) const { diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index c37172a187..2383bda1c9 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -938,8 +938,8 @@ QDomImplementation& QDomImplementation::operator=(const QDomImplementation &x) } /*! - Returns true if \a x and this DOM implementation object were - created from the same QDomDocument; otherwise returns false. + Returns \c true if \a x and this DOM implementation object were + created from the same QDomDocument; otherwise returns \c false. */ bool QDomImplementation::operator==(const QDomImplementation &x) const { @@ -947,8 +947,8 @@ bool QDomImplementation::operator==(const QDomImplementation &x) const } /*! - Returns true if \a x and this DOM implementation object were - created from different QDomDocuments; otherwise returns false. + Returns \c true if \a x and this DOM implementation object were + created from different QDomDocuments; otherwise returns \c false. */ bool QDomImplementation::operator!=(const QDomImplementation &x) const { @@ -965,8 +965,8 @@ QDomImplementation::~QDomImplementation() } /*! - The function returns true if QDom implements the requested \a - version of a \a feature; otherwise returns false. + The function returns \c true if QDom implements the requested \a + version of a \a feature; otherwise returns \c false. The currently supported features and their versions: \table @@ -1061,8 +1061,8 @@ QDomDocument QDomImplementation::createDocument(const QString& nsURI, const QStr } /*! - Returns false if the object was created by - QDomDocument::implementation(); otherwise returns true. + Returns \c false if the object was created by + QDomDocument::implementation(); otherwise returns \c true. */ bool QDomImplementation::isNull() { @@ -1334,8 +1334,8 @@ QDomNodeList& QDomNodeList::operator=(const QDomNodeList &n) } /*! - Returns true if the node list \a n and this node list are equal; - otherwise returns false. + Returns \c true if the node list \a n and this node list are equal; + otherwise returns \c false. */ bool QDomNodeList::operator==(const QDomNodeList &n) const { @@ -1347,8 +1347,8 @@ bool QDomNodeList::operator==(const QDomNodeList &n) const } /*! - Returns true the node list \a n and this node list are not equal; - otherwise returns false. + Returns \c true the node list \a n and this node list are not equal; + otherwise returns \c false. */ bool QDomNodeList::operator!=(const QDomNodeList &n) const { @@ -1394,7 +1394,7 @@ int QDomNodeList::length() const /*! \fn bool QDomNodeList::isEmpty() const - Returns true if the list contains no items; otherwise returns false. + Returns \c true if the list contains no items; otherwise returns \c false. This function is provided for Qt API consistency. */ @@ -2051,8 +2051,8 @@ QDomNode& QDomNode::operator=(const QDomNode &n) } /*! - Returns true if \a n and this DOM node are equal; otherwise - returns false. + Returns \c true if \a n and this DOM node are equal; otherwise + returns \c false. Any instance of QDomNode acts as a reference to an underlying data structure in QDomDocument. The test for equality checks if the two @@ -2076,8 +2076,8 @@ bool QDomNode::operator== (const QDomNode& n) const } /*! - Returns true if \a n and this DOM node are not equal; otherwise - returns false. + Returns \c true if \a n and this DOM node are not equal; otherwise + returns \c false. */ bool QDomNode::operator!= (const QDomNode& n) const { @@ -2206,7 +2206,7 @@ QDomNode::NodeType QDomNode::nodeType() const /*! Returns the parent node. If this node has no parent, a null node - is returned (i.e. a node for which isNull() returns true). + is returned (i.e. a node for which isNull() returns \c true). */ QDomNode QDomNode::parentNode() const { @@ -2364,9 +2364,9 @@ void QDomNode::normalize() } /*! - Returns true if the DOM implementation implements the feature \a + Returns \c true if the DOM implementation implements the feature \a feature and this feature is supported by this node in the version - \a version; otherwise returns false. + \a version; otherwise returns \c false. \sa QDomImplementation::hasFeature() */ @@ -2466,7 +2466,7 @@ QString QDomNode::localName() const } /*! - Returns true if the node has attributes; otherwise returns false. + Returns \c true if the node has attributes; otherwise returns \c false. \sa attributes() */ @@ -2608,8 +2608,8 @@ QDomNode QDomNode::appendChild(const QDomNode& newChild) } /*! - Returns true if the node has one or more children; otherwise - returns false. + Returns \c true if the node has one or more children; otherwise + returns \c false. */ bool QDomNode::hasChildNodes() const { @@ -2619,8 +2619,8 @@ bool QDomNode::hasChildNodes() const } /*! - Returns true if this node is null (i.e. if it has no type or - contents); otherwise returns false. + Returns \c true if this node is null (i.e. if it has no type or + contents); otherwise returns \c false. */ bool QDomNode::isNull() const { @@ -2706,9 +2706,9 @@ QTextStream& operator<<(QTextStream& str, const QDomNode& node) } /*! - Returns true if the node is an attribute; otherwise returns false. + Returns \c true if the node is an attribute; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomAttribute; you can get the QDomAttribute with toAttribute(). @@ -2722,10 +2722,10 @@ bool QDomNode::isAttr() const } /*! - Returns true if the node is a CDATA section; otherwise returns + Returns \c true if the node is a CDATA section; otherwise returns false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomCDATASection; you can get the QDomCDATASection with toCDATASection(). @@ -2739,10 +2739,10 @@ bool QDomNode::isCDATASection() const } /*! - Returns true if the node is a document fragment; otherwise returns + Returns \c true if the node is a document fragment; otherwise returns false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomDocumentFragment; you can get the QDomDocumentFragment with toDocumentFragment(). @@ -2756,9 +2756,9 @@ bool QDomNode::isDocumentFragment() const } /*! - Returns true if the node is a document; otherwise returns false. + Returns \c true if the node is a document; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomDocument; you can get the QDomDocument with toDocument(). \sa toDocument() @@ -2771,10 +2771,10 @@ bool QDomNode::isDocument() const } /*! - Returns true if the node is a document type; otherwise returns + Returns \c true if the node is a document type; otherwise returns false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomDocumentType; you can get the QDomDocumentType with toDocumentType(). @@ -2788,9 +2788,9 @@ bool QDomNode::isDocumentType() const } /*! - Returns true if the node is an element; otherwise returns false. + Returns \c true if the node is an element; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomElement; you can get the QDomElement with toElement(). \sa toElement() @@ -2803,10 +2803,10 @@ bool QDomNode::isElement() const } /*! - Returns true if the node is an entity reference; otherwise returns + Returns \c true if the node is an entity reference; otherwise returns false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomEntityReference; you can get the QDomEntityReference with toEntityReference(). @@ -2820,9 +2820,9 @@ bool QDomNode::isEntityReference() const } /*! - Returns true if the node is a text node; otherwise returns false. + Returns \c true if the node is a text node; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomText; you can get the QDomText with toText(). \sa toText() @@ -2835,9 +2835,9 @@ bool QDomNode::isText() const } /*! - Returns true if the node is an entity; otherwise returns false. + Returns \c true if the node is an entity; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomEntity; you can get the QDomEntity with toEntity(). \sa toEntity() @@ -2850,9 +2850,9 @@ bool QDomNode::isEntity() const } /*! - Returns true if the node is a notation; otherwise returns false. + Returns \c true if the node is a notation; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomNotation; you can get the QDomNotation with toNotation(). \sa toNotation() @@ -2865,10 +2865,10 @@ bool QDomNode::isNotation() const } /*! - Returns true if the node is a processing instruction; otherwise - returns false. + Returns \c true if the node is a processing instruction; otherwise + returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomProcessingInstruction; you can get the QProcessingInstruction with toProcessingInstruction(). @@ -2882,10 +2882,10 @@ bool QDomNode::isProcessingInstruction() const } /*! - Returns true if the node is a character data node; otherwise - returns false. + Returns \c true if the node is a character data node; otherwise + returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomCharacterData; you can get the QDomCharacterData with toCharacterData(). @@ -2899,9 +2899,9 @@ bool QDomNode::isCharacterData() const } /*! - Returns true if the node is a comment; otherwise returns false. + Returns \c true if the node is a comment; otherwise returns \c false. - If this function returns true, it does not imply that this object + If this function returns \c true, it does not imply that this object is a QDomComment; you can get the QDomComment with toComment(). \sa toComment() @@ -3253,8 +3253,8 @@ QDomNamedNodeMap& QDomNamedNodeMap::operator=(const QDomNamedNodeMap &n) } /*! - Returns true if \a n and this named node map are equal; otherwise - returns false. + Returns \c true if \a n and this named node map are equal; otherwise + returns \c false. */ bool QDomNamedNodeMap::operator== (const QDomNamedNodeMap& n) const { @@ -3262,8 +3262,8 @@ bool QDomNamedNodeMap::operator== (const QDomNamedNodeMap& n) const } /*! - Returns true if \a n and this named node map are not equal; - otherwise returns false. + Returns \c true if \a n and this named node map are not equal; + otherwise returns \c false. */ bool QDomNamedNodeMap::operator!= (const QDomNamedNodeMap& n) const { @@ -3410,7 +3410,7 @@ int QDomNamedNodeMap::length() const /*! \fn bool QDomNamedNodeMap::isEmpty() const - Returns true if the map is empty; otherwise returns false. This function is + Returns \c true if the map is empty; otherwise returns \c false. This function is provided for Qt API consistency. */ @@ -3427,8 +3427,8 @@ int QDomNamedNodeMap::length() const */ /*! - Returns true if the map contains a node called \a name; otherwise - returns false. + Returns \c true if the map contains a node called \a name; otherwise + returns \c false. \b{Note:} This function does not take the presence of namespaces into account. Use namedItemNS() to test whether the map contains a node with a specific namespace @@ -4324,8 +4324,8 @@ QString QDomAttr::name() const } /*! - Returns true if the attribute has been set by the user with setValue(). - Returns false if the value hasn't been specified or set. + Returns \c true if the attribute has been set by the user with setValue(). + Returns \c false if the value hasn't been specified or set. \sa setValue() */ @@ -4955,8 +4955,8 @@ QDomNodeList QDomElement::elementsByTagName(const QString& tagname) const } /*! - Returns true if this element has an attribute called \a name; - otherwise returns false. + Returns \c true if this element has an attribute called \a name; + otherwise returns \c false. \b{Note:} This function does not take the presence of namespaces into account. As a result, the specified name will be tested @@ -5117,7 +5117,7 @@ QDomNodeList QDomElement::elementsByTagNameNS(const QString& nsURI, const QStrin } /*! - Returns true if this element has an attribute with the local name + Returns \c true if this element has an attribute with the local name \a localName and the namespace URI \a nsURI; otherwise returns false. */ @@ -6652,7 +6652,7 @@ QDomDocument::~QDomDocument() \overload This function reads the XML document from the string \a text, returning - true if the content was successfully parsed; otherwise returns false. + true if the content was successfully parsed; otherwise returns \c false. Since \a text is already a Unicode string, no encoding detection is done. */ @@ -6679,11 +6679,11 @@ bool QDomDocument::setContent(const QString& text, bool namespaceProcessing, QSt is false, the parser does no namespace processing when it reads the XML file. - If a parse error occurs, this function returns false and the error + If a parse error occurs, this function returns \c false and the error message is placed in \c{*}\a{errorMsg}, the line number in \c{*}\a{errorLine} and the column number in \c{*}\a{errorColumn} (unless the associated pointer is set to 0); otherwise this - function returns true. The various error messages are described in + function returns \c true. The various error messages are described in the QXmlParseException class documentation. Note that, if you want to display these error messages to your application's users, they will be displayed in English unless they are explicitly @@ -6734,7 +6734,7 @@ bool QDomDocument::setContent(const QByteArray &data, bool namespaceProcessing, \overload This function reads the XML document from the IO device \a dev, returning - true if the content was successfully parsed; otherwise returns false. + true if the content was successfully parsed; otherwise returns \c false. */ bool QDomDocument::setContent(QIODevice* dev, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn) { @@ -6749,7 +6749,7 @@ bool QDomDocument::setContent(QIODevice* dev, bool namespaceProcessing, QString \since 4.5 This function reads the XML document from the QXmlInputSource \a source, - returning true if the content was successfully parsed; otherwise returns false. + returning true if the content was successfully parsed; otherwise returns \c false. */ bool QDomDocument::setContent(QXmlInputSource *source, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn ) @@ -6765,7 +6765,7 @@ bool QDomDocument::setContent(QXmlInputSource *source, bool namespaceProcessing, \overload This function reads the XML document from the string \a text, returning - true if the content was successfully parsed; otherwise returns false. + true if the content was successfully parsed; otherwise returns \c false. Since \a text is already a Unicode string, no encoding detection is performed. @@ -6794,7 +6794,7 @@ bool QDomDocument::setContent(const QByteArray& buffer, QString *errorMsg, int * \overload This function reads the XML document from the IO device \a dev, returning - true if the content was successfully parsed; otherwise returns false. + true if the content was successfully parsed; otherwise returns \c false. No namespace processing is performed. */ @@ -6808,7 +6808,7 @@ bool QDomDocument::setContent(QIODevice* dev, QString *errorMsg, int *errorLine, This function reads the XML document from the QXmlInputSource \a source and parses it with the QXmlReader \a reader, returning true if the content was - successfully parsed; otherwise returns false. + successfully parsed; otherwise returns \c false. This function doesn't change the features of the \a reader. If you want to use certain features for parsing you can use this function to set up the diff --git a/src/xml/sax/qxml.cpp b/src/xml/sax/qxml.cpp index 0e20041a62..45c0f3e17b 100644 --- a/src/xml/sax/qxml.cpp +++ b/src/xml/sax/qxml.cpp @@ -180,7 +180,7 @@ static const signed char charLookupTable[256]={ /* This function strips the TextDecl [77] ("") from the string \a str. The stripped version is stored in \a str. If this function finds an - invalid TextDecl, it returns false, otherwise true. + invalid TextDecl, it returns \c false, otherwise true. This function is used for external entities since those can include an TextDecl that must be stripped before inserting the entity. @@ -1734,7 +1734,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) to setDocumentLocator(), and before any other functions in this class or in the QXmlDTDHandler class are called. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1749,7 +1749,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) is called after the reader has read all input or has abandoned parsing because of a fatal error. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1774,7 +1774,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) The argument \a prefix is the namespace prefix being declared and the argument \a uri is the namespace URI the prefix is mapped to. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1787,7 +1787,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) The reader calls this function to signal the end of a prefix mapping for the prefix \a prefix. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1819,7 +1819,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) the attributes attached to the element. If there are no attributes, \a atts is an empty attributes object. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1833,7 +1833,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) tag with the qualified name \a qName, the local name \a localName and the namespace URI \a namespaceURI. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1857,7 +1857,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) one chunk; e.g. a reader might want to report "a\