- if (args.at(0).startsWith("in="))
- in = args.takeFirst().section('=', -1).toInt();
- if (args.at(0).startsWith("out="))
- out = args.takeFirst().section('=', -1).toInt();
- if (args.at(0).startsWith("preargs="))
- preargs = args.takeFirst().section('=', 1).split(' ', QString::SkipEmptyParts);
+
+ if (QString(args.at(0)).startsWith(QLatin1String("-locale:"))) {
+ locale = QString(args.at(0)).section(QLatin1Char(':'), 1);
+ args.removeFirst();
+ }
+ if (args.at(0).startsWith(QLatin1String("in=")))
+ in = args.takeFirst().section(QLatin1Char('='), -1).toInt();
+ if (args.at(0).startsWith(QLatin1String("out=")))
+ out = args.takeFirst().section(QLatin1Char('='), -1).toInt();
+ if (args.at(0).startsWith(QLatin1String("preargs=")))
+ preargs = args.takeFirst().section(QLatin1Char('='), 1).split(QLatin1Char(' '), QString::SkipEmptyParts);