Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef QXTTOOLTIP_H
00026 #define QXTTOOLTIP_H
00027
00028 #include <QRect>
00029 #include <QPointer>
00030 #include <QWidget>
00031 #include "qxtglobal.h"
00032
00033 class QXT_GUI_EXPORT QxtToolTip
00034 {
00035 QxtToolTip();
00036
00037 public:
00038 static void show(const QPoint& pos, QWidget* tooltip, QWidget* parent = 0, const QRect& rect = QRect());
00039 static void hide();
00040
00041 static QWidget* toolTip(QWidget* parent);
00042 static void setToolTip(QWidget* parent, QWidget* tooltip, const QRect& rect = QRect());
00043
00044 static QRect toolTipRect(QWidget* parent);
00045 static void setToolTipRect(QWidget* parent, const QRect& rect);
00046
00047 static int margin();
00048 static void setMargin(int margin);
00049
00050 static qreal opacity();
00051 static void setOpacity(qreal level);
00052 };
00053
00054 QT_BEGIN_NAMESPACE
00055 inline uint qHash(const QPointer<QWidget> key)
00056 {
00057 return reinterpret_cast<quint64>(key ? (&*key) : 0);
00058 }
00059 QT_END_NAMESPACE
00060
00061 #endif // QXTTOOLTIP_H