source: trunk/examples/tooltip/tooltip.h

Last change on this file was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 970 bytes
Line 
1/****************************************************************************
2** $Id: tooltip.h 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#include <qwidget.h>
12#include <qtooltip.h>
13
14
15class DynamicTip : public QToolTip
16{
17public:
18 DynamicTip( QWidget * parent );
19
20protected:
21 void maybeTip( const QPoint & );
22};
23
24
25class TellMe : public QWidget
26{
27 Q_OBJECT
28public:
29 TellMe( QWidget * parent = 0, const char * name = 0 );
30 ~TellMe();
31
32 QRect tip( const QPoint & );
33
34protected:
35 void paintEvent( QPaintEvent * );
36 void mousePressEvent( QMouseEvent * );
37 void resizeEvent( QResizeEvent * );
38
39private:
40 QRect randomRect();
41
42 QRect r1, r2, r3;
43 DynamicTip * t;
44};
Note: See TracBrowser for help on using the repository browser.