Add option to open files from the commandline.

This commit is contained in:
Jos van den Oever
2010-06-24 10:48:55 +02:00
parent 63ad205265
commit 759291d347
3 changed files with 26 additions and 15 deletions
+3
View File
@@ -6,5 +6,8 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
MainWindow w;
w.show();
for (int i=1; i<argc; ++i) {
w.openFile(argv[i]);
}
return a.exec();
}