diff options
| author | dolphin <dolphin@lindenlab.com> | 2013-01-23 13:36:50 -0800 |
|---|---|---|
| committer | dolphin <dolphin@lindenlab.com> | 2013-01-23 13:36:50 -0800 |
| commit | 3e8bc28c88f16c1b8bba496704ec3a6156a25e1d (patch) | |
| tree | aa52be0bc7aa10d578ba000b8cd69d40271477a0 /indra/llui/lltooltip.cpp | |
| parent | 7e9ac192d779e77cad0a0b785510190215fbe7a6 (diff) | |
| parent | a30a2c492d06c9ef843a43c0ff0be6f2826d6d0b (diff) | |
Merge
Diffstat (limited to 'indra/llui/lltooltip.cpp')
| -rw-r--r-- | indra/llui/lltooltip.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/llui/lltooltip.cpp b/indra/llui/lltooltip.cpp index f737d48abf..7f1566d64a 100644 --- a/indra/llui/lltooltip.cpp +++ b/indra/llui/lltooltip.cpp @@ -390,6 +390,15 @@ bool LLToolTip::hasClickCallback() return mHasClickCallback; } +void LLToolTip::getToolTipMessage(std::string & message) +{ + if (mTextBox) + { + message = mTextBox->getText(); + } +} + + // // LLToolTipMgr @@ -594,5 +603,14 @@ void LLToolTipMgr::updateToolTipVisibility() } +// Return the current tooltip text +void LLToolTipMgr::getToolTipMessage(std::string & message) +{ + if (toolTipVisible()) + { + mToolTip->getToolTipMessage(message); + } +} + // EOF |
