mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +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 "QWorkArea.h"
|
||||||
#include "QLPainter.h"
|
#include "QLPainter.h"
|
||||||
#include "QLyXKeySym.h"
|
#include "QLyXKeySym.h"
|
||||||
|
#include "QtView.h"
|
||||||
|
|
||||||
#include "lcolorcache.h"
|
#include "lcolorcache.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
@ -122,12 +123,12 @@ SyntheticMouseEvent::SyntheticMouseEvent()
|
|||||||
|
|
||||||
|
|
||||||
QWorkArea::QWorkArea(LyXView & owner, int w, int h)
|
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);
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
|
|
||||||
(static_cast<QMainWindow*>(qApp->mainWidget()))->setCentralWidget(this);
|
lyx::frontend::QtView::mainWidget()->setCentralWidget(this);
|
||||||
|
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user