diff examples/desktop/screenshot/screenshot.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 2c9ef955a171
children
line wrap: on
line diff
--- a/examples/desktop/screenshot/screenshot.d	Sun Oct 11 05:23:41 2009 +0000
+++ b/examples/desktop/screenshot/screenshot.d	Fri Oct 16 02:43:59 2009 +0000
@@ -153,7 +153,7 @@
 		delaySpinBox = new QSpinBox;
 		delaySpinBox.setSuffix(tr(" s"));
 		delaySpinBox.setMaximum(60);
-		delaySpinBox.valueChanged.connect(&this.updateCheckBox);
+		connect!("valueChanged")(delaySpinBox, &this.updateCheckBox);
 		
 		delaySpinBoxLabel = new QLabel(tr("Screenshot Delay:"));
 
@@ -184,7 +184,7 @@
 	QPushButton createButton(string text, void delegate() slot)
 	{
 		QPushButton button = new QPushButton(text);
-		button.clicked.connect(slot);
+		connect!("clicked")(button, slot);
 		return button;
 	}