diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-11-24 20:21:25 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-12-10 12:03:18 +0000 |
commit | 24ecd7fe6a6ed857585cb7f6f197018dc08e2857 (patch) | |
tree | 801c67bcc64e659a100d48894a04846f736dd8a5 /src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp | |
parent | 6474b129e61ea2a0968f4145e64bbf87d46c6ed1 (diff) | |
download | qt-creator-24ecd7fe6a6ed857585cb7f6f197018dc08e2857.tar.gz |
ScxmlEditor: Modernize
modernize-*
Change-Id: I72a72cf5e9327956fdc0e5fc6f552bfc03d2122c
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp')
-rw-r--r-- | src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp b/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp index e62fc096c2..c9b36ceda4 100644 --- a/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp +++ b/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp @@ -70,7 +70,7 @@ void GraphicsScene::unselectAll() foreach (QGraphicsItem *it, selectedItems) it->setSelected(false); if (m_document) - m_document->setCurrentTag(0); + m_document->setCurrentTag(nullptr); } void GraphicsScene::unhighlightAll() @@ -209,7 +209,7 @@ void GraphicsScene::removeSelectedItems() m_document->setCurrentTag(tags[i]); m_document->removeTag(tags[i]); } - m_document->setCurrentTag(0); + m_document->setCurrentTag(nullptr); m_document->undoStack()->endMacro(); } } @@ -305,7 +305,7 @@ void GraphicsScene::setEditorInfo(const QString &key, const QString &value) void GraphicsScene::setDocument(ScxmlDocument *document) { if (m_document) - disconnect(m_document, 0, this, 0); + disconnect(m_document, nullptr, this, nullptr); m_document = document; @@ -361,7 +361,7 @@ void GraphicsScene::init() } m_initializing = false; - warningVisibilityChanged(0, 0); + warningVisibilityChanged(0, nullptr); emit selectedStateCountChanged(0); emit selectedBaseItemCountChanged(0); } @@ -556,7 +556,7 @@ void GraphicsScene::endTagChange(ScxmlDocument::TagChange change, ScxmlTag *tag, auto transition = new TransitionItem; addItem(transition); transition->setStartItem(qgraphicsitem_cast<ConnectableItem*>(parentItem)); - transition->init(childTag, 0, false, false); + transition->init(childTag, nullptr, false, false); transition->updateAttributes(); } else { childItem = SceneUtils::createItemByTagType(childTag->tagType(), QPointF()); @@ -745,7 +745,7 @@ void GraphicsScene::removeItems(const ScxmlTag *tag) // Then delete them for (int i = items.count(); i--;) { - items[i]->setTag(0); + items[i]->setTag(nullptr); delete items[i]; } } @@ -911,7 +911,7 @@ void GraphicsScene::addChild(BaseItem *item) void GraphicsScene::removeChild(BaseItem *item) { if (item) - disconnect(item, 0, this, 0); + disconnect(item, nullptr, this, nullptr); m_baseItems.removeAll(item); selectionChanged(false); @@ -943,7 +943,7 @@ void GraphicsScene::checkInitialState() void GraphicsScene::clearAllTags() { foreach (BaseItem *it, m_baseItems) { - it->setTag(0); + it->setTag(nullptr); } } |