summaryrefslogtreecommitdiff
path: root/indra/llui/llradiogroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llradiogroup.cpp')
-rw-r--r--indra/llui/llradiogroup.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/llui/llradiogroup.cpp b/indra/llui/llradiogroup.cpp
index 7d34841431..70f98bd908 100644
--- a/indra/llui/llradiogroup.cpp
+++ b/indra/llui/llradiogroup.cpp
@@ -44,8 +44,14 @@
#include "llfocusmgr.h"
#include "lluictrlfactory.h"
-static LLRegisterWidget<LLRadioGroup> r1("radio_group");
-static LLRegisterWidget<LLRadioCtrl> r2("radio_item");
+static LLDefaultWidgetRegistry::Register<LLRadioGroup> r1("radio_group");
+
+struct RadioGroupRegistry : public LLWidgetRegistry<RadioGroupRegistry>
+{};
+
+static RadioGroupRegistry::Register<LLRadioCtrl> register_radio_ctrl("radio_item");
+
+
LLRadioGroup::Params::Params()
: has_border("draw_border")
@@ -76,6 +82,11 @@ LLRadioGroup::~LLRadioGroup()
{
}
+const widget_registry_t& LLRadioGroup::getChildRegistry() const
+{
+ return RadioGroupRegistry::instance();
+}
+
// virtual
BOOL LLRadioGroup::postBuild()
{