forked from qt-creator/qt-creator
Coco: Tr::tr()
Change-Id: I130fbc62eb839548a7667aace8287be3e6ef6254 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -50728,7 +50728,7 @@ in "%2" aus.
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Coco::CocoPlugin</name>
|
<name>::Coco</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Select a Squish Coco CoverageBrowser Executable</source>
|
<source>Select a Squish Coco CoverageBrowser Executable</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|||||||
@@ -8104,7 +8104,7 @@ Set a valid executable first.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Coco::CocoPlugin</name>
|
<name>::Coco</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Select a Squish Coco CoverageBrowser Executable</source>
|
<source>Select a Squish Coco CoverageBrowser Executable</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "cocoplugin.h"
|
#include "cocoplugin.h"
|
||||||
|
|
||||||
#include "cocolanguageclient.h"
|
#include "cocolanguageclient.h"
|
||||||
|
#include "cocotr.h"
|
||||||
|
|
||||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
#include <coreplugin/actionmanager/actionmanager.h>
|
||||||
@@ -46,18 +47,17 @@ void CocoPluginPrivate::startCoco()
|
|||||||
if (!candidates.isEmpty())
|
if (!candidates.isEmpty())
|
||||||
cocoChooser.setFilePath(candidates.first());
|
cocoChooser.setFilePath(candidates.first());
|
||||||
cocoChooser.setExpectedKind(PathChooser::Command);
|
cocoChooser.setExpectedKind(PathChooser::Command);
|
||||||
cocoChooser.setPromptDialogTitle(CocoPlugin::tr(
|
cocoChooser.setPromptDialogTitle(Tr::tr("Select a Squish Coco CoverageBrowser Executable"));
|
||||||
"Select a Squish Coco CoverageBrowser Executable"));
|
|
||||||
|
|
||||||
cocoChooser.setHistoryCompleter("Coco.CoverageBrowser.history", true);
|
cocoChooser.setHistoryCompleter("Coco.CoverageBrowser.history", true);
|
||||||
layout->addRow(CocoPlugin::tr("CoverageBrowser:"), &cocoChooser);
|
layout->addRow(Tr::tr("CoverageBrowser:"), &cocoChooser);
|
||||||
PathChooser csmesChoser;
|
PathChooser csmesChoser;
|
||||||
csmesChoser.setHistoryCompleter("Coco.CSMes.history", true);
|
csmesChoser.setHistoryCompleter("Coco.CSMes.history", true);
|
||||||
csmesChoser.setExpectedKind(PathChooser::File);
|
csmesChoser.setExpectedKind(PathChooser::File);
|
||||||
csmesChoser.setInitialBrowsePathBackup(FileUtils::homePath());
|
csmesChoser.setInitialBrowsePathBackup(FileUtils::homePath());
|
||||||
csmesChoser.setPromptDialogFilter(CocoPlugin::tr("Coco instrumentation files (*.csmes)"));
|
csmesChoser.setPromptDialogFilter(Tr::tr("Coco instrumentation files (*.csmes)"));
|
||||||
csmesChoser.setPromptDialogTitle(CocoPlugin::tr("Select a Squish Coco Instrumentation File"));
|
csmesChoser.setPromptDialogTitle(Tr::tr("Select a Squish Coco Instrumentation File"));
|
||||||
layout->addRow(CocoPlugin::tr("CSMes:"), &csmesChoser);
|
layout->addRow(Tr::tr("CSMes:"), &csmesChoser);
|
||||||
QDialogButtonBox buttons(QDialogButtonBox::Cancel | QDialogButtonBox::Open);
|
QDialogButtonBox buttons(QDialogButtonBox::Cancel | QDialogButtonBox::Open);
|
||||||
layout->addItem(new QSpacerItem(0, 20, QSizePolicy::Expanding, QSizePolicy::MinimumExpanding));
|
layout->addItem(new QSpacerItem(0, 20, QSizePolicy::Expanding, QSizePolicy::MinimumExpanding));
|
||||||
layout->addWidget(&buttons);
|
layout->addWidget(&buttons);
|
||||||
|
|||||||
Reference in New Issue
Block a user