Ps2. The patch should be something like this:

--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -5189,6 +5189,10 @@ void GuiView::dispatch(FuncRequest const & cmd, 
DispatchResult & dr)
                ? Qt::Vertical : Qt::Horizontal);
            TabWorkArea * twa = addTabWorkArea();
            GuiWorkArea * wa = twa->addWorkArea(*doc_buffer, *this);
+           QList<int> sizelist;
+           for (int i=0; i < d.splitter_->count(); ++i)
+               sizelist.append(1);
+           d.splitter_->setSizes(sizelist);
 
            wa->bufferView().copySettingsFrom(*bv);
            dr.screenUpdate(Update::ForceAll);

> 2025/09/12 10:31、Koji Yokota <yok...@lyx.org>のメール:
> 
> Ps. The patch needs to be modified to accept more than two splits.
> 
> Koji
> 
>> 2025/09/12 10:22、Koji Yokota <yok...@lyx.org>のメール:
>> 
>> Hi all,
>> 
>> I tested with the split view in beta2 and found it gets an unbalanced split 
>> as initial state. In my personal opinion, it should have equal widths or 
>> heights to get a feeling of final product quality. Can I modify this by 
>> inserting a line as follows?
>> 
>> -------------------------------------------------------------------------------------
>> --- a/src/frontends/qt/GuiView.cpp
>> +++ b/src/frontends/qt/GuiView.cpp
>> @@ -5189,6 +5189,7 @@ void GuiView::dispatch(FuncRequest const & cmd, 
>> DispatchResult & dr)
>>               ? Qt::Vertical : Qt::Horizontal);
>>           TabWorkArea * twa = addTabWorkArea();
>>           GuiWorkArea * wa = twa->addWorkArea(*doc_buffer, *this);
>> +           d.splitter_->setSizes({1,1});
>> 
>>           wa->bufferView().copySettingsFrom(*bv);
>>           dr.screenUpdate(Update::ForceAll);
>> -------------------------------------------------------------------------------------
>> 
>> Koji
> 

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to