Mercurial > projects > qtd
comparison examples/tutorials/tutorial/t2/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 |
---|---|
45 auto app = new QApplication(args); | 45 auto app = new QApplication(args); |
46 auto quit = new QPushButton("Quit"); | 46 auto quit = new QPushButton("Quit"); |
47 | 47 |
48 quit.resize(75, 30); | 48 quit.resize(75, 30); |
49 quit.setFont(new QFont("Times", 18, QFont.Bold)); | 49 quit.setFont(new QFont("Times", 18, QFont.Bold)); |
50 QObject.connect!("clicked")(quit, &QApplication.quit); | 50 QObject.connect(quit, "clicked", app, "quit"); |
51 | 51 |
52 quit.show(); | 52 quit.show(); |
53 return app.exec(); | 53 return app.exec(); |
54 } | 54 } |