From ccdc21f11cc5540d6930e665c1bf3f854fa3b3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 28 May 2007 07:17:47 +0000 Subject: [PATCH] * 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 --- src/frontends/qt4/Dialogs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontends/qt4/Dialogs.cpp b/src/frontends/qt4/Dialogs.cpp index ec78bde553..dc33cac792 100644 --- a/src/frontends/qt4/Dialogs.cpp +++ b/src/frontends/qt4/Dialogs.cpp @@ -243,8 +243,14 @@ Dialogs::DialogPtr Dialogs::build(string const & name) QViewSource * qvs = new QViewSource(*dialog); dialog->setController(qvs); GuiView & gui_view = static_cast(lyxview_); +#ifdef Q_WS_MACX + // Mac uses a drawer that should be on the right. + dialog->setView(new DockView( + *dialog, qvs, &gui_view, _("LaTeX Source"))); +#else dialog->setView(new DockView( *dialog, qvs, &gui_view, _("LaTeX Source"), Qt::BottomDockWidgetArea)); +#endif dialog->bc().bp(new OkCancelPolicy); } else if (name == "mathdelimiter") { dialog->setController(new ControlMath(*dialog));