00001 #ifndef SXUITEXTITEM_H_INCLUDED
00002 #define SXUITEXTITEM_H_INCLUDED
00003
00004 #include <QGraphicsItem>
00005 #include "sxObject.h"
00006
00007 class SX_GUISDKEXPORT sxUiTextItem : public QGraphicsTextItem
00008 {
00009 Q_OBJECT
00010
00011 class PrivateData;
00012 PrivateData * d_p;
00013 protected:
00014 void mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event );
00015 void focusInEvent(QFocusEvent* event);
00016 void focusOutEvent(QFocusEvent* event);
00017 public:
00018 sxUiTextItem(sxObject * obj);
00019 virtual ~sxUiTextItem();
00020
00021
00022 bool eventFilter(QObject* object, QEvent* event);
00023 void setContentText(const QString& ntext);
00024 };
00025
00026
00027 #endif // SXUITEXTITEM_H_INCLUDED