forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user