mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
- 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:
parent
6793d6781c
commit
fdc90c8522
2 changed files with 5 additions and 4 deletions
|
@ -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 );
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue