summaryrefslogtreecommitdiff
path: root/client/widgetbuilder.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-01 06:22:14 +0000
committerdeva <deva>2008-07-01 06:22:14 +0000
commit5c14d0367180b756273770a387733472121dec0f (patch)
tree240f42e977ac4333cf3c4f07632d7f7b8edc76ed /client/widgetbuilder.cc
parent1ea592db93e2b6b23d96864690965f22c4d96a16 (diff)
Renamed PushButton to Button, to better match the specs.
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);