Mercurial > projects > qtd
diff examples/layouts/basiclayouts/dialog.d @ 350:31520b2c0b3c
Removed dependency on parent trait and stringof
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Thu, 20 May 2010 15:49:08 +0300 |
parents | 7a3c43424dca |
children |
line wrap: on
line diff
--- a/examples/layouts/basiclayouts/dialog.d Mon May 17 21:48:15 2010 +0300 +++ b/examples/layouts/basiclayouts/dialog.d Thu May 20 15:49:08 2010 +0300 @@ -56,10 +56,7 @@ import qt.gui.QComboBox; import qt.gui.QSpinBox; -version(Tango) - import tango.text.convert.Format: format = Format; -else - import std.string; +import std.string : format; import std.stdio; @@ -157,8 +154,6 @@ formGroupBox.setLayout(layout); } - mixin Q_OBJECT; - enum { NumGridRows = 3, NumButtons = 4 }; QMenuBar menuBar; @@ -174,4 +169,6 @@ QMenu fileMenu; QAction exitAction; + + mixin Q_OBJECT; }