Qt 4.8
|
#include "qvariant.h"
#include "qbitarray.h"
#include "qbytearray.h"
#include "qdatastream.h"
#include "qdebug.h"
#include "qmap.h"
#include "qdatetime.h"
#include "qeasingcurve.h"
#include "qlist.h"
#include "qstring.h"
#include "qstringlist.h"
#include "qurl.h"
#include "qlocale.h"
#include "private/qvariant_p.h"
#include "qsize.h"
#include "qpoint.h"
#include "qrect.h"
#include "qline.h"
#include <float.h>
Go to the source code of this file.
Macros | |
#define | DBL_DIG 10 |
#define | FLT_DIG 6 |
Enumerations | |
enum | { MapFromThreeCount = 36 } |
Functions | |
static void | clear (QVariant::Private *d) |
static bool | compare (const QVariant::Private *a, const QVariant::Private *b) |
Compares a to b. More... | |
template<typename T > | |
bool | compareNumericMetaType (const QVariant::Private *const a, const QVariant::Private *const b) |
static void | construct (QVariant::Private *x, const void *copy) |
static bool | convert (const QVariant::Private *d, QVariant::Type t, void *result, bool *ok) |
static bool | isNull (const QVariant::Private *d) |
QDataStream & | operator<< (QDataStream &s, const QVariant &p) |
Writes a variant p to the stream s. More... | |
QDataStream & | operator<< (QDataStream &s, const QVariant::Type p) |
Writes a variant type p to the stream s. More... | |
QDebug | operator<< (QDebug dbg, const QVariant &v) |
QDebug | operator<< (QDebug dbg, const QVariant::Type p) |
QDataStream & | operator>> (QDataStream &s, QVariant &p) |
Reads a variant p from the stream s. More... | |
QDataStream & | operator>> (QDataStream &s, QVariant::Type &p) |
Reads a variant type p in enum representation from the stream s. More... | |
static qlonglong | qConvertToNumber (const QVariant::Private *d, bool *ok) |
static qulonglong | qConvertToUnsignedNumber (const QVariant::Private *d, bool *ok) |
Q_CORE_EXPORT const QVariant::Handler * | qcoreVariantHandler () |
static bool | qIsFloatingPoint (uint tp) |
static bool | qIsNumericType (uint tp) |
static qlonglong | qMetaTypeNumber (const QVariant::Private *d) |
static qulonglong | qMetaTypeUNumber (const QVariant::Private *d) |
template<typename T > | |
T | qNumVariantToHelper (const QVariant::Private &d, const QVariant::Handler *handler, bool *ok, const T &val) |
template<typename TInput , typename LiteralWrapper > | |
bool | qt_convertToBool (const QVariant::Private *const d) |
template<typename T > | |
T | qVariantToHelper (const QVariant::Private &d, QVariant::Type t, const QVariant::Handler *handler, T *=0) |
static void | streamDebug (QDebug dbg, const QVariant &v) |
Variables | |
static const ushort | map_from_three [MapFromThreeCount] |
static const quint32 | qCanConvertMatrix [QVariant::LastCoreType+1] |
const QVariant::Handler | qt_kernel_variant_handler |
#define DBL_DIG 10 |
Definition at line 69 of file qvariant.cpp.
Referenced by convert(), qstrtod(), and QDoubleSpinBox::setDecimals().
#define FLT_DIG 6 |
Definition at line 72 of file qvariant.cpp.
Referenced by convert().
anonymous enum |
Enumerator | |
---|---|
MapFromThreeCount |
Definition at line 2046 of file qvariant.cpp.
|
static |
Definition at line 197 of file qvariant.cpp.
Referenced by QHeaderViewPrivate::_q_sectionsRemoved(), QComboBox::addItems(), QListWidget::addItems(), QGL2PEXVertexArray::addVertex(), QContiguousCache< T >::available(), QBitmap::clear(), QDeclarativeEnginePrivate::SimpleList< T >::clear(), QVector< QPoint >::constData(), QDeclarativeCompiledBindingsPrivate::Binding::destroy(), QFileSystemMetaData::fillFromDirEnt(), QDeclarativeAbstractBinding::getPointer(), SurfaceCache::getSurface(), QDirModelPrivate::init(), QContiguousCache< T >::insert(), QAxBase::internalProperty(), QGraphicsScene::invalidate(), QToolBar::isAreaAllowed(), QLinkedList< JSC::Identifier >::isEmpty(), QList< QPostEvent >::isEmpty(), QString::isSharedWith(), QByteArray::isSharedWith(), QHash< QExplicitlySharedDataPointer, QHash >::isSharedWith(), QInt64Set::isValid(), QListModeViewBase::itemIndex(), QDeclarativeGridViewPrivate::layout(), QDeclarativeListViewPrivate::layout(), QByteArray::length(), QDomDocumentPrivate::nodeType(), QSqlRecord::operator!=(), QProcessEnvironment::operator!=(), QSslCertificate::operator!=(), QHostAddress::operator!=(), QDeclarativeGridViewPrivate::QDeclarativeGridViewPrivate(), QDeclarativeListViewPrivate::QDeclarativeListViewPrivate(), QInt64Set::QInt64Set(), QRBTree< int >::QRBTree(), QResourcePrivate::QResourcePrivate(), QDeclarativePathViewPrivate::regenerate(), QDeclarativeGridViewPrivate::regenerate(), QDeclarativeListViewPrivate::regenerate(), QInt64Set::rehash(), QPatternist::ResourceLoader::ResourceLoader(), QLineControl::selectAll(), QAxBase::setControl(), QGLTextureGlyphCache::setFilterMode(), QMap< int, QFrameInfo >::setInsertInOrder(), QDomNodePrivate::setNodeValue(), QSqlField::setRequired(), QUrl::swap(), QVariant::swap(), QTextControl::toHtml(), QPlainTextEdit::toPlainText(), QSqlField::value(), QHostInfoLookupManager::waitForThreadPoolDone(), QAbstractHostInfoLookupManager::~QAbstractHostInfoLookupManager(), QAxBase::~QAxBase(), QCommonListViewBase::~QCommonListViewBase(), QRBTree< int >::~QRBTree(), QResourcePrivate::~QResourcePrivate(), QSpanCollection::~QSpanCollection(), QTestEventList::~QTestEventList(), QXmlAttributes::~QXmlAttributes(), and SurfaceCache::~SurfaceCache().
|
static |
Compares a to b.
The caller guarantees that a and b are of the same type.
Definition at line 383 of file qvariant.cpp.
Referenced by QTestResult::compare(), QString::compare(), QPatternist::ComparisonFactory::constructAndCompare(), QPatternist::ComparisonPlatform< IndexOfIterator, false >::detailedFlexibleCompare(), QListModel::ensureSorted(), QTreeModel::ensureSorted(), QTableModel::ensureSorted(), QPatternist::ComparisonPlatform< IndexOfIterator, false >::flexibleCompare(), QSortFilterProxyModelPrivate::proxy_intervals_for_source_items_to_add(), QPatternist::XPath20CoreFunctions::retrieveExpression(), QListModel::sort(), QTableModel::sort(), QTreeModel::sortItems(), and QCss::Parser::testPrio().
|
inline |
Definition at line 369 of file qvariant.cpp.
|
static |
Definition at line 75 of file qvariant.cpp.
Referenced by QScriptValue::construct(), QApplicationPrivate::graphicsSystem(), and QDeclarativeCompiledBindingsPrivate::run().
|
static |
Converts d to type t, which is placed in result.
Definition at line 627 of file qvariant.cpp.
Referenced by QDeclarativeBindingCompilerPrivate::compile(), QPSQLResult::data(), QScriptEngine::fromScriptValue(), QDeclarativeBindingCompilerPrivate::numberArith(), QDeclarativeBindingCompilerPrivate::stringArith(), and QVariant::swap().
|
static |
Definition at line 300 of file qvariant.cpp.
Referenced by QMacStylePrivate::aquaSizeConstrain(), QPatternist::Item::asNode(), classIDL(), convert(), DumpIDL(), QAxBase::dynamicCallHelper(), QLabelPrivate::ensureTextPopulated(), QCss::ValueExtractor::extractImage(), QFileInfoPrivate::getFileName(), QFileInfoPrivate::getFileOwner(), QSqlRecord::isNull(), QAbstractXmlNodeModel::iterate(), QByteArray::length(), QPatternist::ReportContext::lookupSourceLocation(), QToolBoxButton::minimumSizeHint(), QWatermarkLabel::minimumSizeHint(), QScopedPointer< QXmlResultItemsPrivate >::operator bool(), QUuid::operator QString(), QPixmap::operator!(), QAuthenticator::operator!=(), QSqlRecord::operator!=(), QSslCipher::operator!=(), QSslConfiguration::operator!=(), QSslCertificate::operator!=(), QHostAddress::operator!=(), QIcon::paint(), QCommandLinkButton::paintEvent(), QDB2Driver::primaryIndex(), QGuiEventDispatcherWin32::processEvents(), QAxBase::propertyBag(), QGLGraphicsSystem::QGLGraphicsSystem(), qMakeFieldInfo(), QMdiSubWindow::QMdiSubWindow(), QRect::QRect(), qt_cleanup(), qt_getLprPrinters(), qt_init(), qt_message_output(), QAxBase::qt_metacall(), qt_wstate_iconified(), QAxBase::setControl(), QmlJSDebugger::LiveSelectionIndicator::setItems(), QAxBase::setPropertyBag(), QListView::setSelection(), QMdiSubWindow::setWidget(), QMdiSubWindow::showShaded(), QPushButton::sizeHint(), QToolBoxButton::sizeHint(), QDockWidgetTitleButton::sizeHint(), QRegion::swap(), QPixmap::swap(), QImage::swap(), QVariant::swap(), QDB2Driver::tables(), QComboBoxPrivate::updateLineEditGeometry(), QSqlField::value(), QPatternist::yyparse(), and QObject::~QObject().
QDataStream& operator<< | ( | QDataStream & | s, |
const QVariant & | p | ||
) |
Writes a variant p to the stream s.
Definition at line 2195 of file qvariant.cpp.
Referenced by QVariant::operator!=(), qVariantCanConvert(), and QVariant::setValue().
QDataStream& operator<< | ( | QDataStream & | s, |
const QVariant::Type | p | ||
) |
Writes a variant type p to the stream s.
Definition at line 2216 of file qvariant.cpp.
Definition at line 3108 of file qvariant.cpp.
QDebug operator<< | ( | QDebug | dbg, |
const QVariant::Type | p | ||
) |
Definition at line 3122 of file qvariant.cpp.
QDataStream& operator>> | ( | QDataStream & | s, |
QVariant & | p | ||
) |
Reads a variant p from the stream s.
Definition at line 2184 of file qvariant.cpp.
Referenced by QVariant::setValue().
QDataStream& operator>> | ( | QDataStream & | s, |
QVariant::Type & | p | ||
) |
Reads a variant type p in enum representation from the stream s.
Definition at line 2204 of file qvariant.cpp.
|
static |
Definition at line 549 of file qvariant.cpp.
Referenced by convert().
|
static |
Definition at line 582 of file qvariant.cpp.
Referenced by convert().
Q_CORE_EXPORT const QVariant::Handler* qcoreVariantHandler | ( | ) |
Definition at line 1193 of file qvariant.cpp.
Referenced by clear(), compare(), construct(), convert(), isNull(), streamDebug(), and v_clear().
|
static |
Definition at line 3039 of file qvariant.cpp.
Referenced by QVariant::cmp().
|
static |
Definition at line 3033 of file qvariant.cpp.
Referenced by QVariant::cmp().
|
static |
Definition at line 509 of file qvariant.cpp.
Referenced by convert(), qConvertToNumber(), and qConvertToUnsignedNumber().
|
static |
Definition at line 531 of file qvariant.cpp.
Referenced by convert(), qConvertToNumber(), and qConvertToUnsignedNumber().
|
inline |
Definition at line 2596 of file qvariant.cpp.
|
inline |
Definition at line 616 of file qvariant.cpp.
|
inline |
Definition at line 2236 of file qvariant.cpp.
Definition at line 1073 of file qvariant.cpp.
|
static |
Definition at line 2047 of file qvariant.cpp.
Referenced by QVariant::load(), and QVariant::save().
|
static |
Definition at line 2771 of file qvariant.cpp.
Referenced by QVariant::canConvert().
const QVariant::Handler qt_kernel_variant_handler |
Definition at line 1175 of file qvariant.cpp.
Referenced by qcoreVariantHandler().