Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpoint.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPOINT_H
5#define QPOINT_H
6
7#include <QtCore/qcompare.h>
8#include <QtCore/qnamespace.h>
9#include <QtCore/qnumeric.h>
10
11#include <QtCore/q20type_traits.h>
12#include <QtCore/q23utility.h>
13
14#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
15struct CGPoint;
16#endif
17
18QT_BEGIN_NAMESPACE
19
20QT_ENABLE_P0846_SEMANTICS_FOR(get)
21
22class QPointF;
23
24class QPoint
25{
26public:
27 constexpr QPoint() noexcept;
28 constexpr QPoint(int xpos, int ypos) noexcept;
29
30 constexpr inline bool isNull() const noexcept;
31
32 constexpr inline int x() const noexcept;
33 constexpr inline int y() const noexcept;
34 constexpr inline void setX(int x) noexcept;
35 constexpr inline void setY(int y) noexcept;
36
37 constexpr inline int manhattanLength() const;
38
39 constexpr QPoint transposed() const noexcept { return {yp, xp}; }
40
41 constexpr inline int &rx() noexcept;
42 constexpr inline int &ry() noexcept;
43
44 constexpr inline QPoint &operator+=(const QPoint &p);
45 constexpr inline QPoint &operator-=(const QPoint &p);
46
47 constexpr inline QPoint &operator*=(float factor);
48 constexpr inline QPoint &operator*=(double factor);
49 constexpr inline QPoint &operator*=(int factor);
50
51 constexpr inline QPoint &operator/=(qreal divisor);
52
53 constexpr static inline int dotProduct(const QPoint &p1, const QPoint &p2)
54 { return p1.xp * p2.xp + p1.yp * p2.yp; }
55
56private:
57 friend constexpr bool comparesEqual(const QPoint &p1, const QPoint &p2) noexcept
58 { return p1.xp == p2.xp && p1.yp == p2.yp; }
60 friend constexpr inline QPoint operator+(const QPoint &p1, const QPoint &p2) noexcept
61 { return QPoint(p1.xp + p2.xp, p1.yp + p2.yp); }
62 friend constexpr inline QPoint operator-(const QPoint &p1, const QPoint &p2) noexcept
63 { return QPoint(p1.xp - p2.xp, p1.yp - p2.yp); }
64 friend constexpr inline QPoint operator*(const QPoint &p, float factor)
65 { return QPoint(qRound(p.xp * factor), qRound(p.yp * factor)); }
66 friend constexpr inline QPoint operator*(const QPoint &p, double factor)
67 { return QPoint(qRound(p.xp * factor), qRound(p.yp * factor)); }
68 friend constexpr inline QPoint operator*(const QPoint &p, int factor) noexcept
69 { return QPoint(p.xp * factor, p.yp * factor); }
70 friend constexpr inline QPoint operator*(float factor, const QPoint &p)
71 { return QPoint(qRound(p.xp * factor), qRound(p.yp * factor)); }
72 friend constexpr inline QPoint operator*(double factor, const QPoint &p)
73 { return QPoint(qRound(p.xp * factor), qRound(p.yp * factor)); }
74 friend constexpr inline QPoint operator*(int factor, const QPoint &p) noexcept
75 { return QPoint(p.xp * factor, p.yp * factor); }
76 friend constexpr inline QPoint operator+(const QPoint &p) noexcept
77 { return p; }
78 friend constexpr inline QPoint operator-(const QPoint &p) noexcept
79 { return QPoint(-p.xp, -p.yp); }
80 friend constexpr inline QPoint operator/(const QPoint &p, qreal c)
81 { return QPoint(qRound(p.xp / c), qRound(p.yp / c)); }
82
83public:
84#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
85 [[nodiscard]] Q_CORE_EXPORT CGPoint toCGPoint() const noexcept;
86#endif
87 [[nodiscard]] constexpr inline QPointF toPointF() const noexcept;
88
89private:
90 friend class QTransform;
91 int xp;
92 int yp;
93
94 template <std::size_t I,
95 typename P,
96 std::enable_if_t<(I < 2), bool> = true,
98 friend constexpr decltype(auto) get(P &&p) noexcept
99 {
100 if constexpr (I == 0)
101 return q23::forward_like<P>(p.xp);
102 else if constexpr (I == 1)
103 return q23::forward_like<P>(p.yp);
104 }
105};
106
108
109/*****************************************************************************
110 QPoint stream functions
111 *****************************************************************************/
112#ifndef QT_NO_DATASTREAM
113Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QPoint &);
114Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QPoint &);
115#endif
116
117/*****************************************************************************
118 QPoint inline functions
119 *****************************************************************************/
120
121constexpr inline QPoint::QPoint() noexcept : xp(0), yp(0) {}
122
123constexpr inline QPoint::QPoint(int xpos, int ypos) noexcept : xp(xpos), yp(ypos) {}
124
125constexpr inline bool QPoint::isNull() const noexcept
126{
127 return xp == 0 && yp == 0;
128}
129
130constexpr inline int QPoint::x() const noexcept
131{
132 return xp;
133}
134
135constexpr inline int QPoint::y() const noexcept
136{
137 return yp;
138}
139
140constexpr inline void QPoint::setX(int xpos) noexcept
141{
142 xp = xpos;
143}
144
145constexpr inline void QPoint::setY(int ypos) noexcept
146{
147 yp = ypos;
148}
149
150inline int constexpr QPoint::manhattanLength() const
151{
152 return qAbs(x()) + qAbs(y());
153}
154
155constexpr inline int &QPoint::rx() noexcept
156{
157 return xp;
158}
159
160constexpr inline int &QPoint::ry() noexcept
161{
162 return yp;
163}
164
165constexpr inline QPoint &QPoint::operator+=(const QPoint &p)
166{
167 xp += p.xp;
168 yp += p.yp;
169 return *this;
170}
171
172constexpr inline QPoint &QPoint::operator-=(const QPoint &p)
173{
174 xp -= p.xp;
175 yp -= p.yp;
176 return *this;
177}
178
179constexpr inline QPoint &QPoint::operator*=(float factor)
180{
181 xp = qRound(xp * factor);
182 yp = qRound(yp * factor);
183 return *this;
184}
185
186constexpr inline QPoint &QPoint::operator*=(double factor)
187{
188 xp = qRound(xp * factor);
189 yp = qRound(yp * factor);
190 return *this;
191}
192
193constexpr inline QPoint &QPoint::operator*=(int factor)
194{
195 xp = xp * factor;
196 yp = yp * factor;
197 return *this;
198}
199
200constexpr inline QPoint &QPoint::operator/=(qreal c)
201{
202 xp = qRound(xp / c);
203 yp = qRound(yp / c);
204 return *this;
205}
206
207#ifndef QT_NO_DEBUG_STREAM
208Q_CORE_EXPORT QDebug operator<<(QDebug, const QPoint &);
209#endif
210
211Q_CORE_EXPORT size_t qHash(QPoint key, size_t seed = 0) noexcept;
212
213
214
215
217{
218public:
219 constexpr QPointF() noexcept;
220 constexpr QPointF(const QPoint &p) noexcept;
221 constexpr QPointF(qreal xpos, qreal ypos) noexcept;
222
223 constexpr inline qreal manhattanLength() const;
224
225 inline bool isNull() const noexcept;
226
227 constexpr inline qreal x() const noexcept;
228 constexpr inline qreal y() const noexcept;
229 constexpr inline void setX(qreal x) noexcept;
230 constexpr inline void setY(qreal y) noexcept;
231
232 constexpr QPointF transposed() const noexcept { return {yp, xp}; }
233
234 constexpr inline qreal &rx() noexcept;
235 constexpr inline qreal &ry() noexcept;
236
237 constexpr inline QPointF &operator+=(const QPointF &p);
238 constexpr inline QPointF &operator-=(const QPointF &p);
239 constexpr inline QPointF &operator*=(qreal c);
240 constexpr inline QPointF &operator/=(qreal c);
241
242 constexpr static inline qreal dotProduct(const QPointF &p1, const QPointF &p2)
243 {
244 return p1.xp * p2.xp + p1.yp * p2.yp;
245 }
246
247private:
248 QT_WARNING_PUSH
249 QT_WARNING_DISABLE_FLOAT_COMPARE
250 friend constexpr bool qFuzzyCompare(const QPointF &p1, const QPointF &p2) noexcept
251 {
252 return ((!p1.xp || !p2.xp) ? qFuzzyIsNull(p1.xp - p2.xp) : qFuzzyCompare(p1.xp, p2.xp))
253 && ((!p1.yp || !p2.yp) ? qFuzzyIsNull(p1.yp - p2.yp) : qFuzzyCompare(p1.yp, p2.yp));
254 }
256 friend constexpr bool qFuzzyIsNull(const QPointF &point) noexcept
257 {
259 }
260 friend constexpr bool comparesEqual(const QPointF &p1, const QPointF &p2) noexcept
261 { return qFuzzyCompare(p1, p2); }
263 friend constexpr bool comparesEqual(const QPointF &p1, const QPoint &p2) noexcept
264 { return comparesEqual(p1, p2.toPointF()); }
266 friend constexpr inline QPointF operator+(const QPointF &p1, const QPointF &p2)
267 { return QPointF(p1.xp + p2.xp, p1.yp + p2.yp); }
268 friend constexpr inline QPointF operator-(const QPointF &p1, const QPointF &p2)
269 { return QPointF(p1.xp - p2.xp, p1.yp - p2.yp); }
270 friend constexpr inline QPointF operator*(const QPointF &p, qreal c)
271 { return QPointF(p.xp * c, p.yp * c); }
272 friend constexpr inline QPointF operator*(qreal c, const QPointF &p)
273 { return QPointF(p.xp * c, p.yp * c); }
274 friend constexpr inline QPointF operator+(const QPointF &p)
275 { return p; }
276 friend constexpr inline QPointF operator-(const QPointF &p)
277 { return QPointF(-p.xp, -p.yp); }
278 friend constexpr inline QPointF operator/(const QPointF &p, qreal divisor)
279 {
280 Q_ASSERT(divisor < 0 || divisor > 0);
281 return QPointF(p.xp / divisor, p.yp / divisor);
282 }
283
284public:
285 constexpr QPoint toPoint() const;
286
287#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
289 [[nodiscard]] Q_CORE_EXPORT CGPoint toCGPoint() const noexcept;
290#endif
291
292private:
293 friend class QTransform;
294
295 qreal xp;
296 qreal yp;
297
298 template <std::size_t I,
299 typename P,
300 std::enable_if_t<(I < 2), bool> = true,
302 friend constexpr decltype(auto) get(P &&p) noexcept
303 {
304 if constexpr (I == 0)
305 return q23::forward_like<P>(p.xp);
306 else if constexpr (I == 1)
307 return q23::forward_like<P>(p.yp);
308 }
309};
310
312
313size_t qHash(QPointF, size_t seed = 0) = delete;
314
315/*****************************************************************************
316 QPointF stream functions
317 *****************************************************************************/
318#ifndef QT_NO_DATASTREAM
319Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QPointF &);
320Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QPointF &);
321#endif
322
323/*****************************************************************************
324 QPointF inline functions
325 *****************************************************************************/
326
327constexpr inline QPointF::QPointF() noexcept : xp(0), yp(0) { }
328
329constexpr inline QPointF::QPointF(qreal xpos, qreal ypos) noexcept : xp(xpos), yp(ypos) { }
330
331constexpr inline QPointF::QPointF(const QPoint &p) noexcept : xp(p.x()), yp(p.y()) { }
332
333constexpr inline qreal QPointF::manhattanLength() const
334{
335 return qAbs(x()) + qAbs(y());
336}
337
338inline bool QPointF::isNull() const noexcept
339{
340 return qIsNull(xp) && qIsNull(yp);
341}
342
343constexpr inline qreal QPointF::x() const noexcept
344{
345 return xp;
346}
347
348constexpr inline qreal QPointF::y() const noexcept
349{
350 return yp;
351}
352
353constexpr inline void QPointF::setX(qreal xpos) noexcept
354{
355 xp = xpos;
356}
357
358constexpr inline void QPointF::setY(qreal ypos) noexcept
359{
360 yp = ypos;
361}
362
363constexpr inline qreal &QPointF::rx() noexcept
364{
365 return xp;
366}
367
368constexpr inline qreal &QPointF::ry() noexcept
369{
370 return yp;
371}
372
373constexpr inline QPointF &QPointF::operator+=(const QPointF &p)
374{
375 xp += p.xp;
376 yp += p.yp;
377 return *this;
378}
379
380constexpr inline QPointF &QPointF::operator-=(const QPointF &p)
381{
382 xp -= p.xp;
383 yp -= p.yp;
384 return *this;
385}
386
387constexpr inline QPointF &QPointF::operator*=(qreal c)
388{
389 xp *= c;
390 yp *= c;
391 return *this;
392}
393
394constexpr inline QPointF &QPointF::operator/=(qreal divisor)
395{
396 Q_ASSERT(divisor > 0 || divisor < 0);
397 xp /= divisor;
398 yp /= divisor;
399 return *this;
400}
401
402constexpr QPointF QPoint::toPointF() const noexcept { return *this; }
403
404constexpr inline QPoint QPointF::toPoint() const
405{
406 return QPoint(qRound(xp), qRound(yp));
407}
408
409#ifndef QT_NO_DEBUG_STREAM
410Q_CORE_EXPORT QDebug operator<<(QDebug d, const QPointF &p);
411#endif
412
413QT_END_NAMESPACE
414
415/*****************************************************************************
416 QPoint/QPointF tuple protocol
417 *****************************************************************************/
418
419namespace std {
420 template <>
422 template <>
423 class tuple_element<0, QT_PREPEND_NAMESPACE(QPoint)> { public: using type = int; };
424 template <>
425 class tuple_element<1, QT_PREPEND_NAMESPACE(QPoint)> { public: using type = int; };
426
427 template <>
429 template <>
431 template <>
433}
434
435#endif // QPOINT_H
static bool readIniSection(const QSettingsKey &section, QByteArrayView data, ParsedSettingsMap *settingsMap)
void set(const QString &key, const QVariant &value) override
QStringList children(const QString &prefix, ChildSpec spec) const override
virtual void initAccess()
bool readIniFile(QByteArrayView data, UnparsedSettingsMap *unparsedIniSections)
bool isWritable() const override
QString fileName() const override
QConfFileSettingsPrivate(QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application)
void remove(const QString &key) override
QConfFileSettingsPrivate(const QString &fileName, QSettings::Format format)
const QList< QConfFile * > & getConfFiles() const
static bool readIniLine(QByteArrayView data, qsizetype &dataPos, qsizetype &lineStart, qsizetype &lineLen, qsizetype &equalsPos)
std::optional< QVariant > get(const QString &key) const override
QString name
QAtomicInt ref
UnparsedSettingsMap unparsedIniSections
ParsedSettingsMap originalKeys
qint64 size
bool userPerms
static Q_AUTOTEST_EXPORT void clearCache()
QDateTime timeStamp
QMutex mutex
ParsedSettingsMap removedKeys
ParsedSettingsMap mergedKeyMap() const
static QConfFile * fromName(const QString &name, bool _userPerms)
bool isWritable() const
ParsedSettingsMap addedKeys
\inmodule QtCore\reentrant
Definition qdatastream.h:47
\inmodule QtCore
Definition qfile.h:93
\inmodule QtCore
Definition qlockfile.h:17
\inmodule QtCore\reentrant
Definition qpoint.h:217
constexpr qreal & ry() noexcept
Returns a reference to the y coordinate of this point.
Definition qpoint.h:368
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
Definition qpoint.h:343
constexpr qreal manhattanLength() const
Definition qpoint.h:333
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
Definition qpoint.h:348
constexpr QPointF & operator+=(const QPointF &p)
Adds the given point to this point and returns a reference to this point.
Definition qpoint.h:373
constexpr qreal & rx() noexcept
Returns a reference to the x coordinate of this point.
Definition qpoint.h:363
constexpr QPointF & operator*=(qreal c)
Multiplies this point's coordinates by the given finite factor, and returns a reference to this point...
Definition qpoint.h:387
constexpr QPointF transposed() const noexcept
Definition qpoint.h:232
constexpr void setY(qreal y) noexcept
Sets the y coordinate of this point to the given finite y coordinate.
Definition qpoint.h:358
constexpr QPointF & operator-=(const QPointF &p)
Subtracts the given point from this point and returns a reference to this point.
Definition qpoint.h:380
constexpr QPointF() noexcept
Constructs a null point, i.e.
Definition qpoint.h:327
constexpr QPointF(qreal xpos, qreal ypos) noexcept
Constructs a point with the given coordinates (xpos, ypos).
Definition qpoint.h:329
constexpr void setX(qreal x) noexcept
Sets the x coordinate of this point to the given finite x coordinate.
Definition qpoint.h:353
constexpr QPointF & operator/=(qreal c)
Divides both x and y by the given divisor, and returns a reference to this point.
Definition qpoint.h:394
constexpr QPointF(const QPoint &p) noexcept
Constructs a copy of the given point.
Definition qpoint.h:331
bool isNull() const noexcept
Returns true if both the x and y coordinates are set to 0.0 (ignoring the sign); otherwise returns fa...
Definition qpoint.h:338
static constexpr qreal dotProduct(const QPointF &p1, const QPointF &p2)
Definition qpoint.h:242
\inmodule QtCore\reentrant
Definition qpoint.h:25
constexpr bool isNull() const noexcept
Returns true if both the x and y coordinates are set to 0, otherwise returns false.
Definition qpoint.h:125
constexpr QPoint & operator*=(double factor)
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
Definition qpoint.h:186
constexpr int & ry() noexcept
Returns a reference to the y coordinate of this point.
Definition qpoint.h:160
constexpr int & rx() noexcept
Returns a reference to the x coordinate of this point.
Definition qpoint.h:155
constexpr QPoint transposed() const noexcept
Definition qpoint.h:39
constexpr int x() const noexcept
Returns the x coordinate of this point.
Definition qpoint.h:130
constexpr void setY(int y) noexcept
Sets the y coordinate of this point to the given y coordinate.
Definition qpoint.h:145
constexpr QPoint & operator*=(int factor)
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
Definition qpoint.h:193
constexpr QPoint & operator+=(const QPoint &p)
Adds the given point to this point and returns a reference to this point.
Definition qpoint.h:165
constexpr int manhattanLength() const
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" ...
Definition qpoint.h:150
constexpr QPoint(int xpos, int ypos) noexcept
Constructs a point with the given coordinates (xpos, ypos).
Definition qpoint.h:123
constexpr int y() const noexcept
Returns the y coordinate of this point.
Definition qpoint.h:135
static constexpr int dotProduct(const QPoint &p1, const QPoint &p2)
Definition qpoint.h:53
constexpr void setX(int x) noexcept
Sets the x coordinate of this point to the given x coordinate.
Definition qpoint.h:140
constexpr QPoint & operator*=(float factor)
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
Definition qpoint.h:179
constexpr QPoint & operator-=(const QPoint &p)
Subtracts the given point from this point and returns a reference to this point.
Definition qpoint.h:172
constexpr QPoint & operator/=(qreal divisor)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qpoint.h:200
constexpr QPoint() noexcept
Constructs a null point, i.e.
Definition qpoint.h:121
friend constexpr bool comparesEqual(const QPoint &p1, const QPoint &p2) noexcept
Definition qpoint.h:57
QSettingsGroup(const QString &s, bool guessArraySize)
Definition qsettings_p.h:87
qsizetype num
Definition qsettings_p.h:98
QString toString() const
QString name() const
Definition qsettings_p.h:90
bool isArray() const
Definition qsettings_p.h:92
qsizetype arraySizeGuess() const
Definition qsettings_p.h:93
qsizetype maxNum
Definition qsettings_p.h:99
QSettingsGroup(const QString &s)
Definition qsettings_p.h:85
void setArrayIndex(qsizetype i)
Definition qsettings_p.h:94
qsizetype position
QSettingsIniKey(const QString &str, qsizetype pos=-1)
QSettingsKey(const QString &key, Qt::CaseSensitivity cs, qsizetype=-1)
Definition qsettings_p.h:47
QString originalCaseKey() const
Definition qsettings_p.h:50
qsizetype originalKeyPosition() const
Definition qsettings_p.h:51
\inmodule QtCore
Definition qsettings.h:30
\inmodule QtCore
Definition qsize.h:208
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
\macro QT_NO_KEYWORDS >
Definition qcompare.h:24
QDataStream & readListBasedContainer(QDataStream &s, Container &c)
QDataStream & readAssociativeContainer(QDataStream &s, Container &c)
QDataStream & writeAssociativeContainer(QDataStream &s, const Container &c)
QDataStream & writeAssociativeMultiContainer(QDataStream &s, const Container &c)
QDataStream & writeSequentialContainer(QDataStream &s, const Container &c)
QDataStream & readArrayBasedContainer(QDataStream &s, Container &c)
static const char charTraits[256]
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
std::enable_if_t< std::is_enum< T >::value, QDataStream & > operator>>(QDataStream &s, T &t)
QDataStream & operator>>(QDataStream &s, QFlags< Enum > &e)
QDataStreamIfHasIStreamOperators< T1, T2 > operator>>(QDataStream &s, std::pair< T1, T2 > &p)
QDataStream & operator>>(QDataStream &s, QKeyCombination &combination)
QDataStreamIfHasIStreamOperatorsContainer< QHash< Key, T >, Key, T > operator>>(QDataStream &s, QHash< Key, T > &hash)
QDataStreamIfHasIStreamOperatorsContainer< QList< T >, T > operator>>(QDataStream &s, QList< T > &v)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2439
QT_REQUIRE_CONFIG(itemmodel)
size_t qHash(QPointF, size_t seed=0)=delete
Q_DECLARE_TYPEINFO(QPointF, Q_PRIMITIVE_TYPE)
Q_DECLARE_TYPEINFO(QPoint, Q_PRIMITIVE_TYPE)
QMap< QString, QSettingsIniSection > IniMap
QList< QConfFileCustomFormat > CustomFormatVector
Definition qsettings.cpp:94
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
static constexpr QChar sep
static Path getPath(QSettings::Format format, QSettings::Scope scope)
QMap< QSettingsIniKey, QVariant > IniKeyMap
static int pathHashKey(QSettings::Format format, QSettings::Scope scope)
static QString make_user_path()
static std::unique_lock< QBasicMutex > initDefaultPaths(std::unique_lock< QBasicMutex > locker)
static QString make_user_path_without_qstandard_paths()
QHash< QString, QConfFile * > ConfFileHash
Definition qsettings.cpp:80
QHash< int, Path > PathHash
Definition qsettings.cpp:93
Q_DECLARE_TYPEINFO(QSettingsIniSection, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QConfFileCustomFormat, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QSettingsIniKey, Q_RELOCATABLE_TYPE)
QCache< QString, QConfFile > ConfFileCache
Definition qsettings.cpp:81
#define FLUSH_CURRENT_SECTION()
static void iniChopTrailingSpaces(QString &str, qsizetype limit)
Q_DECLARE_TYPEINFO(QSettingsGroup, Q_RELOCATABLE_TYPE)
static const Qt::CaseSensitivity IniCaseSensitivity
Definition qsettings_p.h:42
Q_DECLARE_TYPEINFO(QSettingsKey, Q_RELOCATABLE_TYPE)
QMap< QSettingsKey, QByteArray > UnparsedSettingsMap
Definition qsettings_p.h:77
QMap< QSettingsKey, QVariant > ParsedSettingsMap
Definition qsettings_p.h:78
#define QT_QSETTINGS_ALWAYS_CASE_SENSITIVE_AND_FORGET_ORIGINAL_KEY_ORDER
Definition qsettings_p.h:35
Q_DECLARE_TYPEINFO(QSizeF, Q_RELOCATABLE_TYPE)
constexpr size_t qHash(const QSize &s, size_t seed=0) noexcept
Definition qsize.h:181
Qt::CaseSensitivity caseSensitivity
Definition qsettings.cpp:76