summaryrefslogtreecommitdiffabout
path: root/qtcompat/qtooltipcompat.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /qtcompat/qtooltipcompat.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'qtcompat/qtooltipcompat.h') (more/less context) (ignore whitespace changes)
-rw-r--r--qtcompat/qtooltipcompat.h34
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>
27class QToolTip: public Qt {
28 public:
29 static QPalette palette();
30};
31
32#endif
33
34#endif