Port of revision 470895

Don't create signal-slot connections of a documentWidget in
createDocumentWidget(), because than they need to be
duplicated in plugins that override this function. And this is prone
to errors.

svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=470898
remotes/origin/kdvi
Wilfried Huss 21 years ago
parent db83ace6cc
commit e2a6d28eee
  1. 4
      kdvi_multipage.cpp

@ -440,10 +440,6 @@ DocumentWidget* KDVIMultiPage::createDocumentWidget()
DVIWidget* documentWidget = new DVIWidget(scrollView()->viewport(), scrollView(), pageCache,
"singlePageWidget" );
// Lets not forget the connections we make in the KMultiPage
connect(documentWidget, SIGNAL(clearSelection()), this, SLOT(clearSelection()));
connect(this, SIGNAL(switchTool()), documentWidget, SLOT(slotSwitchTool()));
// Handle source links
connect(documentWidget, SIGNAL(SRCLink(const QString&, QMouseEvent*, DocumentWidget*)), getRenderer(),
SLOT(handleSRCLink(const QString& ,QMouseEvent*, DocumentWidget*)));

Loading…
Cancel
Save