From 9ae75dddf660df9563f055a5992f8060943a42a7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 21 Feb 2008 12:48:05 +0000 Subject: [PATCH] * LFUN_SPLIT_VIEW: add support for vertical split view. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23089 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 653fd779bd..361c1e1a54 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1813,6 +1813,9 @@ bool GuiView::dispatch(FuncRequest const & cmd) case LFUN_SPLIT_VIEW: if (Buffer * buf = buffer()) { + string const orientation = cmd.getArg(0); + d.splitter_->setOrientation(orientation == "vertical" + ? Qt::Vertical : Qt::Horizontal); TabWorkArea * twa = addTabWorkArea(); GuiWorkArea * wa = twa->addWorkArea(*buf, *this); setCurrentWorkArea(wa); -- 2.39.2