Mercurial > projects > qtd
comparison examples/tutorials/tutorial/t3/main.d @ 323:7a3c43424dca signals
make all examples compile with new signals/slots
author | eldar_ins@eldar-laptop |
---|---|
date | Mon, 28 Dec 2009 16:28:55 +0500 |
parents | 256ab6cb8e85 |
children |
comparison
equal
deleted
inserted
replaced
322:7c2cf27391c4 | 323:7a3c43424dca |
---|---|
49 QPushButton quit = new QPushButton("Quit", window); | 49 QPushButton quit = new QPushButton("Quit", window); |
50 | 50 |
51 quit.setFont(new QFont("Times", 18, QFont.Light)); | 51 quit.setFont(new QFont("Times", 18, QFont.Light)); |
52 quit.setGeometry(10, 40, 180, 40); | 52 quit.setGeometry(10, 40, 180, 40); |
53 | 53 |
54 QObject.connect!("clicked")(quit, &QApplication.quit); | 54 QObject.connect(quit, "clicked", app, "quit"); |
55 | 55 |
56 window.show(); | 56 window.show(); |
57 return app.exec(); | 57 return app.exec(); |
58 } | 58 } |