aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llspinctrl.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-04-26 20:45:39 -0700
committerMcCabe Maxsted2010-04-26 20:45:39 -0700
commit4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d (patch)
tree8a6ff9bba5303da89705008b3e78428770083057 /linden/indra/llui/llspinctrl.cpp
parentPorted currency changes from Hippo (#237) and fixed some labels Hippo missed ... (diff)
downloadmeta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.zip
meta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.tar.gz
meta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.tar.bz2
meta-impy-4b53fd0517dd4bf1c3c0c1d9a094749be4cc761d.tar.xz
Added missing setLabelArg to LLSpinCtrl (silly Lindens...)
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llspinctrl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp
index 2992f98..760fbfd 100644
--- a/linden/indra/llui/llspinctrl.cpp
+++ b/linden/indra/llui/llspinctrl.cpp
@@ -402,6 +402,18 @@ void LLSpinCtrl::setLabel(const LLStringExplicit& label)
402 } 402 }
403} 403}
404 404
405BOOL LLSpinCtrl::setLabelArg( const std::string& key, const LLStringExplicit& text )
406{
407 if (mLabelBox)
408 {
409 BOOL res = mLabelBox->setTextArg(key, text);
410 reshape(getRect().getWidth(), getRect().getHeight(), FALSE);
411 return res;
412 }
413 return FALSE;
414}
415
416
405void LLSpinCtrl::setAllowEdit(BOOL allow_edit) 417void LLSpinCtrl::setAllowEdit(BOOL allow_edit)
406{ 418{
407 mEditor->setEnabled(allow_edit); 419 mEditor->setEnabled(allow_edit);