90 void SetSel(
int nStartChar,
int nEndChar = -1);
92 void GetSel(
int &nStartChar,
int &nEndChar)
const;
97 QLineEdit *m_widget =
nullptr;
The KEdit class is used to replace DDX_Control edit data exchange.
Definition kedit.h:39
int GetSel() const
Gets the first character position of the current selection in an edit control.
void Clear()
Call this function to delete (clear) the current selection (if any) in the edit control.
void SetModify(bool bModified=true)
Call this function to set or clear the modified flag for an edit control.
void GetWindowText(KString &str) const
Get the text of the line edit.
uint GetLimitText() const
Call this member function to get the text limit for this KEdit object.
bool GetModify() const
Call this function to determine whether the contents of an edit control have been modified.
void GetSel(int &nStartChar, int &nEndChar) const
Gets the first and last character positions of the current selection in an edit control.
void SetReadOnly(bool bReadOnly=true)
Calls this function to set the read-only state of an edit control.
QLineEdit * widget() const
void Copy()
Call this function to copy the current selection.
void SetLimitText(unsigned int nMax)
Sets the maximum amount of text this KEdit can contain.
void Paste()
Call this function to insert the data from the Clipboard into the KEdit at the insertion point.
void Cut()
Call this function to delete (cut) the current selection.
void setWidget(QLineEdit *lineEdit)
void SetSel(int nStartChar, int nEndChar=-1)
Selects a range of characters in an edit control [start, end[.
bool CanUndo() const
Call this function to determine if the last edit operation can be undone.
void SetWindowText(const KString &str)
Change the text of the line edit.
The KString class provides a Unicode character string.
Definition kstring.h:45
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28