Mercurial > projects > qtd
comparison examples/widgets/calculator/calculator.d @ 282:256ab6cb8e85
Signals look-up andNew syntax for connect. The old one will not work from now on. This will allow for the signals overload. Although changes are done for both D1 and D2 versions, D1 won't work because of compiler bugs. I am tired of waiting for fixes.
author | eldar |
---|---|
date | Fri, 16 Oct 2009 02:43:59 +0000 |
parents | 8aaa84d48451 |
children | 7a3c43424dca |
comparison
equal
deleted
inserted
replaced
281:7f2e3ffa1c33 | 282:256ab6cb8e85 |
---|---|
344 private: | 344 private: |
345 | 345 |
346 Button createButton(string text, void delegate() member) | 346 Button createButton(string text, void delegate() member) |
347 { | 347 { |
348 Button button = new Button(text); | 348 Button button = new Button(text); |
349 button.clicked.connect(member); | 349 connect!("clicked")(button, member); |
350 return button; | 350 return button; |
351 } | 351 } |
352 | 352 |
353 void abortOperation() | 353 void abortOperation() |
354 { | 354 { |