Qt 4.8
Functions | Variables
qdeclarativepathview.cpp File Reference
#include "private/qdeclarativepathview_p.h"
#include "private/qdeclarativepathview_p_p.h"
#include <qdeclarativestate_p.h>
#include <qdeclarativeopenmetaobject_p.h>
#include <QDebug>
#include <QEvent>
#include <qlistmodelinterface_p.h>
#include <QGraphicsSceneEvent>
#include <qmath.h>
#include <math.h>

Go to the source code of this file.

Functions

qreal qmlMod (qreal x, qreal y)
 

Variables

static QDeclarativeOpenMetaObjectTypeqPathViewAttachedType = 0
 

Function Documentation

◆ qmlMod()

qreal qmlMod ( qreal  x,
qreal  y 
)
inline

Definition at line 57 of file qdeclarativepathview.cpp.

Referenced by QDeclarativePathViewPrivate::calcCurrentIndex(), QDeclarativePathView::componentComplete(), QDeclarativePathViewPrivate::positionOfIndex(), QDeclarativePathViewPrivate::setHighlightPosition(), QDeclarativePathViewPrivate::setOffset(), and QDeclarativePathViewPrivate::snapToCurrent().

58 {
59 #ifdef QT_USE_MATH_H_FLOATS
60  if(sizeof(qreal) == sizeof(float))
61  return fmodf(float(x), float(y));
62  else
63 #endif
64  return fmod(x, y);
65 }
double qreal
Definition: qglobal.h:1193

Variable Documentation

◆ qPathViewAttachedType

QDeclarativeOpenMetaObjectType* qPathViewAttachedType = 0
static

Definition at line 67 of file qdeclarativepathview.cpp.