mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:17:02 +02:00
Cleanup logging
This commit is contained in:
parent
e602d3610e
commit
19d5b8750a
2 changed files with 7 additions and 2 deletions
|
@ -16,11 +16,15 @@ HoverOverlayInterface::HoverOverlayInterface() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HoverOverlayInterface::createHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event) {
|
void HoverOverlayInterface::createHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event) {
|
||||||
qDebug() << "ZACH FOX HOVER ENTER" << entityItemID;
|
if (_verboseLogging) {
|
||||||
|
qDebug() << "Creating Hover Overlay on top of entity with ID: " << entityItemID;
|
||||||
|
}
|
||||||
setCurrentHoveredEntity(entityItemID);
|
setCurrentHoveredEntity(entityItemID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HoverOverlayInterface::destroyHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event) {
|
void HoverOverlayInterface::destroyHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event) {
|
||||||
qDebug() << "ZACH FOX HOVER LEAVE" << entityItemID;
|
if (_verboseLogging) {
|
||||||
|
qDebug() << "Destroying Hover Overlay on top of entity with ID: " << entityItemID;
|
||||||
|
}
|
||||||
setCurrentHoveredEntity(QUuid());
|
setCurrentHoveredEntity(QUuid());
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,7 @@ public slots:
|
||||||
void destroyHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event);
|
void destroyHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
bool _verboseLogging { true };
|
||||||
QUuid _currentHoveredEntity{};
|
QUuid _currentHoveredEntity{};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue