* \brief Return a new context menu. * * The caller takes ownership of the menu. */
| 54 | * The caller takes ownership of the menu. |
| 55 | */ |
| 56 | QMenu* Folder::createContextMenu() { |
| 57 | if (project() |
| 58 | #ifdef HAVE_MQTT |
| 59 | && type() != AspectType::MQTTSubscription |
| 60 | #endif |
| 61 | ) |
| 62 | return project()->createFolderContextMenu(this); |
| 63 | return nullptr; |
| 64 | } |
| 65 | |
| 66 | bool Folder::isDraggable() const { |
| 67 | if (dynamic_cast<const Project*>(this)) |
nothing calls this directly
no test coverage detected