]> git.lyx.org Git - features.git/commitdiff
* LFUN_SPLIT_VIEW: add support for vertical split view.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 21 Feb 2008 12:48:05 +0000 (12:48 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 21 Feb 2008 12:48:05 +0000 (12:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23089 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 653fd779bdb50b1566028a10b03e7464aafc8953..361c1e1a5435f28e4f2da15ad690630df3200a46 100644 (file)
@@ -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);