diff options
author | Christian Klinger | 2016-05-30 15:15:14 +0200 |
---|---|---|
committer | Christian Klinger | 2016-05-30 15:15:14 +0200 |
commit | 712724fbefe6042c89781cae1f7b96334a9edad3 (patch) | |
tree | b203f34b3619d174b7c01aa6212ca52656a70d75 /src/client/util/util.h | |
parent | Added "--exam-mode" option. (diff) | |
download | pvs2-712724fbefe6042c89781cae1f7b96334a9edad3.tar.gz pvs2-712724fbefe6042c89781cae1f7b96334a9edad3.tar.xz pvs2-712724fbefe6042c89781cae1f7b96334a9edad3.zip |
added qStdOut() (use like qDebug())
Diffstat (limited to 'src/client/util/util.h')
-rw-r--r-- | src/client/util/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/util/util.h b/src/client/util/util.h index b90ce3d..9317ba7 100644 --- a/src/client/util/util.h +++ b/src/client/util/util.h @@ -10,6 +10,7 @@ #define SYSTEM_SETTINGS(name) QSettings name (QSettings::IniFormat, QSettings::SystemScope, "openslx/pvs2", "pvs2") #include <QDir> +#include <QTextStream> namespace Util { @@ -21,5 +22,11 @@ QDir settingsDir(); } +inline QTextStream& qStdout() +{ + static QTextStream r{stdout}; + return r; +} + #endif /* UTIL_H_ */ |