Skip to content

Commit

Permalink
QOpenGLTexture::setBorderColor: Pass QColor by const &
Browse files Browse the repository at this point in the history
Change-Id: I97ced427691c5361bc7aa232892abf28423c5ee9
Reviewed-by: Laszlo Agocs <[email protected]>
  • Loading branch information
albert-astals-cid-kdab committed Oct 7, 2019
1 parent 2c4b44d commit 6236074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/opengl/qopengltexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4612,7 +4612,7 @@ QOpenGLTexture::WrapMode QOpenGLTexture::wrapMode(QOpenGLTexture::CoordinateDire
\note This function has no effect on Mac and Qt built for OpenGL ES 2.
\sa borderColor()
*/
void QOpenGLTexture::setBorderColor(QColor color)
void QOpenGLTexture::setBorderColor(const QColor &color)
{
setBorderColor(static_cast<float>(color.redF()), static_cast<float>(color.greenF()),
static_cast<float>(color.blueF()), static_cast<float>(color.alphaF()));
Expand Down
2 changes: 1 addition & 1 deletion src/gui/opengl/qopengltexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class Q_GUI_EXPORT QOpenGLTexture
void setWrapMode(CoordinateDirection direction, WrapMode mode);
WrapMode wrapMode(CoordinateDirection direction) const;

void setBorderColor(QColor color);
void setBorderColor(const QColor &color);
void setBorderColor(float r, float g, float b, float a);
void setBorderColor(int r, int g, int b, int a);
void setBorderColor(uint r, uint g, uint b, uint a);
Expand Down

0 comments on commit 6236074

Please sign in to comment.