* src/frontends/qt4/Dialogs.cpp:

- put view-source drawer to the right in Mac (bug 3564)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18537 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-05-28 07:17:47 +00:00
parent 2dca49b74a
commit ccdc21f11c

View File

@ -243,8 +243,14 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
QViewSource * qvs = new QViewSource(*dialog);
dialog->setController(qvs);
GuiView & gui_view = static_cast<GuiView &>(lyxview_);
#ifdef Q_WS_MACX
// Mac uses a drawer that should be on the right.
dialog->setView(new DockView<QViewSource, QViewSourceDialog>(
*dialog, qvs, &gui_view, _("LaTeX Source")));
#else
dialog->setView(new DockView<QViewSource, QViewSourceDialog>(
*dialog, qvs, &gui_view, _("LaTeX Source"), Qt::BottomDockWidgetArea));
#endif
dialog->bc().bp(new OkCancelPolicy);
} else if (name == "mathdelimiter") {
dialog->setController(new ControlMath(*dialog));