Loading...
Searching...
No Matches
RightClickWidget.hpp
1#pragma once
2#include <QGraphicsProxyWidget>
3#include <QGraphicsScene>
4#include <QPointer>
5
6#include <score_lib_base_export.h>
7
8namespace score
9{
20SCORE_LIB_BASE_EXPORT QPointer<QGraphicsProxyWidget>& currentRightClickWidget();
21
24{
25 if(auto* cur = currentRightClickWidget().data())
26 {
27 if(auto* sc = cur->scene())
28 sc->removeItem(cur);
29 delete cur;
30 }
31}
32}
Base toolkit upon which the software is built.
Definition Application.cpp:117
QPointer< QGraphicsProxyWidget > & currentRightClickWidget()
The one type-in box a right-click may have open.
Definition GraphicWidgets.cpp:26
void closeRightClickWidget()
Takes down whatever right-click box is open, if any.
Definition RightClickWidget.hpp:23