From fdc90c8522c56d68a2d2407d96b92f2c415cd3f8 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sat, 18 Dec 1999 23:03:04 +0000 Subject: [PATCH] - fixes for the BrowserViews to obey the parent/name values in the factories and pass them to the constructors of the view implementations svn path=/trunk/kdegraphics/kdvi/; revision=36875 --- kdvi_view.cpp | 7 ++++--- kdvi_view.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kdvi_view.cpp b/kdvi_view.cpp index 2d216772b..6135dcc15 100644 --- a/kdvi_view.cpp +++ b/kdvi_view.cpp @@ -40,10 +40,10 @@ KDVIFactory::~KDVIFactory() s_instance = 0; } -QObject* KDVIFactory::create(QObject* , const char* , const char*, +QObject* KDVIFactory::create(QObject *parent , const char *name , const char*, const QStringList & ) { - QObject *obj = new KDVIKonqView; + QObject *obj = new KDVIKonqView( (QWidget *)parent, name ); emit objectCreated( obj ); return obj; } @@ -55,7 +55,8 @@ KInstance *KDVIFactory::instance() return s_instance; } -KDVIKonqView::KDVIKonqView() +KDVIKonqView::KDVIKonqView( QWidget *parent, const char *name ) + : BrowserView( parent, name ) { urlStr = ""; w = new KDVIMiniWidget(NULL, this ); diff --git a/kdvi_view.h b/kdvi_view.h index c4e495478..6884cecc9 100644 --- a/kdvi_view.h +++ b/kdvi_view.h @@ -38,7 +38,7 @@ class KDVIKonqView: public BrowserView { Q_OBJECT public: - KDVIKonqView(); + KDVIKonqView( QWidget *parent, const char *name ); virtual ~KDVIKonqView(); virtual void openURL(const QString &url, bool reload = false,