From 1924342540d855d07eadb564ad997df1345fb115 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Thu, 4 Apr 2013 19:47:35 +0100
Subject: Use traditional tr() calls because the constant isn't present in Qt5

Change-Id: If1c394e4da9a6cefe1e2365b8882e9b3930c7a96

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);
 	}
-- 
cgit v0.10.2-6-g49f6