summaryrefslogtreecommitdiff
path: root/client/widgets/metawidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/metawidget.cc')
-rw-r--r--client/widgets/metawidget.cc8
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)