From b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 26 Jun 2004 19:01:18 +0000 Subject: Initial revision --- (limited to 'qtcompat/qtooltipcompat.h') 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 @@ +#ifndef QTCOMPAT_QTOOLTIP_H +#define QTCOMPAT_QTOOLTIP_H + +/****** + * + * rob's QToolTip class + * + * Apparently Sharp concluded that ToolTips were not useful on the Zaurus and + * left them out of their Qtopia. Unfortunately, QWhatsThis uses the + * QToolTips::palette(), that function returns all 0's, and that means that + * QWhatsThis windows come up with black background and black foreground. By + * re-implementing this class, QWhatsThis calls this QToolTip::palette(), and + * gets a useful result. + * + * Include this class in your own Zaurus application and QWhatsThis should work + * for you as well. + * + * The contents of this file are released without restriction to the public + * domain. + * + * Copyright (c) rob miller October, 2003 + * + *****/ +#ifdef ADD_TOOLTIP + +#include +class QToolTip: public Qt { + public: + static QPalette palette(); +}; + +#endif + +#endif -- cgit v0.9.0.2