diff options
author | Boris Moiseev <cyberbobs@gmail.com> | 2010-10-06 13:51:39 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-10-06 13:51:39 (GMT) |
commit | 9e2ad8173868fad7b31c1d249a5a816b40a65cfe (patch) | |
tree | 70d264a232d466aa3d3469b8a1ded66cb59cb24f /tools/qtconfig/previewwidget.h | |
parent | 5aeda02c1b34ee0534390872f2ae400baab7baed (diff) | |
download | Qt-9e2ad8173868fad7b31c1d249a5a816b40a65cfe.zip Qt-9e2ad8173868fad7b31c1d249a5a816b40a65cfe.tar.gz Qt-9e2ad8173868fad7b31c1d249a5a816b40a65cfe.tar.bz2 |
Fixed some problems in qtconfig's PreviewWidget
One problem was introduced by the convertion of widget from Qt3:
there is no such field as "text" in QTextEdit.
Also, widget now is not direct ancestor of UI file.
Merge-request: 2286
Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'tools/qtconfig/previewwidget.h')
-rw-r--r-- | tools/qtconfig/previewwidget.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/qtconfig/previewwidget.h b/tools/qtconfig/previewwidget.h index 1452932..ee3513d 100644 --- a/tools/qtconfig/previewwidget.h +++ b/tools/qtconfig/previewwidget.h @@ -42,19 +42,26 @@ #ifndef PREVIEWWIDGET_H #define PREVIEWWIDGET_H -#include "ui_previewwidget.h" +#include <QtGui/QWidget> + +namespace Ui { + class PreviewWidget; +} QT_BEGIN_NAMESPACE -class PreviewWidget : public QWidget, public Ui::PreviewWidget +class PreviewWidget : public QWidget { Q_OBJECT public: PreviewWidget(QWidget *parent = 0); + ~PreviewWidget(); - void closeEvent(QCloseEvent *); bool eventFilter(QObject *, QEvent *); +private: + void closeEvent(QCloseEvent *); + Ui::PreviewWidget* ui; }; QT_END_NAMESPACE |