Signals | Public Member Functions | Protected Member Functions

TextEditBox Class Reference
[GraphicsView]

Provides a text editor for the user. This class allows the user to edit text and includes save and abandon buttons. More...

#include <texteditbox.h>

Collaboration diagram for TextEditBox:
Collaboration graph
[legend]

List of all members.

Signals

void saveButtonClicked (QString text)
void cancelButtonClicked ()

Public Member Functions

 TextEditBox (TextBlock *textBlock)
 ~TextEditBox ()
virtual void graphicHasChanged ()
 subclass must implement this, used to record user changes back to the data model
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QRectF boundingRect () const

Protected Member Functions

void keyPressEvent (QKeyEvent *event)

Detailed Description

Provides a text editor for the user. This class allows the user to edit text and includes save and abandon buttons.


Constructor & Destructor Documentation

TextEditBox::TextEditBox ( TextBlock textBlock  ) 

Here is the call graph for this function:

TextEditBox::~TextEditBox (  ) 

Member Function Documentation

QRectF TextEditBox::boundingRect (  )  const

Here is the caller graph for this function:

void TextEditBox::cancelButtonClicked (  )  [signal]
void TextEditBox::graphicHasChanged (  )  [virtual]

subclass must implement this, used to record user changes back to the data model

void TextEditBox::keyPressEvent ( QKeyEvent *  event  )  [protected]

Here is the call graph for this function:

void TextEditBox::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

Here is the call graph for this function:

void TextEditBox::saveButtonClicked ( QString  text  )  [signal]

The documentation for this class was generated from the following files: