From 5c14d0367180b756273770a387733472121dec0f Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 1 Jul 2008 06:22:14 +0000 Subject: Renamed PushButton to Button, to better match the specs. --- client/widgetbuilder.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/widgetbuilder.cc') 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); -- cgit v1.2.3