Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 99ec6dcd authored by Albert Astals Cid's avatar Albert Astals Cid

We don't need to pass the parent down now

Acked by Luigi
parent 5826ba35
......@@ -123,8 +123,6 @@ public:
virtual PageNumber totalPages() const;
void setParentWidget(QWidget *parent) {parentWidget = parent;}
void setEventLoop(QEventLoop *el);
// These should not be public... only for the moment
......@@ -323,13 +321,6 @@ private:
QMap<QString, Anchor> anchorList;
/** pointer to the parent widget
This pointer can be used by implementations e.g. to display error
messages. This pointer can well be zero.
*/
QWidget* parentWidget;
QEventLoop* m_eventLoop;
QPainter* foreGroundPainter;
......
......@@ -120,8 +120,6 @@ bool DviGenerator::loadDocument( const QString & fileName, QVector< Okular::Page
return false;
}
m_dviRenderer->setParentWidget( document()->widget() );
kDebug(DviDebug) << "# of pages:" << m_dviRenderer->dviFile->total_pages;
m_resolution = Okular::Utils::dpiY();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment