diff examples/desktop/systray/main.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 3ea0efe4d31e
children
line wrap: on
line diff
--- a/examples/desktop/systray/main.d	Mon May 17 21:48:15 2010 +0300
+++ b/examples/desktop/systray/main.d	Thu May 20 15:49:08 2010 +0300
@@ -40,6 +40,7 @@
 ****************************************************************************/
 module main;
 
+import std.stdio; // BUG: needed to workaround std.stdio initialization failure
 
 import qt.gui.QMessageBox;
 import qt.gui.QApplication;
@@ -50,15 +51,15 @@
 
 int main(string[] args)
 {
-	auto app = new QApplication(args);
+    auto app = new QApplication(args);
 
-	if (!QSystemTrayIcon.isSystemTrayAvailable()) {
-		QMessageBox.critical(null, tr("Systray"), tr("I couldn't detect any system tray on this system."));
-		return 1;
-	}
-	QApplication.setQuitOnLastWindowClosed(false);
+    if (!QSystemTrayIcon.isSystemTrayAvailable()) {
+        QMessageBox.critical(null, tr("Systray"), tr("I couldn't detect any system tray on this system."));
+        return 1;
+    }
+    QApplication.setQuitOnLastWindowClosed(false);
 
-	auto window = new Window;
-	window.show();
-	return app.exec();
+    auto window = new Window;
+    window.show();
+    return app.exec();
 }