summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-02-11 14:53:02 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-11 16:34:02 -0800
commitd769c6016fb9fd484cfee90aa58eaac67f0d536a (patch)
tree07ff7f209b9bd77d2bd6caab8f56f958d57f45cb /qt-ui/simplewidgets.cpp
parent68691c9d6d05ba28c8e0e8c837dcd32bb2eec42c (diff)
downloadsubsurface-d769c6016fb9fd484cfee90aa58eaac67f0d536a.tar.gz
Copy the name and the coords when entering the EditDiveSite state
Name and coords of the current dive are copied to the edit dive site screen. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 63ec4b4fa..c7dd47c6d 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -665,6 +665,16 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo
ui.diveSiteMessage->addAction(action);
}
+void LocationInformationWidget::setLocationName(const QString& name)
+{
+ ui.diveSiteName->setText(name);
+}
+
+void LocationInformationWidget::setLocationCoords(const QString& coords)
+{
+ ui.diveSiteCoordinates->setText(coords);
+}
+
void LocationInformationWidget::acceptChanges()
{
emit informationManagementEnded();