Haskell: Tr::tr()

Change-Id: Ia63322cb5644ab7e63805c0e123eebe5170dd1ad
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-02-10 17:12:59 +01:00
parent 54f104a567
commit e9365d399f
8 changed files with 37 additions and 14 deletions

View File

@@ -6,6 +6,7 @@
#include "haskellconstants.h"
#include "haskellhighlighter.h"
#include "haskellmanager.h"
#include "haskelltr.h"
#include <coreplugin/actionmanager/commandbutton.h>
#include <texteditor/textdocument.h>
@@ -21,7 +22,7 @@ static QWidget *createEditorWidget()
{
auto widget = new TextEditor::TextEditorWidget;
auto ghciButton = new Core::CommandButton(Constants::A_RUN_GHCI, widget);
ghciButton->setText(HaskellManager::tr("GHCi"));
ghciButton->setText(Tr::tr("GHCi"));
QObject::connect(ghciButton, &QToolButton::clicked, HaskellManager::instance(), [widget] {
HaskellManager::openGhci(widget->textDocument()->filePath());
});