diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-12-21 00:06:20 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-12-21 00:06:20 +0000 |
| commit | 8642fe0ba100dee5a66265b07e21e043887a4a92 (patch) | |
| tree | 25a0a32061a53d730d4af102c26e858b9a5344f4 /src/tests | |
| parent | 6af2989d3abbe9ff64631df33f9f9e135274d90c (diff) | |
| download | libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.tar.gz libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.tar.bz2 libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.tar.xz libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.zip | |
Signals (slots really) are now comperable. Building two slots for the same
function or same object and method will compare as expected.
Also added a -= function to Bu::List which works just like erase.
Diffstat (limited to '')
| -rw-r--r-- | src/tests/signal.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/signal.cpp b/src/tests/signal.cpp index 93519fa..62e8bd5 100644 --- a/src/tests/signal.cpp +++ b/src/tests/signal.cpp | |||
| @@ -40,6 +40,8 @@ int main() | |||
| 40 | lMaths += slot(Double); | 40 | lMaths += slot(Double); |
| 41 | lMaths += slot(Square); | 41 | lMaths += slot(Square); |
| 42 | println("Math'd %1 = %2").arg( 5 ).arg( lMaths(5) ); | 42 | println("Math'd %1 = %2").arg( 5 ).arg( lMaths(5) ); |
| 43 | lMaths -= slot(Square); | ||
| 44 | println("Math'd %1 = %2").arg( 5 ).arg( lMaths(5) ); | ||
| 43 | 45 | ||
| 44 | return 0; | 46 | return 0; |
| 45 | } | 47 | } |
