QKmsDevice::QKmsDevice(const QString &path, QKmsIntegration *parent) :
QObject(0), m_integration(parent)
{
- m_fd = QT_OPEN(path.toAscii().constData(), O_RDWR);
+ m_fd = QT_OPEN(path.toLatin1().constData(), O_RDWR);
if (m_fd < 0) {
- qWarning("Could not open %s.", path.toAscii().constData());
+ qWarning("Could not open %s.", path.toLatin1().constData());
qFatal("No DRM display device");
}
break;
}
} else {
- ttyfd = QT_OPEN(ttyDevice.toAscii().constData(), O_RDWR);
+ ttyfd = QT_OPEN(ttyDevice.toLatin1().constData(), O_RDWR);
}
if (ttyfd == -1)
void QQnxRootWindow::createWindowGroup()
{
// Generate a random window group name
- m_windowGroupName = QUuid::createUuid().toString().toAscii();
+ m_windowGroupName = QUuid::createUuid().toString().toLatin1();
// Create window group so child windows can be parented by container window
errno = 0;
// Write image for debug purposes.
if (QWindowsContext::verboseBackingStore > 2) {
static int n = 0;
- const QString fileName = QString::fromAscii("win%1_%2.png").
+ const QString fileName = QString::fromLatin1("win%1_%2.png").
arg(rw->winId()).arg(n++);
m_image->image().save(fileName);
qDebug() << "Wrote " << m_image->image().size() << fileName;
qDebug() << "QXcbIntegration: Connecting to additional display: " << parameters.at(i) << parameters.at(i+1);
#endif
QString display = parameters.at(i) + ':' + parameters.at(i+1);
- m_connections << new QXcbConnection(m_nativeInterface.data(), display.toAscii().constData());
+ m_connections << new QXcbConnection(m_nativeInterface.data(), display.toLatin1().constData());
}
foreach (QXcbConnection *connection, m_connections)