From 380e509df100b00269a99959c675df98c0b900d1 Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 31 Aug 2021 17:33:49 +0800 Subject: [PATCH] Fix qt endl --- qmltermwidget/lib/kpty.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qmltermwidget/lib/kpty.cpp b/qmltermwidget/lib/kpty.cpp index fe901dc..d758a94 100644 --- a/qmltermwidget/lib/kpty.cpp +++ b/qmltermwidget/lib/kpty.cpp @@ -331,7 +331,12 @@ gotpty: !d->chownpty(true)) { qWarning() << "chownpty failed for device " << ptyName << "::" << d->ttyName - << "\nThis means the communication can be eavesdropped." << Qt::endl; + << "\nThis means the communication can be eavesdropped." +#if QT_VERSION >= 0x050e00 + << Qt::endl; +#else + << endl; +#endif } #if defined (HAVE__GETPTY) || defined (HAVE_GRANTPT)