diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-24 04:22:15 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-24 04:22:15 (GMT) |
commit | 435f6f842c116de641917d0b352f1c21cec666ee (patch) | |
tree | d05c3c7a6e706be44b30e5983a9661aa065012bb | |
parent | b8fba323c817a00df3c3639eb172104cf68d259d (diff) | |
download | Qt-435f6f842c116de641917d0b352f1c21cec666ee.zip Qt-435f6f842c116de641917d0b352f1c21cec666ee.tar.gz Qt-435f6f842c116de641917d0b352f1c21cec666ee.tar.bz2 |
Compile
-rw-r--r-- | src/declarative/fx/qfxwebview.cpp | 8 | ||||
-rw-r--r-- | src/declarative/fx/qfxwebview.h | 3 | ||||
-rw-r--r-- | tools/qmlviewer/main.cpp | 4 | ||||
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 3 | ||||
-rw-r--r-- | tools/qmlviewer/qmlviewer.h | 4 |
5 files changed, 6 insertions, 16 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp index f7979e5..ec7c548 100644 --- a/src/declarative/fx/qfxwebview.cpp +++ b/src/declarative/fx/qfxwebview.cpp @@ -461,7 +461,6 @@ void QFxWebView::paintPage(const QRect& r) update(); } -<<<<<<< HEAD:src/declarative/fx/qfxwebview.cpp /*! \qmlproperty int WebView::cacheSize @@ -507,13 +506,6 @@ void QFxWebView::setCacheSize(int pixels) } } d->max_imagecache_size = pixels; -======= -void QFxWebView::dump(int depth) -{ - QByteArray ba(depth * 4, ' '); - qWarning() << ba.constData() << "url:" << url(); - QFxPaintedItem::dump(depth); ->>>>>>> 124f5714e8e6ec1945d536e622b51304f2b32dd7:src/declarative/fx/qfxwebview.cpp } void QFxWebView::drawContents(QPainter *p, const QRect &r) diff --git a/src/declarative/fx/qfxwebview.h b/src/declarative/fx/qfxwebview.h index 897b6cc..d4b70d3 100644 --- a/src/declarative/fx/qfxwebview.h +++ b/src/declarative/fx/qfxwebview.h @@ -159,6 +159,9 @@ public: QString status() const; + int cacheSize() const; + void setCacheSize(int pixels); + Q_SIGNALS: void idealWidthChanged(); void idealHeightChanged(); diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp index 448437c..db0a28f 100644 --- a/tools/qmlviewer/main.cpp +++ b/tools/qmlviewer/main.cpp @@ -15,7 +15,6 @@ #include "qmlviewer.h" #include <QWidget> #include <QDir> -#include "qfxtestengine.h" #include <QApplication> #include <QTranslator> #include <QDebug> @@ -76,7 +75,6 @@ int main(int argc, char ** argv) QString skin; bool devkeys = false; bool cache = false; - QString testDir; QString translationFile; for (int i = 1; i < argc; ++i) { @@ -126,7 +124,7 @@ int main(int argc, char ** argv) app.installTranslator(&qmlTranslator); } - QmlViewer viewer(testDir, 0, frameless ? Qt::FramelessWindowHint : Qt::Widget); + QmlViewer viewer(0, frameless ? Qt::FramelessWindowHint : Qt::Widget); foreach (QString lib, libraries) viewer.addLibraryPath(lib); viewer.setCacheEnabled(cache); diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index c8b4250..19866cc 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -19,7 +19,6 @@ #include <QtDeclarative/qmlengine.h> #include "qml.h" #include "qperformancelog.h" -#include "qfxtestengine.h" #include "deviceskin.h" #include <QNetworkDiskCache> @@ -125,7 +124,7 @@ void PreviewDeviceSkin::slotPopupMenu() } -QmlViewer::QmlViewer(const QString &testDir, QWidget *parent, Qt::WindowFlags flags) +QmlViewer::QmlViewer(QWidget *parent, Qt::WindowFlags flags) : QWidget(parent, flags), frame_stream(0), scaleSkin(true), mb(0) { devicemode = false; diff --git a/tools/qmlviewer/qmlviewer.h b/tools/qmlviewer/qmlviewer.h index d97760f..22f07a0 100644 --- a/tools/qmlviewer/qmlviewer.h +++ b/tools/qmlviewer/qmlviewer.h @@ -17,7 +17,6 @@ #include <QMenuBar> #include <QBasicTimer> #include <QTime> -#include <qfxtestengine.h> #include <QList> @@ -30,7 +29,7 @@ class QmlViewer : public QWidget { Q_OBJECT public: - QmlViewer(const QString &testDir = QString(), QWidget *parent=0, Qt::WindowFlags flags=0); + QmlViewer(QWidget *parent=0, Qt::WindowFlags flags=0); void setRecordDither(const QString& s) { record_dither = s; } void setRecordPeriod(int ms); @@ -74,7 +73,6 @@ private: PreviewDeviceSkin *skin; QSize skinscreensize; QFxView *canvas; - void init(QFxTestEngine::TestMode, const QString &, const QString& fileName); QBasicTimer recordTimer; QList<QImage*> frames; QProcess* frame_stream; |