Commit 87c9ef6f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use nullptr, use Qt::NoButton here

parent aadbabec
...@@ -154,7 +154,7 @@ KGameRenderedItem * KGrRenderer::getTileItem ...@@ -154,7 +154,7 @@ KGameRenderedItem * KGrRenderer::getTileItem
KGameRenderedItem * tile = KGameRenderedItem * tile =
new KGameRenderedItem ((keyTable[index].picSource == Set) ? new KGameRenderedItem ((keyTable[index].picSource == Set) ?
m_setRenderer : m_actorsRenderer, key); m_setRenderer : m_actorsRenderer, key);
tile->setAcceptedMouseButtons (nullptr); tile->setAcceptedMouseButtons (Qt::NoButton);
m_scene->addItem (tile); m_scene->addItem (tile);
return tile; return tile;
} }
...@@ -170,7 +170,7 @@ KGrSprite * KGrRenderer::getSpriteItem (const char picType, const int tickTime) ...@@ -170,7 +170,7 @@ KGrSprite * KGrRenderer::getSpriteItem (const char picType, const int tickTime)
KGrSprite * sprite = new KGrSprite ((keyTable[index].picSource == Set) ? KGrSprite * sprite = new KGrSprite ((keyTable[index].picSource == Set) ?
m_setRenderer : m_actorsRenderer, m_setRenderer : m_actorsRenderer,
key, picType, tickTime); key, picType, tickTime);
sprite->setAcceptedMouseButtons (nullptr); sprite->setAcceptedMouseButtons (Qt::NoButton);
// We cannot add the sprite to the scene yet: it needs a frame and size. // We cannot add the sprite to the scene yet: it needs a frame and size.
return sprite; return sprite;
} }
...@@ -185,7 +185,7 @@ KGameRenderedItem * KGrRenderer::getBackground ...@@ -185,7 +185,7 @@ KGameRenderedItem * KGrRenderer::getBackground
QString key = getBackgroundKey (level); QString key = getBackgroundKey (level);
KGameRenderedItem * background = new KGameRenderedItem (m_setRenderer, key); KGameRenderedItem * background = new KGameRenderedItem (m_setRenderer, key);
background->setAcceptedMouseButtons (nullptr); background->setAcceptedMouseButtons (Qt::NoButton);
m_scene->addItem (background); m_scene->addItem (background);
return background; return background;
...@@ -204,7 +204,7 @@ KGameRenderedItem * KGrRenderer::getBorderItem ...@@ -204,7 +204,7 @@ KGameRenderedItem * KGrRenderer::getBorderItem
} }
KGameRenderedItem * item = new KGameRenderedItem (m_setRenderer, spriteKey); KGameRenderedItem * item = new KGameRenderedItem (m_setRenderer, spriteKey);
item->setAcceptedMouseButtons (nullptr); item->setAcceptedMouseButtons (Qt::NoButton);
m_scene->addItem (item); m_scene->addItem (item);
return item; return item;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment