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
This commit is contained in:
Abdelrazak Younes 2006-06-04 21:15:33 +00:00
parent 52557ce331
commit 4f9ddcbcb4

View 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);