diff --git a/charts.pro b/charts.pro index a7d70df..18d71ab 100644 --- a/charts.pro +++ b/charts.pro @@ -3,7 +3,7 @@ } TEMPLATE = subdirs -SUBDIRS += src example test +SUBDIRS += src qmlplugin example test CONFIG += ordered QMAKE_CXXFLAGS += -g -Wall unix:QMAKE_DISTCLEAN += -r build bin diff --git a/common.pri b/common.pri index acf75e5..38921c2 100644 --- a/common.pri +++ b/common.pri @@ -6,12 +6,11 @@ CHART_BUILD_DIR = $$PWD/build CHART_BUILD_BIN_DIR = $$PWD/bin # hack to fix windows builds - win32:{ -CHART_BUILD_HEADER_DIR = $$replace(CHART_BUILD_HEADER_DIR, "/","\\") -CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") -CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") -CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") + CHART_BUILD_HEADER_DIR = $$replace(CHART_BUILD_HEADER_DIR, "/","\\") + CHART_BUILD_LIB_DIR = $$replace(CHART_BUILD_LIB_DIR, "/","\\") + CHART_BUILD_BUILD_DIR = $$replace(CHART_BUILD_BUILD_DIR, "/","\\") + CHART_BUILD_BIN_DIR = $$replace(CHART_BUILD_BIN_DIR, "/","\\") } mac: { diff --git a/features/qtcommercialchart.prf b/features/qtcommercialchart.prf index d60608e..72f4a2b 100644 --- a/features/qtcommercialchart.prf +++ b/features/qtcommercialchart.prf @@ -1,5 +1,3 @@ -message( "Configuring with QtCommercialChart addon..." ) - INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtCommercialChart CONFIG(debug, debug|release) { diff --git a/qmlplugin/declarativechart.cpp b/qmlplugin/declarativechart.cpp index 5fcedc5..6151af8 100644 --- a/qmlplugin/declarativechart.cpp +++ b/qmlplugin/declarativechart.cpp @@ -1,27 +1,29 @@ #include "declarativechart.h" -#include -#ifndef QTQUICK2 +QTCOMMERCIALCHART_BEGIN_NAMESPACE + DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent) - : QDeclarativeItem(parent) + : QDeclarativeItem(parent), + m_chart(new QChart(this)) { - // need to disable this flag to draw inside a QDeclarativeItem setFlag(QGraphicsItem::ItemHasNoContents, false); + m_chart->resize(QSize(height(), width())); + m_chart->setMargin(25); // TODO: should not be needed? } -#else -DeclarativeChart::DeclarativeChart(QQuickItem *parent) - : QQuickPaintedItem(parent) -{ +DeclarativeChart::ChartTheme DeclarativeChart::theme() +{ + if (m_chart) + return (ChartTheme) m_chart->theme(); + else + return ThemeInvalid; } -#endif -#ifndef QTQUICK2 -void DeclarativeChart::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) -#else -void DeclarativeChart::paint(QPainter *painter) -#endif +void DeclarativeChart::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) { - drawChart(painter, boundingRect()); + m_chart->resize(QSize(newGeometry.width(), newGeometry.height())); } +#include "moc_declarativechart.cpp" + +QTCOMMERCIALCHART_END_NAMESPACE diff --git a/qmlplugin/declarativechart.h b/qmlplugin/declarativechart.h index 89d7f8b..cef5a05 100644 --- a/qmlplugin/declarativechart.h +++ b/qmlplugin/declarativechart.h @@ -2,36 +2,44 @@ #define DECLARATIVECHART_H #include -#ifndef QTQUICK2 - #include -#else - #include -#endif -#include -#include "../src/chart.h" - -#ifndef QTQUICK2 -class DeclarativeChart : public QDeclarativeItem, public Chart -#else -class DeclarativeChart : public QQuickPaintedItem, public Chart -#endif +#include +#include + +QTCOMMERCIALCHART_BEGIN_NAMESPACE + +class DeclarativeChart : public QDeclarativeItem +// TODO: for QTQUICK2: extend QQuickPainterItem instead +//class DeclarativeChart : public QQuickPaintedItem, public Chart { Q_OBJECT - Q_PROPERTY(QColor color READ color WRITE setColor) + Q_ENUMS(ChartTheme) + Q_PROPERTY(ChartTheme theme READ theme WRITE setTheme) public: -#ifndef QTQUICK2 + enum ChartTheme { + ThemeInvalid = QChart::ChartThemeInvalid, + ThemeDefault, + ThemeVanilla, + ThemeIcy, + ThemeGrayscale, + //ThemeScientific, + ThemeUnnamed1 + }; DeclarativeChart(QDeclarativeItem *parent = 0); -#else - DeclarativeChart(QQuickItem *parent = 0); -#endif - -#ifndef QTQUICK2 - void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); -#else - void paint(QPainter *painter); -#endif + +public: // From QDeclarativeItem/QGraphicsItem + void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry); + +public: + void setTheme(ChartTheme theme) {m_chart->setTheme((QChart::ChartThemeId) theme);} + ChartTheme theme(); + +public: + // Extending QChart with DeclarativeChart is not possible because QObject does not support + // multi inheritance, so we now have a QChart as a member instead + QChart *m_chart; }; +QTCOMMERCIALCHART_END_NAMESPACE #endif // DECLARATIVECHART_H diff --git a/qmlplugin/declarativeseries.cpp b/qmlplugin/declarativeseries.cpp new file mode 100644 index 0000000..fa0044d --- /dev/null +++ b/qmlplugin/declarativeseries.cpp @@ -0,0 +1,96 @@ +#include "declarativeseries.h" +#include "declarativechart.h" +#include +#include +#include + +QTCOMMERCIALCHART_BEGIN_NAMESPACE + +DeclarativeSeries::DeclarativeSeries(QDeclarativeItem *parent) : + QDeclarativeItem(parent), + m_seriesType(SeriesTypeInvalid), // TODO: default type? + m_chart(0), + m_series(0) +{ + setFlag(QGraphicsItem::ItemHasNoContents, false); + connect(this, SIGNAL(parentChanged()), + this, SLOT(setParentForSeries())); +} + +void DeclarativeSeries::setSeriesType(SeriesType type) +{ + if (!m_series || type != m_seriesType) { + m_seriesType = type; + initSeries(); + } +} + +void DeclarativeSeries::setParentForSeries() +{ + initSeries(); +} + +void DeclarativeSeries::initSeries() +{ + DeclarativeChart *declarativeChart = qobject_cast(parent()); + + if (declarativeChart && m_seriesType != SeriesTypeInvalid) { + delete m_series; + m_series = 0; + + QChart *chart = qobject_cast(declarativeChart->m_chart); + qDebug() << "creating series for chart: " << chart; + Q_ASSERT(chart); + + switch (m_seriesType) { + case SeriesTypeLine: { + m_series = QXYChartSeries::create(this); + for (qreal i(0.0); i < 100.0; i += 1.0) + ((QXYChartSeries *)m_series)->add(i, i); + chart->addSeries(m_series); + break; + } + case SeriesTypeBar: + // fallthrough; bar and scatter use the same test data + case SeriesTypeScatter: { + m_series = chart->createSeries((QChartSeries::QChartSeriesType) m_seriesType); + QList datax; + QList datay; + for (qreal i = 0; i < 100; i += 0.1) { + datax.append(i + (rand() % 5)); + datay.append(abs(sin(3.14159265358979 / 50 * i) * 100) + (rand() % 5)); + } + Q_ASSERT(m_series->setData(datax, datay)); + break; + } + case SeriesTypeStackedBar: + break; + case SeriesTypePercentBar: + break; + case SeriesTypePie: { + m_series = chart->createSeries((QChartSeries::QChartSeriesType) m_seriesType); + QList data; + data << 1.0; + data << 12.0; + data << 4.0; + Q_ASSERT(m_series->setData(data)); + break; + } + default: + break; + } + } +} + +QVariant DeclarativeSeries::itemChange(GraphicsItemChange change, + const QVariant &value) +{ + // For debugging purposes only: +// qDebug() << QString::number(change) << " : " << value.toString(); + return QGraphicsItem::itemChange(change, value); +} + + +#include "moc_declarativeseries.cpp" + +QTCOMMERCIALCHART_END_NAMESPACE diff --git a/qmlplugin/declarativeseries.h b/qmlplugin/declarativeseries.h new file mode 100644 index 0000000..0d57425 --- /dev/null +++ b/qmlplugin/declarativeseries.h @@ -0,0 +1,53 @@ +#ifndef DECLARATIVESERIES_H +#define DECLARATIVESERIES_H + +#include +#include +#include + +QTCOMMERCIALCHART_BEGIN_NAMESPACE + +class DeclarativeSeries : public QDeclarativeItem +{ + Q_OBJECT + Q_ENUMS(SeriesType) + Q_PROPERTY(SeriesType seriesType READ seriesType WRITE setSeriesType) + +public: + // TODO: how to re-use the existing enum from QChart? + enum SeriesType { + SeriesTypeInvalid = QChartSeries::SeriesTypeInvalid, + SeriesTypeLine, +// SeriesTypeArea, + SeriesTypeBar, + SeriesTypeStackedBar, + SeriesTypePercentBar, + SeriesTypePie, + SeriesTypeScatter +// SeriesTypeSpline + }; + + explicit DeclarativeSeries(QDeclarativeItem *parent = 0); + +signals: + +public slots: + void setParentForSeries(); + +public: // from QDeclarativeItem + QVariant itemChange(GraphicsItemChange, const QVariant &); + +public: + void setSeriesType(SeriesType type); + SeriesType seriesType() { return m_seriesType; } + +private: + void initSeries(); + SeriesType m_seriesType; + QChart *m_chart; + QChartSeries *m_series; +}; + +QTCOMMERCIALCHART_END_NAMESPACE + +#endif // DECLARATIVESERIES_H diff --git a/qmlplugin/plugin.cpp b/qmlplugin/plugin.cpp index 1b8f64e..d9140f3 100644 --- a/qmlplugin/plugin.cpp +++ b/qmlplugin/plugin.cpp @@ -1,22 +1,27 @@ #include #include #include "declarativechart.h" +#include "declarativeseries.h" -QT_BEGIN_NAMESPACE +QTCOMMERCIALCHART_BEGIN_NAMESPACE -class QmlChartPlugin : public QDeclarativeExtensionPlugin +class ChartQmlPlugin : public QDeclarativeExtensionPlugin { Q_OBJECT public: virtual void registerTypes(const char *uri) { - Q_ASSERT(QLatin1String(uri) == QLatin1String("com.digia.charts")); + Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCommercial.Chart")); qmlRegisterType(uri, 1, 0, "Chart"); + qmlRegisterType(uri, 1, 0, "Series"); + //qmlRegisterUncreatableType(uri, 1, 0, "Series.Se", QLatin1String("Do not create objects of this type.")); } }; -QT_END_NAMESPACE - #include "plugin.moc" -Q_EXPORT_PLUGIN2(qmlchartplugin, QT_PREPEND_NAMESPACE(QmlChartPlugin)); +QTCOMMERCIALCHART_END_NAMESPACE + +QTCOMMERCIALCHART_USE_NAMESPACE + +Q_EXPORT_PLUGIN2(qtcommercialchartqml, QT_PREPEND_NAMESPACE(ChartQmlPlugin)) diff --git a/qmlplugin/qmldir b/qmlplugin/qmldir index 0d373d6..d4b6ae7 100644 --- a/qmlplugin/qmldir +++ b/qmlplugin/qmldir @@ -1 +1 @@ -plugin qmlchartplugin +plugin qtcommercialchartqml diff --git a/qmlplugin/qmlplugin.pro b/qmlplugin/qmlplugin.pro index fb143f0..cde7f93 100644 --- a/qmlplugin/qmlplugin.pro +++ b/qmlplugin/qmlplugin.pro @@ -1,30 +1,39 @@ +!include( ../common.pri ) { + error( "Couldn't find the common.pri file!" ) +} +!include( ../integrated.pri ) { + error( "Couldn't find the integrated.pri file !") +} + TEMPLATE = lib -TARGET = qmlchartplugin +TARGET = qtcommercialchartqml CONFIG += qt plugin QT += declarative contains(QT_MAJOR_VERSION, 5) { + # TODO: QtQuick2 not supported by the implementation currently DEFINES += QTQUICK2 } -OBJECTS_DIR = tmp -MOC_DIR = tmp +OBJECTS_DIR = $$CHART_BUILD_DIR/lib +MOC_DIR = $$CHART_BUILD_DIR/lib +UI_DIR = $$CHART_BUILD_DIR/lib +RCC_DIR = $$CHART_BUILD_DIR/lib SOURCES += \ plugin.cpp \ - declarativechart.cpp + declarativechart.cpp \ + declarativeseries.cpp HEADERS += \ - declarativechart.h -include(../src/chart.pri) + declarativechart.h \ + declarativeseries.h -TARGETPATH = com/digia/charts - -#DESTDIR = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH +TARGETPATH = QtCommercial/Chart target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH - qmldir.files += $$PWD/qmldir qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH INSTALLS += target qmldir + diff --git a/src/qchart.cpp b/src/qchart.cpp index 4c64ce5..492afc1 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -47,6 +47,8 @@ QChart::~QChart(){} void QChart::addSeries(QChartSeries* series) { // TODO: we should check the series not already added + Q_ASSERT(series); + Q_ASSERT(series->type() != QChartSeries::SeriesTypeInvalid); m_chartSeries << series; @@ -178,6 +180,8 @@ void QChart::addSeries(QChartSeries* series) m_chartTheme->addObserver(pieSeries->d); break; } + default: + break; } // Update all the items to match the new visible area of the chart @@ -288,6 +292,11 @@ void QChart::setTheme(QChart::ChartThemeId theme) update(); } +QChart::ChartThemeId QChart::theme() +{ + return (QChart::ChartThemeId) m_chartTheme->d->m_currentTheme; +} + void QChart::zoomInToRect(const QRectF& rectangle) { diff --git a/src/qchart.h b/src/qchart.h index 763f448..3e2ee69 100644 --- a/src/qchart.h +++ b/src/qchart.h @@ -58,6 +58,7 @@ public: void setMargin(int margin); int margin() const; void setTheme(QChart::ChartThemeId theme); + QChart::ChartThemeId theme(); void setTitle(const QString& title,const QFont& font = QFont()); void setBackground(const QColor& startColor, const QColor& endColor = Qt::white, GradientOrientation orientation = VerticalGradientOrientation); diff --git a/src/qchartseries.h b/src/qchartseries.h index 816311b..bbe6c3e 100644 --- a/src/qchartseries.h +++ b/src/qchartseries.h @@ -12,7 +12,8 @@ class QTCOMMERCIALCHART_EXPORT QChartSeries : public QObject Q_OBJECT public: enum QChartSeriesType { - SeriesTypeLine = 0, + SeriesTypeInvalid = -1, + SeriesTypeLine, // SeriesTypeArea, SeriesTypeBar, SeriesTypeStackedBar, diff --git a/test/qmlchart/chart.h b/test/qmlchart/chart.h new file mode 100644 index 0000000..fa20070 --- /dev/null +++ b/test/qmlchart/chart.h @@ -0,0 +1,59 @@ +#ifndef CHART_H +#define CHART_H + +#include +#include + +class Chart : public QDeclarativeItem +{ + Q_OBJECT + Q_PROPERTY(int theme READ theme WRITE setTheme NOTIFY themeChanged) + +public: + Chart(QDeclarativeItem *parent = 0) : + QDeclarativeItem(parent), m_theme(0) + { + setFlag(QGraphicsItem::ItemHasNoContents, false); + } + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) + { + // TODO: remove + QPen pen(QColor(0, 0, 0), 10); + painter->setPen(pen); + if(smooth() == true) { + painter->setRenderHint(QPainter::Antialiasing, true); + } + painter->drawLine(0, 0, 100, 100); + } + + int theme() const { return m_theme; } + + // Set methods + void setTheme(int theme) { + if (theme != m_theme) { + m_theme = theme; + updateSize(); + emit themeChanged(); + update(); + } + } + +signals: + void themeChanged(); + +private: + void updateSize() { +// setX(qMin(m_x1, m_x2) - m_penWidth/2); +// setY(qMin(m_y1, m_y2) - m_penWidth/2); +// setWidth(qAbs(m_x2 - m_x1) + m_penWidth); +// setHeight(qAbs(m_y2 - m_y1) + m_penWidth); + } + +private: + int m_theme; +}; + +QML_DECLARE_TYPE(Chart) + +#endif // CHART_H diff --git a/test/qmlchart/main.cpp b/test/qmlchart/main.cpp new file mode 100644 index 0000000..125111a --- /dev/null +++ b/test/qmlchart/main.cpp @@ -0,0 +1,16 @@ +#include +#include +#include "qmlapplicationviewer.h" +#include "chart.h" + +Q_DECL_EXPORT int main(int argc, char *argv[]) +{ + QScopedPointer app(createApplication(argc, argv)); + QScopedPointer viewer(QmlApplicationViewer::create()); + + viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); + viewer->setMainQmlFile(QLatin1String("qml/qmlchart/main.qml")); + viewer->showExpanded(); + + return app->exec(); +} diff --git a/test/qmlchart/qml/qmlchart/main.qml b/test/qmlchart/qml/qmlchart/main.qml new file mode 100644 index 0000000..e068b65 --- /dev/null +++ b/test/qmlchart/qml/qmlchart/main.qml @@ -0,0 +1,76 @@ +import QtQuick 1.0 +import QtCommercial.Chart 1.0 + +Rectangle { + width: 360 + height: 360 + Text { + text: qsTr("Hello World") + anchors.centerIn: parent + } + +// Component.onCompleted: { +// for (var i = 0.0; i < 100.0; i += 0.1) { +// var x = i + Math.random() * 5; +// var y = Math.abs(Math.sin(3.14159 / 50 * x) * 100) + (Math.random() * 5); +// myData.append({'x':x, 'y':y}); +// } +// } + +// ChartModel { +// id: chartData +// ChartElement { +// y: 1.2 +// } +// ChartElement { +// x: 1.1 +// y: 1.2 +// } +// ChartElement { +// label: "February" +// y: 1.2 +// } +// ChartElement { +// label: "January" +// x: 0.2 +// y: 2.1 +// } +// } + +// Series { +// model: chartData +// seriesType: pie +// axis: Series.AxisSecondaryY +// } + + ListModel { + id: myData + ListElement { + nnn: 55.2 + mmm: 13.1 + } + ListElement { + nnn: 15.3 + mmm: 3.4 + } + } + + Chart { + anchors.fill: parent + theme: Chart.ThemeIcy + + Series { + seriesType: Series.SeriesTypePie + } + Series { + seriesType: Series.SeriesTypeScatter + } + Series { + seriesType: Series.SeriesTypeLine + } + // TODO: +// Series { +// seriesType: Series.SeriesTypeBar +// } + } +} diff --git a/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.cpp b/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.cpp new file mode 100644 index 0000000..8ba6e88 --- /dev/null +++ b/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.cpp @@ -0,0 +1,200 @@ +// checksum 0x78c version 0x60010 +/* + This file was generated by the Qt Quick Application wizard of Qt Creator. + QmlApplicationViewer is a convenience class containing mobile device specific + code such as screen orientation handling. Also QML paths and debugging are + handled here. + It is recommended not to modify this file, since newer versions of Qt Creator + may offer an updated version of it. +*/ + +#include "qmlapplicationviewer.h" + +#include +#include +#include +#include +#include +#include + +#include // MEEGO_EDITION_HARMATTAN + +#ifdef HARMATTAN_BOOSTER +#include +#endif + +#if defined(QMLJSDEBUGGER) && QT_VERSION < 0x040800 + +#include + +#if !defined(NO_JSDEBUGGER) +#include +#endif +#if !defined(NO_QMLOBSERVER) +#include +#endif + +// Enable debugging before any QDeclarativeEngine is created +struct QmlJsDebuggingEnabler +{ + QmlJsDebuggingEnabler() + { + QDeclarativeDebugHelper::enableDebugging(); + } +}; + +// Execute code in constructor before first QDeclarativeEngine is instantiated +static QmlJsDebuggingEnabler enableDebuggingHelper; + +#endif // QMLJSDEBUGGER + +class QmlApplicationViewerPrivate +{ + QmlApplicationViewerPrivate(QDeclarativeView *view_) : view(view_) {} + + QString mainQmlFile; + QDeclarativeView *view; + friend class QmlApplicationViewer; + QString adjustPath(const QString &path); +}; + +QString QmlApplicationViewerPrivate::adjustPath(const QString &path) +{ +#ifdef Q_OS_UNIX +#ifdef Q_OS_MAC + if (!QDir::isAbsolutePath(path)) + return QCoreApplication::applicationDirPath() + + QLatin1String("/../Resources/") + path; +#else + QString pathInInstallDir; + const QString applicationDirPath = QCoreApplication::applicationDirPath(); + pathInInstallDir = QString::fromAscii("%1/../%2").arg(applicationDirPath, path); + + if (QFileInfo(pathInInstallDir).exists()) + return pathInInstallDir; +#endif +#endif + return path; +} + +QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) + : QDeclarativeView(parent) + , d(new QmlApplicationViewerPrivate(this)) +{ + connect(engine(), SIGNAL(quit()), SLOT(close())); + setResizeMode(QDeclarativeView::SizeRootObjectToView); + // Qt versions prior to 4.8.0 don't have QML/JS debugging services built in +#if defined(QMLJSDEBUGGER) && QT_VERSION < 0x040800 +#if !defined(NO_JSDEBUGGER) + new QmlJSDebugger::JSDebuggerAgent(d->view->engine()); +#endif +#if !defined(NO_QMLOBSERVER) + new QmlJSDebugger::QDeclarativeViewObserver(d->view, d->view); +#endif +#endif +} + +QmlApplicationViewer::QmlApplicationViewer(QDeclarativeView *view, QWidget *parent) + : QDeclarativeView(parent) + , d(new QmlApplicationViewerPrivate(view)) +{ + connect(view->engine(), SIGNAL(quit()), view, SLOT(close())); + view->setResizeMode(QDeclarativeView::SizeRootObjectToView); + // Qt versions prior to 4.8.0 don't have QML/JS debugging services built in +#if defined(QMLJSDEBUGGER) && QT_VERSION < 0x040800 +#if !defined(NO_JSDEBUGGER) + new QmlJSDebugger::JSDebuggerAgent(d->view->engine()); +#endif +#if !defined(NO_QMLOBSERVER) + new QmlJSDebugger::QDeclarativeViewObserver(d->view, d->view); +#endif +#endif +} + +QmlApplicationViewer::~QmlApplicationViewer() +{ + delete d; +} + +QmlApplicationViewer *QmlApplicationViewer::create() +{ +#ifdef HARMATTAN_BOOSTER + return new QmlApplicationViewer(MDeclarativeCache::qDeclarativeView(), 0); +#else + return new QmlApplicationViewer(); +#endif +} + +void QmlApplicationViewer::setMainQmlFile(const QString &file) +{ + d->mainQmlFile = d->adjustPath(file); + d->view->setSource(QUrl::fromLocalFile(d->mainQmlFile)); +} + +void QmlApplicationViewer::addImportPath(const QString &path) +{ + d->view->engine()->addImportPath(d->adjustPath(path)); +} + +void QmlApplicationViewer::setOrientation(ScreenOrientation orientation) +{ +#if defined(Q_OS_SYMBIAN) + // If the version of Qt on the device is < 4.7.2, that attribute won't work + if (orientation != ScreenOrientationAuto) { + const QStringList v = QString::fromAscii(qVersion()).split(QLatin1Char('.')); + if (v.count() == 3 && (v.at(0).toInt() << 16 | v.at(1).toInt() << 8 | v.at(2).toInt()) < 0x040702) { + qWarning("Screen orientation locking only supported with Qt 4.7.2 and above"); + return; + } + } +#endif // Q_OS_SYMBIAN + + Qt::WidgetAttribute attribute; + switch (orientation) { +#if QT_VERSION < 0x040702 + // Qt < 4.7.2 does not yet have the Qt::WA_*Orientation attributes + case ScreenOrientationLockPortrait: + attribute = static_cast(128); + break; + case ScreenOrientationLockLandscape: + attribute = static_cast(129); + break; + default: + case ScreenOrientationAuto: + attribute = static_cast(130); + break; +#else // QT_VERSION < 0x040702 + case ScreenOrientationLockPortrait: + attribute = Qt::WA_LockPortraitOrientation; + break; + case ScreenOrientationLockLandscape: + attribute = Qt::WA_LockLandscapeOrientation; + break; + default: + case ScreenOrientationAuto: + attribute = Qt::WA_AutoOrientation; + break; +#endif // QT_VERSION < 0x040702 + }; + setAttribute(attribute, true); +} + +void QmlApplicationViewer::showExpanded() +{ +#if defined(Q_OS_SYMBIAN) || defined(MEEGO_EDITION_HARMATTAN) || defined(Q_WS_SIMULATOR) + d->view->showFullScreen(); +#elif defined(Q_WS_MAEMO_5) + d->view->showMaximized(); +#else + d->view->show(); +#endif +} + +QApplication *createApplication(int &argc, char **argv) +{ +#ifdef HARMATTAN_BOOSTER + return MDeclarativeCache::qApplication(argc, argv); +#else + return new QApplication(argc, argv); +#endif +} diff --git a/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.h b/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.h new file mode 100644 index 0000000..f8008f5 --- /dev/null +++ b/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.h @@ -0,0 +1,47 @@ +// checksum 0x82ed version 0x60010 +/* + This file was generated by the Qt Quick Application wizard of Qt Creator. + QmlApplicationViewer is a convenience class containing mobile device specific + code such as screen orientation handling. Also QML paths and debugging are + handled here. + It is recommended not to modify this file, since newer versions of Qt Creator + may offer an updated version of it. +*/ + +#ifndef QMLAPPLICATIONVIEWER_H +#define QMLAPPLICATIONVIEWER_H + +#include + +class QmlApplicationViewer : public QDeclarativeView +{ + Q_OBJECT + +public: + enum ScreenOrientation { + ScreenOrientationLockPortrait, + ScreenOrientationLockLandscape, + ScreenOrientationAuto + }; + + explicit QmlApplicationViewer(QWidget *parent = 0); + virtual ~QmlApplicationViewer(); + + static QmlApplicationViewer *create(); + + void setMainQmlFile(const QString &file); + void addImportPath(const QString &path); + + // Note that this will only have an effect on Symbian and Fremantle. + void setOrientation(ScreenOrientation orientation); + + void showExpanded(); + +private: + explicit QmlApplicationViewer(QDeclarativeView *view, QWidget *parent); + class QmlApplicationViewerPrivate *d; +}; + +QApplication *createApplication(int &argc, char **argv); + +#endif // QMLAPPLICATIONVIEWER_H diff --git a/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.pri b/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.pri new file mode 100644 index 0000000..1b90206 --- /dev/null +++ b/test/qmlchart/qmlapplicationviewer/qmlapplicationviewer.pri @@ -0,0 +1,146 @@ +# checksum 0x368d version 0x60010 +# This file was generated by the Qt Quick Application wizard of Qt Creator. +# The code below adds the QmlApplicationViewer to the project and handles the +# activation of QML debugging. +# It is recommended not to modify this file, since newer versions of Qt Creator +# may offer an updated version of it. + +QT += declarative + +SOURCES += $$PWD/qmlapplicationviewer.cpp +HEADERS += $$PWD/qmlapplicationviewer.h +INCLUDEPATH += $$PWD + +# Include JS debugger library if QMLJSDEBUGGER_PATH is set +!isEmpty(QMLJSDEBUGGER_PATH) { + include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) +} else { + DEFINES -= QMLJSDEBUGGER +} + +contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) { + DEFINES += HARMATTAN_BOOSTER +} +# This file was generated by an application wizard of Qt Creator. +# The code below handles deployment to Symbian and Maemo, aswell as copying +# of the application data to shadow build directories on desktop. +# It is recommended not to modify this file, since newer versions of Qt Creator +# may offer an updated version of it. + +defineTest(qtcAddDeployment) { +for(deploymentfolder, DEPLOYMENTFOLDERS) { + item = item$${deploymentfolder} + itemsources = $${item}.sources + $$itemsources = $$eval($${deploymentfolder}.source) + itempath = $${item}.path + $$itempath= $$eval($${deploymentfolder}.target) + export($$itemsources) + export($$itempath) + DEPLOYMENT += $$item +} + +MAINPROFILEPWD = $$PWD + +symbian { + isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg + isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 +} else:win32 { + copyCommand = + for(deploymentfolder, DEPLOYMENTFOLDERS) { + source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) + source = $$replace(source, /, \\) + sourcePathSegments = $$split(source, \\) + target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) + target = $$replace(target, /, \\) + !isEqual(source,$$target) { + !isEmpty(copyCommand):copyCommand += && + isEqual(QMAKE_DIR_SEP, \\) { + copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" + } else { + source = $$replace(source, \\\\, /) + target = $$OUT_PWD/$$eval($${deploymentfolder}.target) + target = $$replace(target, \\\\, /) + copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" + } + } + } + !isEmpty(copyCommand) { + copyCommand = @echo Copying application data... && $$copyCommand + copydeploymentfolders.commands = $$copyCommand + first.depends = $(first) copydeploymentfolders + export(first.depends) + export(copydeploymentfolders.commands) + QMAKE_EXTRA_TARGETS += first copydeploymentfolders + } +} else:unix { + maemo5 { + desktopfile.files = $${TARGET}.desktop + desktopfile.path = /usr/share/applications/hildon + icon.files = $${TARGET}64.png + icon.path = /usr/share/icons/hicolor/64x64/apps + } else:!isEmpty(MEEGO_VERSION_MAJOR) { + desktopfile.files = $${TARGET}_harmattan.desktop + desktopfile.path = /usr/share/applications + icon.files = $${TARGET}80.png + icon.path = /usr/share/icons/hicolor/80x80/apps + } else { # Assumed to be a Desktop Unix + copyCommand = + for(deploymentfolder, DEPLOYMENTFOLDERS) { + source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) + source = $$replace(source, \\\\, /) + macx { + target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) + } else { + target = $$OUT_PWD/$$eval($${deploymentfolder}.target) + } + target = $$replace(target, \\\\, /) + sourcePathSegments = $$split(source, /) + targetFullPath = $$target/$$last(sourcePathSegments) + !isEqual(source,$$targetFullPath) { + !isEmpty(copyCommand):copyCommand += && + copyCommand += $(MKDIR) \"$$target\" + copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" + } + } + !isEmpty(copyCommand) { + copyCommand = @echo Copying application data... && $$copyCommand + copydeploymentfolders.commands = $$copyCommand + first.depends = $(first) copydeploymentfolders + export(first.depends) + export(copydeploymentfolders.commands) + QMAKE_EXTRA_TARGETS += first copydeploymentfolders + } + } + installPrefix = /opt/$${TARGET} + for(deploymentfolder, DEPLOYMENTFOLDERS) { + item = item$${deploymentfolder} + itemfiles = $${item}.files + $$itemfiles = $$eval($${deploymentfolder}.source) + itempath = $${item}.path + $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) + export($$itemfiles) + export($$itempath) + INSTALLS += $$item + } + + !isEmpty(desktopfile.path) { + export(icon.files) + export(icon.path) + export(desktopfile.files) + export(desktopfile.path) + INSTALLS += icon desktopfile + } + + target.path = $${installPrefix}/bin + export(target.path) + INSTALLS += target +} + +export (ICON) +export (INSTALLS) +export (DEPLOYMENT) +export (TARGET.EPOCHEAPSIZE) +export (TARGET.CAPABILITY) +export (LIBS) +export (QMAKE_EXTRA_TARGETS) +} diff --git a/test/qmlchart/qmlchart.desktop b/test/qmlchart/qmlchart.desktop new file mode 100644 index 0000000..99ebae7 --- /dev/null +++ b/test/qmlchart/qmlchart.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Name=qmlchart +Exec=/opt/qmlchart/bin/qmlchart +Icon=qmlchart64 +X-Window-Icon= +X-HildonDesk-ShowInToolbar=true +X-Osso-Type=application/x-executable diff --git a/test/qmlchart/qmlchart.pro b/test/qmlchart/qmlchart.pro new file mode 100644 index 0000000..3927027 --- /dev/null +++ b/test/qmlchart/qmlchart.pro @@ -0,0 +1,56 @@ +!include( ../../common.pri ) { + error( "Couldn't find the common.pri file!" ) +} +!include( ../../integrated.pri ) { + error( "Couldn't find the integrated.pri file !") +} + +integrated_build: { + # cannot use integrated build for now; we would need the qml files copied to + # charts/bin folder also to make this work. And even in that case I'm not sure if + # the chart qml plugin can be found or if it needs to be installed to the qt's plugin + # folder always. + warning("TODO: Charts qml test app does not work with integrated builds") +} + +# Add more folders to ship with the application, here +folder_01.source = qml/qmlchart +folder_01.target = qml +DEPLOYMENTFOLDERS = folder_01 + +# Additional import path used to resolve QML modules in Creator's code model +QML_IMPORT_PATH = + +symbian:TARGET.UID3 = 0xE421236E + +# Smart Installer package's UID +# This UID is from the protected range and therefore the package will +# fail to install if self-signed. By default qmake uses the unprotected +# range value if unprotected UID is defined for the application and +# 0x2002CCCF value if protected UID is given to the application +#symbian:DEPLOYMENT.installer_header = 0x2002CCCF + +# Allow network access on Symbian +symbian:TARGET.CAPABILITY += NetworkServices + +# If your application uses the Qt Mobility libraries, uncomment the following +# lines and add the respective components to the MOBILITY variable. +# CONFIG += mobility +# MOBILITY += + +# Speed up launching on MeeGo/Harmattan when using applauncherd daemon +# CONFIG += qdeclarative-boostable + +# Add dependency to Symbian components +# CONFIG += qt-components + +# The .cpp file which was generated for your project. Feel free to hack it. +SOURCES += main.cpp + +# Please do not modify the following two lines. Required for deployment. +include(qmlapplicationviewer/qmlapplicationviewer.pri) +qtcAddDeployment() + +#HEADERS += \ +# chart.h + diff --git a/test/qmlchart/qmlchart.svg b/test/qmlchart/qmlchart.svg new file mode 100644 index 0000000..566acfa --- /dev/null +++ b/test/qmlchart/qmlchart.svg @@ -0,0 +1,93 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/test/qmlchart/qmlchart64.png b/test/qmlchart/qmlchart64.png new file mode 100644 index 0000000000000000000000000000000000000000..707d5c4e85d82959740b243a8a36d5071c277299 GIT binary patch literal 3400 zc$@)94Y%@%P)ht(u000b3 zNkl+r+m%F_C;*wliAId+l;Bw~NnREVgX6DSfv+(~Ms$%J>UH~1TiKG?i==6q;ABhC^ z?Fa;PP1zvRpk{yshy{xNzW=_}wlshM$8bMz0ywE)|E?{*$bARG!R}74&+E~=fBGSCH_q~3rZLE`kFZF`Zg5p_(F9S`V+!f^EBN1AfbVO>l zV*?2wmM7*K$N;DTgsUiqL8d@0kV=|_n&`jpzizedO9)tWdFTh8K`^#$^77P!9khgW zY!Rx>mStcADTf#t1$7O$0t|o*0XKn3gatG^hba2{-neB1+ztE?*sLjd^k^HO+7rUI z#U<*@0G0o{w7eb^h!lqynFTclTrU#CporX1FqyNMH+0Ern&N9m&#V&xj_U(F2mB2J zt<46%_t{NEnvD|IFZF~~d&Uw1T_g&S##v*=ONjw)029C*A{l`GV{0SE$m`(;jw}{N znskEx<>q}Q<12YZEl*LE3Ih306gaq~kqj^oOalLlQhy0dt;u@8$p7^Lt&4>oL!oPx z#8s8=%aut5!dB!t3TKe~K&L~H1lMXjK+#OKRHI5GD|IzkUH?i3OO@}-LaMj9G8lz# z%l5CTmMR6d2)5Xi&TXYMH@9`QFE#2K3&XXz*HoZoHYmE}} z2gzCqV(C$)Qa4CsW6qOGtI%%!WV`fQi$l5ySZr*mjmtm*mMy$LnBc~UpU3Zbir>EL z5q7k1!|(B;ltK`4R+^dg2p6W_d^>jD_u(zaPCr^^8@hrk3G%j4n9z3e5I$h zHt*%PdcQ(f^FBoE0!itt&AS&D@SD9H-ToBEcllZB+s zk=+N-HEn5kb?LNr0_tj96^ef~kie^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