diff options
author | Jerome Pasion <jerome.pasion@digia.com> | 2013-10-02 16:51:05 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-08 00:46:27 +0200 |
commit | 4533cc994484a2308297e64e99af005fb4dca065 (patch) | |
tree | bc66283d11cdad100a1aec03f4e1d86bedc9a79e /src/gui/opengl/qopenglshaderprogram.cpp | |
parent | 50dd0232b61d8ea3fb9aab18972c6e19678656e6 (diff) |
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 <oswald.buddenhagen@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/gui/opengl/qopenglshaderprogram.cpp')
-rw-r--r-- | src/gui/opengl/qopenglshaderprogram.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
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<float> 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. |