Incredibuild: Tr::tr and code cosmetics

Change-Id: Id2facedde38dd09311069711b9e621a95439d433
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-19 17:19:57 +01:00
parent 0fff2aa172
commit 2e98acfdfd
20 changed files with 192 additions and 365 deletions

View File

@@ -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