summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer/qmlviewer.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-21 05:32:35 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-21 05:32:35 (GMT)
commita3f784dd8c49a4edf1a22d68d435e29ceaf71c2d (patch)
treec414fa7f4f3269f04cf1a7f4efdfcf75328a8b01 /tools/qmlviewer/qmlviewer.h
parenteb29ed226a426126aff5f4deea2f864fb6466c65 (diff)
downloadQt-a3f784dd8c49a4edf1a22d68d435e29ceaf71c2d.zip
Qt-a3f784dd8c49a4edf1a22d68d435e29ceaf71c2d.tar.gz
Qt-a3f784dd8c49a4edf1a22d68d435e29ceaf71c2d.tar.bz2
Use QWidget as the TLW.
It is basically impossible to make QMainWindow size the contents to the exact size wanted. Correct sizing is particularly important for visual test recording.
Diffstat (limited to 'tools/qmlviewer/qmlviewer.h')
-rw-r--r--tools/qmlviewer/qmlviewer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/qmlviewer/qmlviewer.h b/tools/qmlviewer/qmlviewer.h
index 967af49..04d94cc 100644
--- a/tools/qmlviewer/qmlviewer.h
+++ b/tools/qmlviewer/qmlviewer.h
@@ -14,7 +14,7 @@
#ifndef QMLVIEWER_H
#define QMLVIEWER_H
-#include <QMainWindow>
+#include <QMenuBar>
#include <QBasicTimer>
#include <QTime>
#include <qfxtestengine.h>
@@ -26,7 +26,7 @@ class PreviewDeviceSkin;
class QFxTestEngine;
class QProcess;
-class QmlViewer : public QMainWindow
+class QmlViewer : public QWidget
{
Q_OBJECT
public:
@@ -45,6 +45,7 @@ public:
void addLibraryPath(const QString& lib);
QSize sizeHint() const;
+ QMenuBar *menuBar() const;
public slots:
void sceneResized(QSize size);
@@ -87,6 +88,7 @@ private:
QAction *recordAction;
QString currentSkin;
bool scaleSkin;
+ mutable QMenuBar *mb;
QFxTestEngine *testEngine;
};