X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fmain.cpp;h=3ae56db1768ecc6528446006e2f4c77146fb74c8;hb=ebe01ce9942e570f23b40793e97cf02b6f3616ee;hp=18e07f1ffcb87275aaa777184a22fb839c31f2fd;hpb=97ac28e65ca20b5649552597afaeee1d67766f6a;p=apitrace diff --git a/gui/main.cpp b/gui/main.cpp index 18e07f1..3ae56db 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -22,6 +22,7 @@ static void usage(void) int main(int argc, char **argv) { + QApplication::setGraphicsSystem("raster"); QApplication app(argc, argv); qRegisterMetaType >(); @@ -31,6 +32,13 @@ int main(int argc, char **argv) qRegisterMetaType(); qRegisterMetaType(); qRegisterMetaType >(); + +#ifndef Q_OS_WIN + QString path = qgetenv("PATH"); + path = QLatin1String(APITRACE_BINARY_DIR) + QLatin1String(":") + path; + qputenv("PATH", path.toLatin1()); +#endif + QStringList args = app.arguments(); int i = 1;