mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Fix const
This commit is contained in:
parent
8d4cecda62
commit
493455fdac
2 changed files with 2 additions and 2 deletions
|
@ -358,7 +358,7 @@ bool Overlays::isLoaded(unsigned int id) {
|
|||
return overlay->isLoaded();
|
||||
}
|
||||
|
||||
const float Overlays::textWidth(unsigned int id, const QString& text) {
|
||||
float Overlays::textWidth(unsigned int id, const QString& text) const {
|
||||
Overlay* thisOverlay = _overlays2D[id];
|
||||
if (thisOverlay) {
|
||||
if (typeid(*thisOverlay) == typeid(TextOverlay)) {
|
||||
|
|
|
@ -67,7 +67,7 @@ public slots:
|
|||
|
||||
/// returns the width of the given text in the specified overlay if it is a text overlay: in pixels if it is a 2D text
|
||||
/// overlay; in meters if it is a 3D text overlay
|
||||
const float textWidth(unsigned int id, const QString& text);
|
||||
float textWidth(unsigned int id, const QString& text) const;
|
||||
|
||||
private:
|
||||
QMap<unsigned int, Overlay*> _overlays2D;
|
||||
|
|
Loading…
Reference in a new issue