class TimeTip : public QToolTip
{
public:
TimeTip(QWidget *parent) : QToolTip(parent) {};
protected:
void maybeTip(const QPoint &pos);
};
void TimeTip::maybeTip(const QPoint &pos)
{
QString text = ((World*)parentWidget())->getTip(pos);
if (text.length() > 0)
tip(QRect(pos,QSize(1,1)), text);
}