summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-06-16 16:17:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-17 06:36:20 +0900
commitc734a77cf53192c75be2c5f1dd5063350e144da2 (patch)
tree6c6c721941d6c9625c71346f30ae058347164e21 /profile-widget
parentb9318a9ab1a04e19eb2c5877449e12be91f5bdeb (diff)
downloadsubsurface-c734a77cf53192c75be2c5f1dd5063350e144da2.tar.gz
Code cleanup: Correct typo "Swith" to "Switch"
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp8
-rw-r--r--profile-widget/profilewidget2.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index da9215662..e7b7c1460 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1437,21 +1437,21 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
if (divemode != OC) {
QAction *action = new QAction(&m);
action->setText(divemode_text_ui[OC]);
- connect(action, SIGNAL(triggered(bool)), this, SLOT(addDivemodeSwith()));
+ connect(action, SIGNAL(triggered(bool)), this, SLOT(addDivemodeSwitch()));
action->setData(event->globalPos());
changeMode->addAction(action);
}
if (divemode != CCR) {
QAction *action = new QAction(&m);
action->setText(divemode_text_ui[CCR]);
- connect(action, SIGNAL(triggered(bool)), this, SLOT(addDivemodeSwith()));
+ connect(action, SIGNAL(triggered(bool)), this, SLOT(addDivemodeSwitch()));
action->setData(event->globalPos());
changeMode->addAction(action);
}
if (divemode != PSCR) {
QAction *action = new QAction(&m);
action->setText(divemode_text_ui[PSCR]);
- connect(action, SIGNAL(triggered(bool)), this, SLOT(addDivemodeSwith()));
+ connect(action, SIGNAL(triggered(bool)), this, SLOT(addDivemodeSwitch()));
action->setData(event->globalPos());
changeMode->addAction(action);
}
@@ -1616,7 +1616,7 @@ void ProfileWidget2::addBookmark()
replot();
}
-void ProfileWidget2::addDivemodeSwith()
+void ProfileWidget2::addDivemodeSwitch()
{
int i;
QAction *action = qobject_cast<QAction *>(sender());
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index 91774c9a9..1d85a125c 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -116,7 +116,7 @@ slots: // Necessary to call from QAction's signals.
void changeGas();
void addSetpointChange();
void addBookmark();
- void addDivemodeSwith();
+ void addDivemodeSwitch();
void hideEvents();
void unhideEvents();
void removeEvent();