summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2013-11-30 15:45:40 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-30 07:53:26 -0800
commit527ae08e7631dfc7527db06ed63a64172f625c17 (patch)
treeeffd8cd61321e4b4c9bd1b9449f0d7e1b31370de /qt-ui/profilegraphics.cpp
parent66a2f404c4a5cf814a3fe7a573373a3efe7e10b2 (diff)
downloadsubsurface-527ae08e7631dfc7527db06ed63a64172f625c17.tar.gz
More strings to be translated
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index d75518206..7645cba88 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -130,7 +130,7 @@ void ProfileGraphicsView::contextMenuEvent(QContextMenuEvent* event)
if(selected_dive == -1)
return;
QMenu m;
- QMenu *gasChange = m.addMenu("Add Gas Change");
+ QMenu *gasChange = m.addMenu(tr("Add Gas Change"));
GasSelectionModel *model = GasSelectionModel::instance();
model->repopulate();
int rowCount = model->rowCount();
@@ -141,7 +141,7 @@ void ProfileGraphicsView::contextMenuEvent(QContextMenuEvent* event)
action->setData(event->globalPos());
gasChange->addAction(action);
}
- QAction *action = m.addAction("Add Bookmark", this, SLOT(addBookmark()));
+ QAction *action = m.addAction(tr("Add Bookmark"), this, SLOT(addBookmark()));
action->setData(event->globalPos());
QList<QGraphicsItem*> itemsAtPos = scene()->items(mapToScene(mapFromGlobal(event->globalPos())));
Q_FOREACH(QGraphicsItem *i, itemsAtPos){
@@ -149,12 +149,12 @@ void ProfileGraphicsView::contextMenuEvent(QContextMenuEvent* event)
if(!item)
continue;
QAction *action = new QAction(&m);
- action->setText("Remove Event");
+ action->setText(tr("Remove Event"));
action->setData(QVariant::fromValue<void*>(item)); // so we know what to remove.
connect(action, SIGNAL(triggered(bool)), this, SLOT(removeEvent()));
m.addAction(action);
action = new QAction(&m);
- action->setText("Hide similar events");
+ action->setText(tr("Hide similar events"));
action->setData(QVariant::fromValue<void*>(item));
connect(action, SIGNAL(triggered(bool)), this, SLOT(hideEvents()));
m.addAction(action);