Bug 253996 - Marble's navigation zoom out button disabled, using MarbleWidget.
Summary: Marble's navigation zoom out button disabled, using MarbleWidget.
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0 (KDE 4.6)
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 19:59 UTC by Miguel Chavez Gamboa
Modified: 2011-08-19 12:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.