mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
parent
9a0344adac
commit
05f23de1ed
@ -46,3 +46,9 @@ void GraphicsScene::helpEvent(QGraphicsSceneHelpEvent *event)
|
||||
|
||||
/* No need to process QGraphicsScene::helpEvent() */
|
||||
}
|
||||
|
||||
void GraphicsScene::clear()
|
||||
{
|
||||
Popup::clear();
|
||||
QGraphicsScene::clear();
|
||||
}
|
||||
|
@ -18,6 +18,9 @@ class GraphicsScene : public QGraphicsScene
|
||||
public:
|
||||
GraphicsScene(QObject *parent = 0) : QGraphicsScene(parent) {}
|
||||
|
||||
public slots:
|
||||
void clear();
|
||||
|
||||
protected:
|
||||
void helpEvent(QGraphicsSceneHelpEvent *event);
|
||||
|
||||
|
@ -163,3 +163,9 @@ void Popup::show(const QPoint &pos, const QString &text, QWidget *w)
|
||||
PopupLabel::_instance->place(pos, w);
|
||||
PopupLabel::_instance->showNormal();
|
||||
}
|
||||
|
||||
void Popup::clear()
|
||||
{
|
||||
if (PopupLabel::_instance)
|
||||
PopupLabel::_instance->deleteLater();
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ class Popup
|
||||
{
|
||||
public:
|
||||
static void show(const QPoint &pos, const QString &text, QWidget *w);
|
||||
static void clear();
|
||||
};
|
||||
|
||||
#endif // POPUP_H
|
||||
|
Loading…
Reference in New Issue
Block a user