QCodeEdit  2.2
qcalltip.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr>
4 **
5 ** This file is part of the Edyuk project <http://edyuk.org>
6 **
7 ** This file may be used under the terms of the GNU General Public License
8 ** version 3 as published by the Free Software Foundation and appearing in the
9 ** file GPL.txt included in the packaging of this file.
10 **
11 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 **
14 ****************************************************************************/
15 
16 #ifndef _QCALL_TIP_H_
17 #define _QCALL_TIP_H_
18 
19 #include "qce-config.h"
20 
26 #include <QWidget>
27 
28 class QCE_EXPORT QCallTip : public QWidget
29 {
30  public:
31  QCallTip(QWidget *p = 0);
32  virtual ~QCallTip();
33 
34  QStringList tips() const;
35  void setTips(const QStringList& l);
36 
37  protected:
38  virtual void paintEvent(QPaintEvent *e);
39  virtual void keyPressEvent(QKeyEvent *e);
40  virtual void focusInEvent(QFocusEvent *e);
41  virtual void focusOutEvent(QFocusEvent *e);
42  virtual void mousePressEvent(QMouseEvent *e);
43  virtual void mouseReleaseEvent(QMouseEvent *e);
44 
45  private:
46  int m_index;
47  QStringList m_tips;
48  QRect m_up, m_down;
49 };
50 
51 #endif
#define QCE_EXPORT
Macro needed for cross-platform shared libraries creation.
Definition: qce-config.h:40
Utility file for shared library creation.
A widget dedicated to calltips display.
Definition: qcalltip.h:28