-rw-r--r-- | qtcompat/qtooltipcompat.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/qtcompat/qtooltipcompat.h b/qtcompat/qtooltipcompat.h new file mode 100644 index 0000000..4d44146 --- a/dev/null +++ b/qtcompat/qtooltipcompat.h | |||
@@ -0,0 +1,34 @@ | |||
1 | #ifndef QTCOMPAT_QTOOLTIP_H | ||
2 | #define QTCOMPAT_QTOOLTIP_H | ||
3 | |||
4 | /****** | ||
5 | * | ||
6 | * rob's QToolTip class | ||
7 | * | ||
8 | * Apparently Sharp concluded that ToolTips were not useful on the Zaurus and | ||
9 | * left them out of their Qtopia. Unfortunately, QWhatsThis uses the | ||
10 | * QToolTips::palette(), that function returns all 0's, and that means that | ||
11 | * QWhatsThis windows come up with black background and black foreground. By | ||
12 | * re-implementing this class, QWhatsThis calls this QToolTip::palette(), and | ||
13 | * gets a useful result. | ||
14 | * | ||
15 | * Include this class in your own Zaurus application and QWhatsThis should work | ||
16 | * for you as well. | ||
17 | * | ||
18 | * The contents of this file are released without restriction to the public | ||
19 | * domain. | ||
20 | * | ||
21 | * Copyright (c) rob miller October, 2003 | ||
22 | * | ||
23 | *****/ | ||
24 | #ifdef ADD_TOOLTIP | ||
25 | |||
26 | #include <qpalette.h> | ||
27 | class QToolTip: public Qt { | ||
28 | public: | ||
29 | static QPalette palette(); | ||
30 | }; | ||
31 | |||
32 | #endif | ||
33 | |||
34 | #endif | ||