diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-12-16 17:21:38 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-12-17 16:00:31 +0000 |
commit | 73d5deb4169ec71c97e17e451a182b259118661f (patch) | |
tree | 5ef8c81c0bb10d5d4f0d11e4183a180637e595a0 /examples | |
parent | 8b77afedbd4468fa57cd0dec48a5e6833365948a (diff) |
Adapt source code to Qt 6
Change-Id: If84e3e4c832c2b3dc39e40be13e989996ab764d1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/helloworld-qt/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/helloworld-qt/main.cpp b/examples/helloworld-qt/main.cpp index 217fc12d0..e1e822591 100644 --- a/examples/helloworld-qt/main.cpp +++ b/examples/helloworld-qt/main.cpp @@ -55,5 +55,7 @@ int main() { - QTextStream(stdout) << QCoreApplication::translate("hello", "Hello, World!") << endl; + QTextStream ts(stdout); + ts << QCoreApplication::translate("hello", "Hello, World!\n"); + ts.flush(); } |