![]() |
KDWinUtils
Helper library for MFC to Qt migration
|
The KMultiEdit class is used to replace DDX_Control edit data exchange, for multi line edit. More...
#include <kmultiedit.h>
Public Member Functions | |
| bool | CanUndo () const |
| Call this function to determine if the last edit operation can be undone. | |
| void | Clear () |
| Call this function to delete (clear) the current selection (if any) in the edit control. | |
| void | Copy () |
| Call this function to copy the current selection. | |
| void | Cut () |
| Call this function to delete (cut) the current selection. | |
| void | GetWindowText (KString &str) const |
| Get the text of the line edit. | |
| operator KString () const | |
| void | Paste () |
| Call this function to insert the data from the Clipboard into the KEdit at the insertion point. | |
| void | SetReadOnly (bool bReadOnly=true) |
| Calls this function to set the read-only state of an edit control. | |
| void | setWidget (QTextEdit *lineEdit) |
| void | SetWindowText (const KString &str) |
| Change the text of the line edit. | |
| QTextEdit * | widget () const |
The KMultiEdit class is used to replace DDX_Control edit data exchange, for multi line edit.
This class is the equivalent of CEdit in MFC. It is a proxy for the widget, and can be used to set and get the value. It supports multi line edit (QTextEdit)
| bool KMultiEdit::CanUndo | ( | ) | const |
Call this function to determine if the last edit operation can be undone.
| void KMultiEdit::Clear | ( | ) |
Call this function to delete (clear) the current selection (if any) in the edit control.
| void KMultiEdit::Copy | ( | ) |
Call this function to copy the current selection.
| void KMultiEdit::Cut | ( | ) |
Call this function to delete (cut) the current selection.
| void KMultiEdit::GetWindowText | ( | KString & | str | ) | const |
Get the text of the line edit.
| KMultiEdit::operator KString | ( | ) | const |
Returns the string of the line edit.
| void KMultiEdit::Paste | ( | ) |
Call this function to insert the data from the Clipboard into the KEdit at the insertion point.
| void KMultiEdit::SetReadOnly | ( | bool | bReadOnly = true | ) |
Calls this function to set the read-only state of an edit control.
| void KMultiEdit::setWidget | ( | QTextEdit * | lineEdit | ) |
Sets the widget the class is proxying.
| void KMultiEdit::SetWindowText | ( | const KString & | str | ) |
Change the text of the line edit.
| QTextEdit * KMultiEdit::widget | ( | ) | const |
Returns the underlying widget the class is proxying.