ScxmlEditor: Modernize

modernize-*

Change-Id: I72a72cf5e9327956fdc0e5fc6f552bfc03d2122c
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
Alessandro Portale
2018-11-24 20:21:25 +01:00
parent 6474b129e6
commit 24ecd7fe6a
19 changed files with 39 additions and 43 deletions

View File

@@ -70,7 +70,7 @@ QRectF WarningItem::boundingRect() const
void WarningItem::mousePressEvent(QGraphicsSceneMouseEvent *e)
{
QToolTip::showText(e->screenPos(), toolTip(), 0);
QToolTip::showText(e->screenPos(), toolTip(), nullptr);
QGraphicsObject::mousePressEvent(e);
}
@@ -162,7 +162,7 @@ void WarningItem::setPixmap(const QPixmap &pixmap)
ScxmlTag *WarningItem::tag() const
{
return m_parentItem ? m_parentItem->tag() : 0;
return m_parentItem ? m_parentItem->tag() : nullptr;
}
ScxmlEditor::OutputPane::Warning *WarningItem::warning() const