forked from qt-creator/qt-creator
QmlPreview: Tr::tr()
Change-Id: Ie80134c114da277ab16e4305c57ae35e37adafb2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -54366,7 +54366,7 @@ fails because Clang does not understand the target architecture.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QmlPreview::QmlPreviewPlugin</name>
|
<name>::QmlPreview</name>
|
||||||
<message>
|
<message>
|
||||||
<source>QML Preview</source>
|
<source>QML Preview</source>
|
||||||
<translation type="unfinished">QML-Vorschau</translation>
|
<translation type="unfinished">QML-Vorschau</translation>
|
||||||
|
|||||||
@@ -31097,7 +31097,7 @@ ID oznake moraju započeti malim slovom.</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QmlPreview::Internal::QmlPreviewPlugin</name>
|
<name>::QmlPreview</name>
|
||||||
<message>
|
<message>
|
||||||
<source>QML Preview</source>
|
<source>QML Preview</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|||||||
@@ -38089,7 +38089,7 @@ the QML editor know about a likely URI.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QmlPreview::Internal::QmlPreviewPlugin</name>
|
<name>::QmlPreview</name>
|
||||||
<message>
|
<message>
|
||||||
<source>QML Preview</source>
|
<source>QML Preview</source>
|
||||||
<translation>Предпросмотр QML</translation>
|
<translation>Предпросмотр QML</translation>
|
||||||
@@ -38102,9 +38102,6 @@ the QML editor know about a likely URI.</source>
|
|||||||
<source>Preview File</source>
|
<source>Preview File</source>
|
||||||
<translation>Файл предпросмотра</translation>
|
<translation>Файл предпросмотра</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>QmlPreview::ProjectFileSelectionsWidget</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Files to test:</source>
|
<source>Files to test:</source>
|
||||||
<translation>Тестируемые файлы:</translation>
|
<translation>Тестируемые файлы:</translation>
|
||||||
|
|||||||
@@ -36789,7 +36789,7 @@ the QML editor know about a likely URI.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QmlPreview::QmlPreviewPlugin</name>
|
<name>::QmlPreview</name>
|
||||||
<message>
|
<message>
|
||||||
<source>QML Preview</source>
|
<source>QML Preview</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "qmlpreviewplugin.h"
|
#include "qmlpreviewplugin.h"
|
||||||
|
|
||||||
#include "qmlpreviewruncontrol.h"
|
#include "qmlpreviewruncontrol.h"
|
||||||
|
#include "qmlpreviewtr.h"
|
||||||
|
|
||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
#include "tests/qmlpreviewclient_test.h"
|
#include "tests/qmlpreviewclient_test.h"
|
||||||
@@ -146,8 +148,8 @@ QmlPreviewPluginPrivate::QmlPreviewPluginPrivate(QmlPreviewPlugin *parent)
|
|||||||
|
|
||||||
Core::ActionContainer *menu = Core::ActionManager::actionContainer(
|
Core::ActionContainer *menu = Core::ActionManager::actionContainer(
|
||||||
Constants::M_BUILDPROJECT);
|
Constants::M_BUILDPROJECT);
|
||||||
QAction *action = new QAction(QmlPreviewPlugin::tr("QML Preview"), this);
|
QAction *action = new QAction(Tr::tr("QML Preview"), this);
|
||||||
action->setToolTip(QLatin1String("Preview changes to QML code live in your application."));
|
action->setToolTip(Tr::tr("Preview changes to QML code live in your application."));
|
||||||
action->setEnabled(SessionManager::startupProject() != nullptr);
|
action->setEnabled(SessionManager::startupProject() != nullptr);
|
||||||
connect(SessionManager::instance(), &SessionManager::startupProjectChanged, action,
|
connect(SessionManager::instance(), &SessionManager::startupProjectChanged, action,
|
||||||
&QAction::setEnabled);
|
&QAction::setEnabled);
|
||||||
@@ -166,7 +168,7 @@ QmlPreviewPluginPrivate::QmlPreviewPluginPrivate(QmlPreviewPlugin *parent)
|
|||||||
Constants::G_BUILD_RUN);
|
Constants::G_BUILD_RUN);
|
||||||
|
|
||||||
menu = Core::ActionManager::actionContainer(Constants::M_FILECONTEXT);
|
menu = Core::ActionManager::actionContainer(Constants::M_FILECONTEXT);
|
||||||
action = new QAction(QmlPreviewPlugin::tr("Preview File"), this);
|
action = new QAction(Tr::tr("Preview File"), this);
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
connect(q, &QmlPreviewPlugin::runningPreviewsChanged,
|
connect(q, &QmlPreviewPlugin::runningPreviewsChanged,
|
||||||
action, [action](const QmlPreviewRunControlList &previews) {
|
action, [action](const QmlPreviewRunControlList &previews) {
|
||||||
|
|||||||
Reference in New Issue
Block a user