From: Abdelrazak Younes Date: Sun, 4 Jun 2006 21:15:33 +0000 (+0000) Subject: remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net) X-Git-Tag: 1.6.10~13152 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4f9ddcbcb463f20f2c0666402dec36d7315e820b;p=lyx.git remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14001 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/QWorkArea.C b/src/frontends/qt4/QWorkArea.C index 35f5891c64..f3e376017f 100644 --- a/src/frontends/qt4/QWorkArea.C +++ b/src/frontends/qt4/QWorkArea.C @@ -16,6 +16,7 @@ #include "QWorkArea.h" #include "QLPainter.h" #include "QLyXKeySym.h" +#include "QtView.h" #include "lcolorcache.h" #include "qt_helpers.h" @@ -122,12 +123,12 @@ SyntheticMouseEvent::SyntheticMouseEvent() QWorkArea::QWorkArea(LyXView & owner, int w, int h) - : QAbstractScrollArea(qApp->mainWidget()), WorkArea(), view_(owner), painter_(this) + : QAbstractScrollArea(lyx::frontend::QtView::mainWidget()), WorkArea(), view_(owner), painter_(this) { setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - (static_cast(qApp->mainWidget()))->setCentralWidget(this); + lyx::frontend::QtView::mainWidget()->setCentralWidget(this); setAcceptDrops(true);