summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2013-04-04 18:47:35 (GMT)
committerKevin Smith <git@kismith.co.uk>2013-04-04 18:47:35 (GMT)
commit1924342540d855d07eadb564ad997df1345fb115 (patch)
tree1516a1267f8019168317542114430abc6f0a2897
parentdfa83363f4f8c8faa77be4c410d960a4cf39ec43 (diff)
downloadswift-1924342540d855d07eadb564ad997df1345fb115.zip
swift-1924342540d855d07eadb564ad997df1345fb115.tar.bz2
Use traditional tr() calls because the constant isn't present in Qt5
Change-Id: If1c394e4da9a6cefe1e2365b8882e9b3930c7a96
-rw-r--r--Swift/QtUI/QtTextEdit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtTextEdit.cpp b/Swift/QtUI/QtTextEdit.cpp
index d1a75dd..2c4677e 100644
--- a/Swift/QtUI/QtTextEdit.cpp
+++ b/Swift/QtUI/QtTextEdit.cpp
@@ -141,7 +141,7 @@ void QtTextEdit::contextMenuEvent(QContextMenuEvent* event) {
QTextCursor cursor = cursorForPosition(event->pos());
#ifdef HAVE_SPELLCHECKER
QAction* insertPoint = menu->actions().first();
- QAction* settingsAction = new QAction(QApplication::translate("QtTextEdit", "Spell Checker Options", 0, QApplication::UnicodeUTF8), menu);
+ QAction* settingsAction = new QAction(tr("Spell Checker Options"), menu);
menu->insertAction(insertPoint, settingsAction);
menu->insertAction(insertPoint, menu->addSeparator());
addSuggestions(menu, event);
@@ -176,7 +176,7 @@ void QtTextEdit::addSuggestions(QMenu* menu, QContextMenuEvent* event)
std::vector<std::string> wordList;
checker_->getSuggestions(Q2PSTRING(cursor.selectedText()), wordList);
if (wordList.size() == 0) {
- QAction* noSuggestions = new QAction(QApplication::translate("QtTextEdit", "No Suggestions", 0, QApplication::UnicodeUTF8), menu);
+ QAction* noSuggestions = new QAction(tr("No Suggestions"), menu);
noSuggestions->setDisabled(true);
menu->insertAction(insertPoint, noSuggestions);
}