ICS

QicsTable Documentation Set

QicsToolTip.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 **
00003 ** Copyright (C) 2002-2006 Integrated Computer Solutions, Inc
00004 ** All rights reserved.
00005 **
00006 ** This file is part of the QicsTable Product.
00007 **
00008 **********************************************************************/
00009 
00010 
00011 #ifndef _QicsToolTip_H
00012 #define _QicsToolTip_H
00013 
00014 #include <QLabel>
00015 #include <QBasicTimer>
00016 
00024 
00025 
00028 
00029 class QicsTipLabel : public QLabel
00030 {
00031     Q_OBJECT
00032 public:
00038     QicsTipLabel(const QString& text, QWidget* parent);
00042     ~QicsTipLabel();
00043     static QicsTipLabel *instance;
00049     bool eventFilter(QObject *obj, QEvent *event);
00053     void hideTip();
00054     
00055     void showTip();
00056 protected:
00061     void leaveEvent(QEvent*);
00065     void timerEvent(QTimerEvent *e);
00069     void paintEvent(QPaintEvent *e);
00070 private:
00071     QBasicTimer deleteTimer;
00072     QBasicTimer showTimer;
00073 };
00074 
00085 class QicsToolTip
00086 {
00090     QicsToolTip();
00091 public:
00098     static void showText(const QRect &rect, const QString &text, QWidget *w = 0);
00099     static QPalette palette();
00100 };
00101 
00102 #endif // _QicsScreenGrid_H

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.