QCodeEdit  2.2
lib/widgets/qcalltip.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr>
00004 **
00005 ** This file is part of the Edyuk project <http://edyuk.org>
00006 ** 
00007 ** This file may be used under the terms of the GNU General Public License
00008 ** version 3 as published by the Free Software Foundation and appearing in the
00009 ** file GPL.txt included in the packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ****************************************************************************/
00015 
00016 #ifndef _QCALL_TIP_H_
00017 #define _QCALL_TIP_H_
00018 
00019 #include "qce-config.h"
00020 
00026 #include <QWidget>
00027 
00028 class QCE_EXPORT QCallTip : public QWidget
00029 {
00030     public:
00031         QCallTip(QWidget *p = 0);
00032         virtual ~QCallTip();
00033         
00034         QStringList tips() const;
00035         void setTips(const QStringList& l);
00036         
00037     protected:
00038         virtual void paintEvent(QPaintEvent *e);
00039         virtual void keyPressEvent(QKeyEvent *e);
00040         virtual void focusInEvent(QFocusEvent *e);
00041         virtual void focusOutEvent(QFocusEvent *e);
00042         virtual void mousePressEvent(QMouseEvent *e);
00043         virtual void mouseReleaseEvent(QMouseEvent *e);
00044         
00045     private:
00046         int m_index;
00047         QStringList m_tips;
00048         QRect m_up, m_down;
00049 };
00050 
00051 #endif