Mercurial > projects > qtd
comparison examples/widgets/calculator/main.d @ 215:8aaa84d48451
Improve examples.
author | SokoL_SD |
---|---|
date | Tue, 14 Jul 2009 15:25:45 +0000 |
parents | 3ea0efe4d31e |
children |
comparison
equal
deleted
inserted
replaced
214:11f1760d1700 | 215:8aaa84d48451 |
---|---|
41 | 41 |
42 module main; | 42 module main; |
43 | 43 |
44 import qt.gui.QApplication; | 44 import qt.gui.QApplication; |
45 | 45 |
46 import calculator; | 46 version(D_Version2) |
47 | 47 import calculator; |
48 else | |
49 import calculator_d1; | |
48 | 50 |
49 int main(string[] args) | 51 int main(string[] args) |
50 { | 52 { |
51 scope app = new QApplication(args); | 53 scope app = new QApplication(args); |
52 scope calc = new Calculator(); | 54 scope calc = new Calculator(); |