diff options
author | deva <deva> | 2009-02-12 14:42:12 +0000 |
---|---|---|
committer | deva <deva> | 2009-02-12 14:42:12 +0000 |
commit | 9be2869c6ebad21621e10b3bd9e82dc811b75d2d (patch) | |
tree | 499aa5af9dfd80aae4c07437f2f55f21241e5891 /client/widgets/metawidget.cc | |
parent | 22e0b0ddd78f13b2648befe892d9ec6c5b1b1229 (diff) |
Added formatlanguage attribute to metawidget, and implemented lua parser for it.
Diffstat (limited to 'client/widgets/metawidget.cc')
-rw-r--r-- | client/widgets/metawidget.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/widgets/metawidget.cc b/client/widgets/metawidget.cc index 5102a04..c085f10 100644 --- a/client/widgets/metawidget.cc +++ b/client/widgets/metawidget.cc @@ -55,6 +55,12 @@ MetaWidget::MetaWidget(QDomNode &node, MacroWindow *macrowindow) else macrowindow->addAuxWidgets(widgets); // Setup format string + if(elem.hasAttribute("formatlanguage")) { + formatlanguage = elem.attribute("formatlanguage"); + } else { + formatlanguage = "pracro"; + } + if(elem.hasAttribute("format")) { format = elem.attribute("format"); } else { @@ -83,7 +89,7 @@ void MetaWidget::changed() QString MetaWidget::getValue() { - return format_parser(format, widgets); + return format_parser(format, widgets, formatlanguage); } void MetaWidget::setValue(QString, QString) |