summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-16 02:29:11 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-16 02:29:11 (GMT)
commit8f16f6638bf07adb6c782cb173d323402cfa1c81 (patch)
tree54d4f44f5e44310d878fe4c4614b95433617b0fd /tools/qmlviewer
parent7f55f59687d2f21c51b1f124a4eeff62c6b374dd (diff)
parent24b0ad11174118e327a778bbdf16fa64a5eb640c (diff)
downloadQt-8f16f6638bf07adb6c782cb173d323402cfa1c81.zip
Qt-8f16f6638bf07adb6c782cb173d323402cfa1c81.tar.gz
Qt-8f16f6638bf07adb6c782cb173d323402cfa1c81.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui-gv
Conflicts: src/declarative/fx/fx.pri
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp11
-rw-r--r--tools/qmlviewer/qmlviewer.h1
2 files changed, 1 insertions, 11 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index e9af477..c9d70e8 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -191,7 +191,7 @@ void QmlViewer::createMenu(QMenuBar *menu, QMenu *flatmenu)
QAction *snapshotAction = new QAction(tr("&Take Snapsot\tF3"), parent);
connect(snapshotAction, SIGNAL(triggered()), this, SLOT(takeSnapShot()));
recordMenu->addAction(snapshotAction);
-
+
recordAction = new QAction(tr("Start Recording &Video\tF2"), parent);
connect(recordAction, SIGNAL(triggered()), this, SLOT(toggleRecordingWithSelection()));
recordMenu->addAction(recordAction);
@@ -499,15 +499,6 @@ void QmlViewer::setRecordFile(const QString& f)
record_file = f;
}
-bool QmlViewer::event(QEvent *event)
-{
- if (event->type() == QEvent::PaletteChange) {
- setupPalettes();
- return true;
- }
- return QWidget::event(event);
-}
-
void QmlViewer::setRecordPeriod(int ms)
{
record_period = ms;
diff --git a/tools/qmlviewer/qmlviewer.h b/tools/qmlviewer/qmlviewer.h
index 365d6b2..4714bdc 100644
--- a/tools/qmlviewer/qmlviewer.h
+++ b/tools/qmlviewer/qmlviewer.h
@@ -61,7 +61,6 @@ public slots:
protected:
virtual void keyPressEvent(QKeyEvent *);
virtual void timerEvent(QTimerEvent *);
- virtual bool event(QEvent *event);
void createMenu(QMenuBar *menu, QMenu *flatmenu);