Skip to content

Commit

Permalink
Fixed|libgui|Font: Measuring text is a const operation
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 16, 2013
1 parent 1f348fb commit 5358be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/libgui/include/de/gui/font.h
Expand Up @@ -53,7 +53,7 @@ class LIBGUI_PUBLIC Font
*
* @return
*/
Rectanglei measure(String const &textLine);
Rectanglei measure(String const &textLine) const;

Rule const &height() const;
Rule const &ascent() const;
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libgui/src/font.cpp
Expand Up @@ -76,7 +76,7 @@ QFont Font::toQFont() const
return d->font;
}

Rectanglei Font::measure(String const &textLine)
Rectanglei Font::measure(String const &textLine) const
{
return Rectanglei::fromQRect(d->metrics->boundingRect(textLine));
}
Expand Down

0 comments on commit 5358be6

Please sign in to comment.