Qt 4.8
Static Public Functions | List of all members
QDeclarativeDebugHelper Class Reference

#include <qdeclarativedebughelper_p.h>

Static Public Functions

static void enableDebugging ()
 
static QScriptEnginegetScriptEngine (QDeclarativeEngine *engine)
 
static void setAnimationSlowDownFactor (qreal factor)
 

Detailed Description

Definition at line 58 of file qdeclarativedebughelper_p.h.

Functions

◆ enableDebugging()

void QDeclarativeDebugHelper::enableDebugging ( )
static

Definition at line 67 of file qdeclarativedebughelper.cpp.

67  {
68 #ifndef QDECLARATIVE_NO_DEBUG_PROTOCOL
70  qWarning("Qml debugging is enabled. Only use this in a safe environment!");
71  }
73 #endif
74 }
Q_CORE_EXPORT void qWarning(const char *,...)

◆ getScriptEngine()

QScriptEngine * QDeclarativeDebugHelper::getScriptEngine ( QDeclarativeEngine engine)
static

Definition at line 55 of file qdeclarativedebughelper.cpp.

56 {
58 }
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)

◆ setAnimationSlowDownFactor()

void QDeclarativeDebugHelper::setAnimationSlowDownFactor ( qreal  factor)
static

Definition at line 60 of file qdeclarativedebughelper.cpp.

Referenced by QmlJSDebugger::AbstractViewInspector::animationPausedChangeRequested(), and QmlJSDebugger::AbstractViewInspector::animationSpeedChangeRequested().

61 {
63  timer->setSlowModeEnabled(factor != 1.0);
64  timer->setSlowdownFactor(factor);
65 }
EventLoopTimerRef timer
void setSlowdownFactor(qreal factor)
static QUnifiedTimer * instance()
void setSlowModeEnabled(bool enabled)

The documentation for this class was generated from the following files: