summaryrefslogtreecommitdiffstats
path: root/kalzium/src/kalziumtip.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kalzium/src/kalziumtip.h
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/kalziumtip.h')
-rw-r--r--kalzium/src/kalziumtip.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/kalzium/src/kalziumtip.h b/kalzium/src/kalziumtip.h
index 0186529f..79923bd0 100644
--- a/kalzium/src/kalziumtip.h
+++ b/kalzium/src/kalziumtip.h
@@ -37,14 +37,15 @@ class TQTimer;
* @short tooltip for kalzium
* @author Martin Pfeiffer
*/
-class KalziumTip : public QWidget
+class KalziumTip : public TQWidget
{
- Q_OBJECT
+ Q_OBJECT
+ TQ_OBJECT
public:
enum MaskEffect { Plain, Dissolve };
- KalziumTip( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
+ KalziumTip( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 );
void showTip( TQPoint, Element* element, int visibleWidth, int visibleHeight ); //show the tip
void hide(); // hide it
@@ -54,7 +55,7 @@ class KalziumTip : public QWidget
void plainMask();
void dissolveMask();
- // if the mouse pointer hovers us, send the event to the parent
+ // if the mouse pointer hovers us, send the event to the tqparent
// so we are some-what 'mouse transparent'
void mouseMoveEvent(TQMouseEvent * e);
void displayInternal();
@@ -66,20 +67,20 @@ class KalziumTip : public QWidget
void internalUpdate();
private:
- TQBitmap m_mask;
+ TQBitmap m_tqmask;
TQPoint m_mousePointer;
TQPixmap m_pixmap;
TQPixmap m_icon; //icon shown on the tip
TQPixmap m_noElemIcon; //icon for element wich have no image
- MaskEffect m_maskEffect; //inidicates to show mask effect or plain
+ MaskEffect m_tqmaskEffect; //inidicates to show tqmask effect or plain
TQSimpleRichText* m_richText;
int m_dissolveSize;
int m_dissolveDelta;
TQTimer m_frameTimer; //timer for the dissolve effect
- bool m_dirty; //indicates repainting the tooltip internal
+ bool m_dirty; //indicates tqrepainting the tooltip internal
const Element* m_tippedElement; //the element the tip is about
};