mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* 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
This commit is contained in:
parent
f9744033b3
commit
9ae75dddf6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user