|
|
Displays an text in a widget which can optionally be modified and saved back.
QToolBar * toolbar ()
| toolbar |
[protected]
toMarkedText * editor ()
| editor |
[protected]
QLabel * label ()
| label |
[protected]
toMemoEditor (QWidget *parent,const QString &data,int row=-1,int col=-1,
bool sql=false,bool modal=false,bool navigation=false)
| toMemoEditor |
Create this editor. If row and col is specified, editing is posible.
Parameters:
parent | Parent widget. |
data | Data of editor. |
row | Optional location specifier, pass on in changeData call. |
col | Optional location specifier, pass on in changeData call. |
sql | Use SQL syntax highlighting of widget. |
modal | Display in modal dialog |
navigation | Display navigation buttons |
QString text (void)
| text |
Get editor text.
Returns: String of editor.
int row ()
| row |
[const]
Current row being edited.
int column ()
| column |
[const]
Current column being edited.
void changeData (int row,int col,const QString &data)
| changeData |
[signal]
Emitted when data is to be stored back to the creator
Parameters:
row | Pass on from creation. |
col | Pass on from creation. |
data | New data to save. |
void store (void)
| store |
[virtual slot]
Save changes and close.
void firstColumn ()
| firstColumn |
[virtual slot]
Goto first column.
void nextColumn ()
| nextColumn |
[virtual slot]
Goto next column.
void previousColumn ()
| previousColumn |
[virtual slot]
Goto previous column.
void lastColumn ()
| lastColumn |
[virtual slot]
Goto last column.
void changePosition (int row,int cols)
| changePosition |
[virtual slot]
Change position in whatever it is your displaying.
void setText (const QString &)
| setText |
[virtual slot]
Change value of editor.