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