summaryrefslogtreecommitdiff
path: root/src/plugins/incredibuild/commandbuilder.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-01-19 17:19:57 +0100
committerhjk <hjk@qt.io>2023-01-19 17:25:28 +0000
commit2e98acfdfd9ca7f0373b0dfdcd42d551fbbb089f (patch)
tree323b61fe7b47fc1cb46481d7a63e414ecfb89792 /src/plugins/incredibuild/commandbuilder.cpp
parent0fff2aa172ce2f22e4fe5e0227f6731bbd5b56dd (diff)
downloadqt-creator-2e98acfdfd9ca7f0373b0dfdcd42d551fbbb089f.tar.gz
Incredibuild: Tr::tr and code cosmetics
Change-Id: Id2facedde38dd09311069711b9e621a95439d433 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/incredibuild/commandbuilder.cpp')
-rw-r--r--src/plugins/incredibuild/commandbuilder.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/plugins/incredibuild/commandbuilder.cpp b/src/plugins/incredibuild/commandbuilder.cpp
index 73585de89f..9febc343df 100644
--- a/src/plugins/incredibuild/commandbuilder.cpp
+++ b/src/plugins/incredibuild/commandbuilder.cpp
@@ -3,14 +3,20 @@
#include "commandbuilder.h"
+#include "incredibuildtr.h"
+
using namespace Utils;
-namespace IncrediBuild {
-namespace Internal {
+namespace IncrediBuild::Internal {
const char CUSTOMCOMMANDBUILDER_COMMAND[] = "IncrediBuild.BuildConsole.%1.Command";
const char CUSTOMCOMMANDBUILDER_ARGS[] = "IncrediBuild.BuildConsole.%1.Arguments";
+QString CommandBuilder::displayName() const
+{
+ return Tr::tr("Custom Command");
+}
+
void CommandBuilder::fromMap(const QVariantMap &map)
{
m_command = FilePath::fromSettings(map.value(QString(CUSTOMCOMMANDBUILDER_COMMAND).arg(id())));
@@ -36,5 +42,4 @@ void CommandBuilder::setArguments(const QString &arguments)
m_args = arguments;
}
-} // namespace Internal
-} // namespace IncrediBuild
+} // IncrediBuild::Internal