/*************************************************************************** linklabel.h - description ------------------- begin : Sun Mar 24 2002 copyright : (C) 2002 by Vladimir Shutoff email : vovan@shutoff.ru ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _LINKLABEL_H #define _LINKLABEL_H #include "simapi.h" #include class EXPORT LinkLabel : public QLabel { Q_OBJECT public: LinkLabel(QWidget *parent = NULL, const char *name = NULL); void setUrl(const QString &url); protected: virtual void mouseReleaseEvent(QMouseEvent * e); QString m_url; }; class EXPORT TipLabel : public QLabel { Q_OBJECT public: TipLabel(const QString &text); ~TipLabel(); void setText(const QString &text); void show(const QRect &tipRect, bool bState = false); signals: void finished(); protected: virtual void drawContents(QPainter*); QString m_text; }; #endif