comparison examples/widgets/analogclock/AnalogClock.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 1d272f0bfefa
children 7a3c43424dca
comparison
equal deleted inserted replaced
281:7f2e3ffa1c33 282:256ab6cb8e85
53 public: 53 public:
54 this(QWidget parent = null) 54 this(QWidget parent = null)
55 { 55 {
56 super(parent); 56 super(parent);
57 auto timer = new QTimer(this); 57 auto timer = new QTimer(this);
58 timer.timeout.connect(&this.update); 58 connect!("timeout")(timer, &this.update);
59 timer.start(1000); 59 timer.start(1000);
60 setWindowTitle("Analog Clock"); 60 setWindowTitle("Analog Clock");
61 resize(200, 200); 61 resize(200, 200);
62 } 62 }
63 63