Bug 253996

Summary: Marble's navigation zoom out button disabled, using MarbleWidget.
Product: [Applications] marble Reporter: Miguel Chavez Gamboa <miguel.chavez.gamboa>
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: normal CC: shentey
Priority: NOR    
Version: unspecified   
Target Milestone: 1.0 (KDE 4.6)   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Miguel Chavez Gamboa 2010-10-12 19:59:47 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Im using marble SVN revision r1184939. And im using MarbleWidget in my application.

If I show the floatItem "navigation" or "routing" with --smallscreen or the navigation tab of the MarbleControlBox, the Zoom out (or sometimes the zoom in) button gets disabled, but I still can zoom in/out with the mouse wheel.

I noted that if I place a slider and make the connection:

connect(ui->zoomSlider, SIGNAL(valueChanged(int)), theMap, SLOT(zoomView(int)) );

The disabled zoom button gets enabled.

Reproducible: Always

Steps to Reproduce:
Using the MarbleWidget in an application like the example on the techbase wiki.
Just showing the navigation FloatItem or navigation tab on the MarbleControlBox.

Actual Results:  
Adding a slider to control the zoom (connecting the signal-slot), fixes this.

Expected Results:  
The zoom must not be disabled. I can zoom in/out with the mouse wheel.
In devices without mouse, it will not allow zoom in/out.
Comment 1 Miguel Chavez Gamboa 2010-10-13 06:24:37 UTC
Update:
On newer tests, i noted that the slider connection is not really the thing that fixes this.

Now i observed that doing a MarbleWidget->zomView() or a MarbleWidget->setHome() and MarbleWidget->goHome() are the ones that enable the zoom out button.