kexi
kexiarrowtip.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KEXIARROWTIP_H
00021 #define KEXIARROWTIP_H
00022
00023 #include "kexitooltip.h"
00024
00026
00029 class KEXIGUIUTILS_EXPORT KexiArrowTip : public KexiToolTip
00030 {
00031 Q_OBJECT
00032 public:
00033 KexiArrowTip(const QString& text, QWidget* parent);
00034 virtual ~KexiArrowTip();
00035
00036 inline QString text() const { return m_value.toString(); }
00037 virtual bool close() { return close(false); }
00038 virtual bool close( bool alsoDelete );
00039
00040 public slots:
00041 virtual void show();
00042 virtual void hide();
00043
00044 protected slots:
00045 void increaseOpacity();
00046 void decreaseOpacity();
00047
00048 protected:
00049 virtual void drawFrame(QPainter& p);
00050 virtual void drawContents(QPainter& p);
00051
00052 int m_arrowHeight;
00053 double m_opacity;
00054 };
00055
00056 #endif
|