From 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 9 Mar 2006 02:02:57 +0000 Subject: Made the Button ctor accept eventId and action listener. --- src/gui/buysell.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gui/buysell.cpp') diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp index d4c33d30..6e338f08 100644 --- a/src/gui/buysell.cpp +++ b/src/gui/buysell.cpp @@ -38,10 +38,8 @@ BuySellDialog::BuySellDialog(): for (const char **curBtn = buttonNames; *curBtn; curBtn++) { - Button *btn = new Button(*curBtn); + Button *btn = new Button(*curBtn, *curBtn, this); if (!buyButton) buyButton = btn; // For focus request - btn->setEventId(*curBtn); - btn->addActionListener(this); btn->setPosition(x, y); add(btn); x += btn->getWidth() + 10; -- cgit v1.2.3-70-g09d2