- 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
This commit is contained in:
Simon Hausmann 1999-12-18 23:03:04 +00:00
parent 6793d6781c
commit fdc90c8522
2 changed files with 5 additions and 4 deletions

View file

@ -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 );

View file

@ -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,