Mable disappears

Willem Ferguson willemferguson at zoology.up.ac.za
Sun Nov 3 03:58:00 UTC 2013


Thank you, Linus.
On my computer the size of the info panel is affected (I cannot 
understand how!) by only changing ListGlobeSplitter. I therefore changed 
the values for the infoProfileSplitter as well as the listGlobeSplitter 
as follows:

void MainWindow::on_actionViewAll_triggered()
{
     // big number squash the info profile to it's minimum.
     ui.infoProfileSplitter->setSizes(QList<int>() << 200 << 500);

     // big number squash the globe view.
     ui.listGlobeSplitter->setSizes(QList<int>() << 500 << 200 );

     // half and half?
     ui.mainSplitter->setSizes( QList<int>() << 1 << 1);
     redrawProfile();
}

The above changes make the environment more user friendly but not 
consistent. This is because the positions of the splitters are saved 
between different executions of subsurface, it must be in a file. 
However, if one hits View All, these same positions are not used. It 
appears that the problem is caused by the fact that the QList values 
used at startup (or those saved when the splitters are moved around ) 
are not used when one hits View All.

I checked the MainWindow.ui to find saved settings, but it is not there. 
This is for someone who understands the code better that I do.

Kind regards,
willemf


On 02/11/2013 21:44, Linus Torvalds wrote:
> On Sat, Nov 2, 2013 at 12:30 PM, Willem Ferguson
> <willemferguson at zoology.up.ac.za> wrote:
>> I am running into an unusual problem. I was testing all the different views
>> in the View submenu of the main menu bar. Started at the top, working my way
>> down the submenu (View All, List, profile, Info, etc). When I returned to
>> View All, the Marble map had disappeared and I cannot locate it any more.
> It's still there, it's just hiding. You can (literally) drag it out of
> hiding by going to the very right side of the divelist, and drag the
> divider that is there to the left, uncovering the map view.
>
> But yeah, "View All" shouldn't hide it. You can try something like this
>
>      diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
>      index 2be60edb7dda..c23fdbddad3d 100644
>      --- a/qt-ui/mainwindow.cpp
>      +++ b/qt-ui/mainwindow.cpp
>      @@ -379,8 +379,7 @@ void MainWindow::on_actionViewAll_triggered()
>              // big number squash the info profile to it's minimum.
>              ui.infoProfileSplitter->setSizes(QList<int>() << 1 << 20000);
>
>      -       // big number squash the globe view.
>      -       ui.listGlobeSplitter->setSizes(QList<int>() << 2000 << 1 );
>      +       ui.listGlobeSplitter->setSizes(QList<int>() << 500 << 200 );
>
>              // half and half?
>              ui.mainSplitter->setSizes( QList<int>() << 1 << 1);
>
> and play with the sizes to see what works best.
>
>                Linus
>



More information about the subsurface mailing list