Summary: | [Patch] MarbleWidget does not honour setEnabled(false) | ||
---|---|---|---|
Product: | [Applications] marble | Reporter: | Michael <Michael.NoSpam> |
Component: | general | Assignee: | marble-bugs |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, nienhueser |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
marble-enabled-disabled.diff
marble-enabled-disabled.png |
Description
Michael
2010-01-06 09:26:46 UTC
I know the problem. But marble widget do not switch view to disable if a set widget with this status. I suspect that marble widget disable state is not implemented. In fact, all is already done in digiKAm to manage this condition : no GPS data => disable marble view. I fork this entry to marble team. Gilles Caulier Created attachment 39620 [details]
marble-enabled-disabled.diff
When calling setEnabled(false) on MarbleWidget, disable input (keyboard and mouse) and paint everything overlayed with some gray color to indicate that the widget is disabled.
Created attachment 39621 [details]
marble-enabled-disabled.png
Screenshot showing the effect of the patch, setEnabled(true) above, setEnabled(false) below.
Another thing is missing: MarbleWidget::setInputEnabled(false) which is used by the patch currently ignores FloatItems, for example you can still double click on the overview map (float item in the top left) and have Marble jump to the specified location. SVN commit 1073273 by nienhueser: When the MarbleWidget is disabled, disable keyboard and mouse input and draw contents grayscaled. CCBUG: 221490 M +35 -2 MarbleWidget.cpp M +6 -0 MarbleWidget.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1073273 Changed the patch to draw grayscale instead -- the composite version looked a bit too worn out. I'll backport this to branches/4.4 in time for RC2. SVN commit 1075344 by nienhueser: When the MarbleWidget is disabled, disable keyboard and mouse input and draw contents grayscaled. Backport of commit 1073273. BUG: 221490 M +35 -2 MarbleWidget.cpp M +6 -0 MarbleWidget.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1075344 |