forked from qt-creator/qt-creator
ScxmlEditor: Convert to using Tr::tr
Change-Id: Ia8ab06d4b8a16bb144d6887624c478fb911f29ea Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "transitionwarningitem.h"
|
||||
#include "scxmleditortr.h"
|
||||
#include "transitionitem.h"
|
||||
#include "transitionwarningitem.h"
|
||||
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
@@ -13,8 +14,8 @@ TransitionWarningItem::TransitionWarningItem(TransitionItem *parent)
|
||||
, m_parentItem(parent)
|
||||
{
|
||||
setSeverity(OutputPane::Warning::WarningType);
|
||||
setTypeName(tr("Transition"));
|
||||
setDescription(tr("Transitions should be connected."));
|
||||
setTypeName(Tr::tr("Transition"));
|
||||
setDescription(Tr::tr("Transitions should be connected."));
|
||||
|
||||
setPixmap(Utils::Icons::WARNING.pixmap());
|
||||
}
|
||||
@@ -23,7 +24,7 @@ void TransitionWarningItem::check()
|
||||
{
|
||||
if (m_parentItem) {
|
||||
if (m_parentItem->targetType() == TransitionItem::ExternalNoTarget) {
|
||||
setReason(tr("Not connected (%1).").arg(m_parentItem->tagValue("event")));
|
||||
setReason(Tr::tr("Not connected (%1).").arg(m_parentItem->tagValue("event")));
|
||||
setWarningActive(true);
|
||||
} else
|
||||
setWarningActive(false);
|
||||
|
||||
Reference in New Issue
Block a user