54 #include <QtCore/QCoreApplication> 55 #include <QtCore/QDir> 56 #include <QtCore/QFileInfo> 57 #include <QtDeclarative/QDeclarativeComponent> 58 #include <QtDeclarative/QDeclarativeEngine> 59 #include <QtDeclarative/QDeclarativeContext> 61 #if defined(QMLJSDEBUGGER) && QT_VERSION < 0x040800 63 #include <qt_private/qdeclarativedebughelper_p.h> 65 #if !defined(NO_JSDEBUGGER) 66 #include <jsdebuggeragent.h> 68 #if !defined(NO_QMLOBSERVER) 69 #include <qdeclarativeviewobserver.h> 73 struct QmlJsDebuggingEnabler
75 QmlJsDebuggingEnabler()
82 static QmlJsDebuggingEnabler enableDebuggingHelper;
84 #endif // QMLJSDEBUGGER 106 return pathInInstallDir;
120 #if defined(QMLJSDEBUGGER) && QT_VERSION < 0x040800 121 #if !defined(NO_JSDEBUGGER) 122 new QmlJSDebugger::JSDebuggerAgent(
engine());
124 #if !defined(NO_QMLOBSERVER) 125 new QmlJSDebugger::QDeclarativeViewObserver(
this,
this);
191 #if defined(Q_OS_SYMBIAN) || defined(MEEGO_EDITION_HARMATTAN) 193 #elif defined(Q_WS_MAEMO_5)
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
static bool isAbsolutePath(const QString &path)
Returns true if path is absolute; returns false if it is relative.
The QDeclarativeView class provides a widget for displaying a Qt Declarative user interface...
void addImportPath(const QString &dir)
Adds path as a directory where the engine searches for installed modules in a URL-based directory str...
class QmlApplicationViewerPrivate * m_d
static void enableDebugging()
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
bool exists() const
Returns true if the file exists; otherwise returns false.
The QString class provides a Unicode character string.
void addImportPath(const QString &path)
static QString applicationDirPath()
Returns the directory that contains the application executable.
void setOrientation(ScreenOrientation orientation)
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
void setMainQmlFile(const QString &file)
void setResizeMode(ResizeMode)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
void setSource(const QUrl &)
Sets the source to the url, loads the QML component and instantiates it.
QDeclarativeEngine * engine() const
Returns a pointer to the QDeclarativeEngine used for instantiating QML Components.
QObject * parent() const
Returns a pointer to the parent object.
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
The QFileInfo class provides system-independent file information.
QmlApplicationViewer(QWidget *parent=0)
virtual ~QmlApplicationViewer()
static QString adjustPath(const QString &path)