Engauge Digitizer 2
Loading...
Searching...
No Matches
Compatibility.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2020 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef COMPATIBILITY_H
8#define COMPATIBILITY_H
9
10#include <QString>
11#include <QtGlobal>
12
13class QTextStream;
14
17{
18 public:
21
23 static QTextStream &endl (QTextStream &stream);
24
26 static QTextStream &flush (QTextStream &stream);
27
29#if QT_VERSION < QT_VERSION_CHECK (5, 14, 0)
30 static QString::SplitBehavior SkipEmptyParts ();
31#else
32 static Qt::SplitBehavior SkipEmptyParts ();
33#endif
34};
35
36#endif // COMPATIBILITY_H
Compatibility()
Single default constructor.
static QTextStream & endl(QTextStream &stream)
End of line.
static Qt::SplitBehavior SkipEmptyParts()
SplitBehavior.
static QTextStream & flush(QTextStream &stream)
Flush.