mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added real support for the marble widget
The marble widget now shows the dive locations and also will center on the dive that the user clicked in the dive list. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
4098922b55
commit
9038b3aa6e
3 changed files with 54 additions and 5 deletions
|
@ -3,11 +3,19 @@
|
|||
|
||||
#include <marble/MarbleWidget.h>
|
||||
|
||||
namespace Marble{
|
||||
class GeoDataDocument;
|
||||
}
|
||||
class GlobeGPS : public Marble::MarbleWidget{
|
||||
Q_OBJECT
|
||||
public:
|
||||
using Marble::MarbleWidget::centerOn;
|
||||
GlobeGPS(QWidget *parent);
|
||||
|
||||
void reload();
|
||||
void centerOn(struct dive* dive);
|
||||
|
||||
private:
|
||||
Marble::GeoDataDocument *loadedDives;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue