Mercurial > projects > qtd
diff examples/layouts/basiclayouts/dialog.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 | 26036621830e |
children | 7a3c43424dca |
line wrap: on
line diff
--- a/examples/layouts/basiclayouts/dialog.d Sun Oct 11 05:23:41 2009 +0000 +++ b/examples/layouts/basiclayouts/dialog.d Fri Oct 16 02:43:59 2009 +0000 @@ -75,8 +75,8 @@ buttonBox = new QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel); - buttonBox.accepted.connect(&this.accept); - buttonBox.rejected.connect(&this.reject); + connect!("accepted")(buttonBox, &this.accept); + connect!("rejected")(buttonBox, &this.reject); QVBoxLayout mainLayout = new QVBoxLayout; @@ -101,7 +101,7 @@ exitAction = fileMenu.addAction(tr("E&xit")); menuBar.addMenu(fileMenu); - exitAction.triggered.connect(&this.accept); + connect!("triggered")(exitAction, &this.accept); } void createHorizontalGroupBox()