Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qvalidator.cpp File Reference

(f1077737426ca18511cc074186ed180dd2119975)

#include <qdebug.h>
#include "qvalidator.h"
#include "private/qobject_p.h"
#include "private/qlocale_p.h"
#include "private/qnumeric_p.h"
#include <limits.h>
#include <cmath>
#include "moc_qvalidator.cpp"
+ Include dependency graph for qvalidator.cpp:

Go to the source code of this file.

Classes

class  QValidatorPrivate
 
class  QDoubleValidatorPrivate
 

Macros

#define LLONG_MAX   Q_INT64_C(0x7fffffffffffffff)
 

Functions

static int numDigits (qlonglong n)
 
static qlonglong pow10 (int exp)
 
template<typename T >
static std::optional< QValidator::StateinitialResultCheck (T min, T max, const ParsingResult &result)
 

Macro Definition Documentation

◆ LLONG_MAX

#define LLONG_MAX   Q_INT64_C(0x7fffffffffffffff)

Definition at line 637 of file qvalidator.cpp.

Function Documentation

◆ initialResultCheck()

template<typename T >
static std::optional< QValidator::State > initialResultCheck ( T min,
T max,
const ParsingResult & result )
inlinestatic

Definition at line 366 of file qvalidator.cpp.

References ch, ParsingResult::Intermediate, QValidator::Intermediate, ParsingResult::Invalid, QValidator::Invalid, and QVarLengthArray< T, Prealloc >::isEmpty().

Referenced by QIntValidator::validate(), and QDoubleValidatorPrivate::validateWithLocale().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ numDigits()

static int numDigits ( qlonglong n)
static

Definition at line 350 of file qvalidator.cpp.

Referenced by QLCDNumber::QLCDNumber(), QSettingsPrivate::iniUnescapedKey(), QTextList::itemText(), QLCDNumber::setDigitCount(), QQuickStyledTextPrivate::toRoman(), and QDoubleValidatorPrivate::validateWithLocale().

+ Here is the caller graph for this function:

◆ pow10()

static qlonglong pow10 ( int exp)
static

Definition at line 357 of file qvalidator.cpp.

References i.

Referenced by QDoubleValidatorPrivate::validateWithLocale().

+ Here is the caller graph for this function: