mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
52557ce331
commit
4f9ddcbcb4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user