Mercurial > projects > qtd
diff examples/mainwindows/sdi/mainwindow.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/mainwindows/sdi/mainwindow.d Mon May 17 21:48:15 2010 +0300 +++ b/examples/mainwindows/sdi/mainwindow.d Thu May 20 15:49:08 2010 +0300 @@ -57,16 +57,9 @@ import qt.core.QSettings; import qt.core.QTextStream; -version(Tango) -{ - import tango.text.Util; - import Int = tango.text.convert.Integer; -} -else -{ - import std.string; - import std.conv; -} +//import std.string; +import std.conv; + class MainWindow : public QMainWindow { // Q_OBJECT @@ -371,9 +364,6 @@ isUntitled = fileName == null; if (isUntitled) { - version(Tango) - curFile = tr("document" ~ Int.toString(sequenceNumber++) ~ ".txt"); - else curFile = tr("document" ~ to!(string)(sequenceNumber++) ~ ".txt"); } else { scope qfi = new QFileInfo(fileName); @@ -426,6 +416,6 @@ QAction pasteAct; QAction aboutAct; QAction aboutQtAct; - + mixin Q_OBJECT; };