diff options
Diffstat (limited to 'src/modules/objects/class_widget.h')
| -rw-r--r-- | src/modules/objects/class_widget.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/modules/objects/class_widget.h b/src/modules/objects/class_widget.h index 8f5453c10..38f7a5414 100644 --- a/src/modules/objects/class_widget.h +++ b/src/modules/objects/class_widget.h @@ -23,13 +23,10 @@ // #include "kvi_string.h" - - - - - +#include "qtooltip.h" #include "object_macros.h" +class KviKvsTip; class KviKvsObject_widget : public KviKvsObject { Q_OBJECT @@ -51,7 +48,7 @@ protected: // so the name of the C++ function matches exactly the name of the KVS function at this point // let's also try to keep alphabetic order for the functions here.. so one can find them quickly - + KviKvsTip *m_pTip; bool function_addWidgetToWrappedLayout(KviKvsObjectFunctionCall *c); bool function_backgroundColor(KviKvsObjectFunctionCall *c); bool function_caption(KviKvsObjectFunctionCall *c); @@ -102,9 +99,24 @@ protected: bool function_width(KviKvsObjectFunctionCall *); bool function_x(KviKvsObjectFunctionCall *); bool function_y(KviKvsObjectFunctionCall *); + bool function_enableDynamicToolTip(KviKvsObjectFunctionCall *c); + bool function_disableDynamicToolTip(KviKvsObjectFunctionCall *c); + bool function_setDynamicToolTip(KviKvsObjectFunctionCall *c); + signals: void aboutToDie(); }; +class KviKvsTip : public QToolTip +{ +public: + KviKvsTip(KviKvsObject_widget * pParent,QWidget *pWidget); + ~KviKvsTip(); +public: + void maybeTip(const QPoint &pnt); + void doTip(const QRect &rct,const QString &str){ tip(rct,str); }; +protected: + KviKvsObject_widget * m_pParent; +}; #endif // !_CLASS_WIDGET_H_ |
