Rename x11 auto-type plugin to xcb.

This matches what QGuiApplication::platformName() returns.
This commit is contained in:
Felix Geyer 2015-07-23 00:11:05 +02:00
parent 20b13a4a2e
commit ba1ca4ec08
9 changed files with 12 additions and 33 deletions

View file

@ -17,7 +17,7 @@
#include "Tools.h"
#include <QApplication>
#include <QCoreApplication>
#include <QImageReader>
#include <QIODevice>
#include <QLocale>
@ -192,26 +192,6 @@ void wait(int ms)
}
}
QString platform()
{
// TODO: move callers to QApplication::platformName()
QString platform = QApplication::platformName();
if (platform == "xcb") {
return "x11";
}
else if (platform == "cocoa") {
return "mac";
}
else if (platform == "windows") {
return "win";
}
else {
return platform;
}
}
void disableCoreDumps()
{
// default to true