summaryrefslogtreecommitdiff
path: root/client/widgetbuilder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgetbuilder.cc')
-rw-r--r--client/widgetbuilder.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/widgetbuilder.cc b/client/widgetbuilder.cc
index 8d23c0b..d458379 100644
--- a/client/widgetbuilder.cc
+++ b/client/widgetbuilder.cc
@@ -54,13 +54,13 @@ QVector< Widget* > widgetBuilder(QDomNode xml_node, QWidget *parent, MacroWindow
widget = lineedit;
} else if(xml_elem.tagName() == "button") {
- PushButton *pushbutton = new PushButton(xml_elem, macrowindow);
+ Button *button = new Button(xml_elem, macrowindow);
//macrowindow->connect(pushbutton, SIGNAL(act_continue()), main, SLOT(get_macro()));
- macrowindow->connect(pushbutton, SIGNAL(act_commit()), macrowindow, SLOT(commit()));
- macrowindow->connect(pushbutton, SIGNAL(act_reset()), macrowindow, SLOT(reset()));
- macrowindow->connect(pushbutton, SIGNAL(act_cancel()), macrowindow, SLOT(cancel()));
- macrowindow->connect(pushbutton, SIGNAL(act_continue(QString)), macrowindow, SLOT(cont(QString)));
- widget = pushbutton;
+ macrowindow->connect(button, SIGNAL(act_commit()), macrowindow, SLOT(commit()));
+ macrowindow->connect(button, SIGNAL(act_reset()), macrowindow, SLOT(reset()));
+ macrowindow->connect(button, SIGNAL(act_cancel()), macrowindow, SLOT(cancel()));
+ macrowindow->connect(button, SIGNAL(act_continue(QString)), macrowindow, SLOT(cont(QString)));
+ widget = button;
} else if(xml_elem.tagName() == "textedit") {
TextEdit *textedit = new TextEdit(xml_elem, macrowindow);