summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2024-02-07 21:26:57 +0100
committerGuru <alexandrgproductengine@lindenlab.com>2024-02-08 13:17:18 +0300
commit7075717b7c4a57d6bef60697ee506096a7c1b1ab (patch)
tree4fd55eb13166128aefa4a835a1a7922742922ca9 /indra/llui/lllineeditor.cpp
parentb348366d107a03fcc01397c1b2e9e2a22de48034 (diff)
SL-20363 Add Advanced option 'Debug Unicode'
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r--indra/llui/lllineeditor.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index e032b4b8c2..453fa29e7c 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -1739,6 +1739,20 @@ void LLLineEditor::drawBackground()
}
}
+//virtual
+const std::string LLLineEditor::getToolTip() const
+{
+ if (sDebugUnicode)
+ {
+ std::string text = getText();
+ std::string tooltip = utf8str_showBytesUTF8(text);
+ return tooltip;
+ }
+
+ return LLUICtrl::getToolTip();
+}
+
+//virtual
void LLLineEditor::draw()
{
F32 alpha = getDrawContext().mAlpha;