~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/compatibility.h

  • Committer: Adam Reichold
  • Date: 2021-04-18 18:53:43 UTC
  • Revision ID: adam.reichold@t-online.de-20210418185343-g3abd0if37xnla59
Fix enum compatibility handling to support older GCC versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
110
110
 
111
111
typedef Qt::SplitBehaviorFlags SplitBehavior;
 
112
namespace SplitBehaviorValues = Qt;
112
113
 
113
114
#else
114
115
 
115
116
typedef QString::SplitBehavior SplitBehavior;
 
117
typedef QString SplitBehaviorValues;
116
118
 
117
119
#endif // QT_VERSION
118
120
 
119
121
#if QT_VERSION >= QT_VERSION_CHECK(5,3,0)
120
122
 
121
123
typedef QPageLayout::Orientation PageOrientation;
 
124
typedef QPageLayout PageOrientationValues;
122
125
 
123
126
#else
124
127
 
125
128
typedef QPrinter::Orientation PageOrientation;
 
129
typedef QPrinter PageOrientationValues;
126
130
 
127
131
#endif // QT_VERSION
128
132