]> git.lyx.org Git - lyx.git/commitdiff
remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
authorAbdelrazak Younes <younes@lyx.org>
Sun, 4 Jun 2006 21:15:33 +0000 (21:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 4 Jun 2006 21:15:33 +0000 (21:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14001 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QWorkArea.C

index 35f5891c64e850331bc464fc68c463e8c95a1095..f3e376017ffb41843d3b5dae14fedecfea717099 100644 (file)
@@ -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<QMainWindow*>(qApp->mainWidget()))->setCentralWidget(this);
+       lyx::frontend::QtView::mainWidget()->setCentralWidget(this);
 
        setAcceptDrops(true);