diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 02:02:57 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 02:02:57 +0000 |
commit | 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (patch) | |
tree | 585415bbb85c48fc8fb83cd5f54e1cfe8e988ee7 /src/gui/buysell.cpp | |
parent | 78ab0ec914d3c5a97f162905afb3dede53f8b9ed (diff) | |
download | mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.gz mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.bz2 mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.xz mana-client-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.zip |
Made the Button ctor accept eventId and action listener.
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r-- | src/gui/buysell.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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; |