.TH "KLineEdit" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KLineEdit \- An enhanced \fBQLineEdit\fP widget for inputting text. An enhanced single line input widget.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <klineedit.h>\fP
.PP
Inherits \fBQLineEdit\fP, and \fBKCompletionBase\fP.
.PP
Inherited by \fBKListViewLineEdit\fP, and \fBKRestrictedLine\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBsetReadOnly\fP (bool)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "void \fBrotateText\fP (\fBKCompletionBase::KeyBindingType\fP)"
.br
.RI "\fIIterates through all possible matches of the completed text or the history list. \fP"
.ti -1c
.RI "virtual void \fBsetCompletedText\fP (const  \fBQString\fP &)"
.br
.RI "\fISee \fBKCompletionBase::setCompletedText\fP. \fP"
.ti -1c
.RI "void \fBsetCompletedItems\fP (const  \fBQStringList\fP &items)"
.br
.RI "\fISets \fCitems\fP into the completion-box if \fBcompletionMode\fP() is CompletionPopup. \fP"
.ti -1c
.RI "virtual void \fBclear\fP ()"
.br
.RI "\fIReimplemented to workaround a buggy \fBQLineEdit::clear()\fP (changing the clipboard to the text we just had in the lineedit). \fP"
.ti -1c
.RI "void \fBsetSqueezedText\fP (const  \fBQString\fP &\fBtext\fP)"
.br
.RI "\fISqueezes \fCtext\fP into the line edit. \fP"
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBcompletionBoxActivated\fP (const  \fBQString\fP &)"
.br
.RI "\fIEmitted whenever the completion box is activated. \fP"
.ti -1c
.RI "void \fBreturnPressed\fP (const  \fBQString\fP &)"
.br
.RI "\fIEmitted when the user presses the return key. \fP"
.ti -1c
.RI "void \fBcompletion\fP (const  \fBQString\fP &)"
.br
.RI "\fIEmitted when the completion key is pressed. \fP"
.ti -1c
.RI "void \fBsubstringCompletion\fP (const  \fBQString\fP &)"
.br
.RI "\fIEmitted when the shortcut for substring completion is pressed. \fP"
.ti -1c
.RI "void \fBtextRotation\fP (\fBKCompletionBase::KeyBindingType\fP)"
.br
.RI "\fIEmitted when the text rotation key-bindings are pressed. \fP"
.ti -1c
.RI "void \fBcompletionModeChanged\fP (\fBKGlobalSettings::Completion\fP)"
.br
.RI "\fIEmitted when the user changed the completion mode by using the popupmenu. \fP"
.ti -1c
.RI "void \fBaboutToShowContextMenu\fP (\fBQPopupMenu\fP *)"
.br
.RI "\fIEmitted before the context menu is displayed. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKLineEdit\fP (const  \fBQString\fP &string, \fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIConstructs a KLineEdit object with a default text, a parent, and a name. \fP"
.ti -1c
.RI "\fBKLineEdit\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a KLineEdit object with a parent and a name. \fP"
.ti -1c
.RI "virtual \fB~KLineEdit\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBsetURL\fP (const  \fBKURL\fP &url)"
.br
.RI "\fISets \fCurl\fP into the lineedit. \fP"
.ti -1c
.RI "void \fBcursorAtEnd\fP ()"
.br
.RI "\fIPuts the text cursor at the end of the string. \fP"
.ti -1c
.RI "virtual void \fBsetCompletionMode\fP (\fBKGlobalSettings::Completion\fP mode)"
.br
.RI "\fIRe-implemented from \fBKCompletionBase\fP for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBsetContextMenuEnabled\fP (bool showMenu)"
.br
.RI "\fIEnables/disables the popup (context) menu. \fP"
.ti -1c
.RI "bool \fBisContextMenuEnabled\fP () const "
.br
.RI "\fIReturns \fCtrue\fP when the context menu is enabled. \fP"
.ti -1c
.RI "void \fBsetURLDropsEnabled\fP (bool enable)"
.br
.RI "\fIEnables/Disables handling of URL drops. \fP"
.ti -1c
.RI "bool \fBisURLDropsEnabled\fP () const "
.br
.RI "\fIReturns \fCtrue\fP when decoded URL drops are enabled. \fP"
.ti -1c
.RI "void \fBsetTrapReturnKey\fP (bool trap)"
.br
.RI "\fIBy default, KLineEdit recognizes \fCKey_Return\fP and \fCKey_Enter\fP and emits the \fBreturnPressed\fP() signals, but it also lets the event pass, for example causing a dialog's default-button to be called. \fP"
.ti -1c
.RI "bool \fBtrapReturnKey\fP () const "
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (\fBQObject\fP *, \fBQEvent\fP *)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "\fBKCompletionBox\fP * \fBcompletionBox\fP (bool create=true)"
.br
.ti -1c
.RI "virtual void \fBsetCompletionObject\fP (\fBKCompletion\fP *, bool hsig=true)"
.br
.RI "\fIReimplemented for internal reasons, the API is not affected. \fP"
.ti -1c
.RI "virtual void \fBcopy\fP () const "
.br
.RI "\fIReimplemented for internal reasons, the API is not affected. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBmakeCompletion\fP (const  \fBQString\fP &)"
.br
.RI "\fICompletes the remaining text with a matching one from a given list. \fP"
.ti -1c
.RI "void \fBslotAboutToShow\fP ()"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP. \fP"
.ti -1c
.RI "void \fBslotCancelled\fP ()"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBmousePressEvent\fP (\fBQMouseEvent\fP *)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBmouseDoubleClickEvent\fP (\fBQMouseEvent\fP *)"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "virtual \fBQPopupMenu\fP * \fBcreatePopupMenu\fP ()"
.br
.RI "\fIRe-implemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBdropEvent\fP (\fBQDropEvent\fP *)"
.br
.RI "\fIRe-implemented to handle URI drops. \fP"
.ti -1c
.RI "virtual void \fBsetCompletedText\fP (const  \fBQString\fP &, bool)"
.br
.ti -1c
.RI "virtual void \fBcreate\fP (WId=0, bool initializeWindow=true, bool destroyOldWindow=true)"
.br
.RI "\fIReimplemented for internal reasons, the API is not affected. \fP"
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKComboBox\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
An enhanced \fBQLineEdit\fP widget for inputting text. An enhanced single line input widget. 

\fB Detail\fP
.PP
\fB This widget inherits from \fBQLineEdit\fP and implements the following additional functionalities: a completion object that provides both automatic and manual text completion as well as multiple match iteration features, configurable key-bindings to activate these features and a popup-menu item that can be used to allow the user to set text completion modes on the fly based on their preference.\fP
.PP
\fB To support these new features KLineEdit also emits a few more additional signals. These are: \fBcompletion\fP( const \fBQString\fP& ), \fBtextRotation( KeyBindingType )\fP, and \fBreturnPressed\fP( const \fBQString\fP& ). The completion signal can be connected to a slot that will assist the user in filling out the remaining text. The text rotation signal is intended to be used to iterate through the list of all possible matches whenever there is more than one match for the entered text. The \fC\fBreturnPressed( const QString& )\fP\fP signals are the same as \fBQLineEdit\fP's except it provides the current text in the widget as its argument whenever appropriate.\fP
.PP
\fB This widget by default creates a completion object when you invoke the \fBcompletionObject\fP( bool ) member function for the first time or use \fBsetCompletionObject\fP( KCompletion*, bool ) to assign your own completion object. Additionally, to make this widget more functional, KLineEdit will by default handle the text rotation and completion events internally when a completion object is created through either one of the methods mentioned above. If you do not need this functionality, simply use \fBKCompletionBase::setHandleSignals\fP( bool ) or set the boolean parameter in the above functions to FALSE.\fP
.PP
\fB The default key-bindings for completion and rotation is determined from the global settings in \fBKStdAccel\fP. These values, however, can be overriden locally by invoking \fBKCompletionBase::setKeyBinding\fP(). The values can easily be reverted back to the default setting, by simply calling \fBuseGlobalSettings\fP(). An alternate method would be to default individual key-bindings by usning \fBsetKeyBinding\fP() with the default second argument.\fP
.PP
\fB NOTE that if the \fCEchoMode\fP for this widget is set to something other than \fCQLineEdit::Normal\fP, the completion mode will always be defaulted to \fBKGlobalSettings::CompletionNone\fP. This is done purposefully to guard against protected entries such as passwords being cached in \fBKCompletion\fP's list. Hence, if the \fCEchoMode\fP is not QLineEdit::Normal, the completion mode is automatically disabled.\fP
.PP
\fB \fP
.PP
\fB\fB Usage\fP\fP
.PP
\fB\fB To enable the basic completion feature :\fP\fP
.PP
\fB\fB 
.PP
.nf

 KLineEdit *edit = new KLineEdit( this, 'mywidget' );
 \fBKCompletion\fP *comp = edit->\fBcompletionObject()\fP;
 // Connect to the return pressed signal - optional
 connect(edit,SIGNAL(\fBreturnPressed(const QString&)\fP),comp,SLOT(addItem(const QString&));
 
.PP
\fP\fP
.PP
\fB\fB To use a customized completion objects or your own completion object :\fP\fP
.PP
\fB\fB 
.PP
.nf

 KLineEdit *edit = new KLineEdit( this,'mywidget' );
 \fBKURLCompletion\fP *comp = new KURLCompletion();
 edit->setCompletionObject( comp );
 // Connect to the return pressed signal - optional
 connect(edit,SIGNAL(\fBreturnPressed(const QString&)\fP),comp,SLOT(addItem(const QString&));
 
.PP
\fP\fP
.PP
\fB\fB Note that you have to either delete the allocated completion object when you don't need it anymore, or call setAutoDeleteCompletionObject( true );\fP\fP
.PP
\fB\fB \fP\fP
.PP
\fB\fB\fB Miscellaneous function calls :\fP\fP\fP
.PP
\fB\fB\fB 
.PP
.nf

 // Tell the widget not to handle completion and
 // iteration internally.
 edit->setHandleSignals( false );
 // Set your own completion key for manual completions.
 edit->setKeyBinding( KCompletionBase::TextCompletion, Qt::End );
 // Hide the context (popup) menu
 edit->setContextMenuEnabled( false );
 // Temporarly disable signal emitions
 // (both completion & iteration signals)
 edit->disableSignals();
 // Default the key-bindings to system settings.
 edit->\fBuseGlobalKeyBindings()\fP;
 
.PP
\fP\fP\fP
.PP
\fB\fB\fB\fP\fP\fP
.PP
\fB\fB\fB
.PP
\fBAuthor:\fP
.RS 4
Dawit Alemayehu <adawit@kde.org> 
.RE
.PP
\fP\fP\fP
.PP
Definition at line 136 of file klineedit.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KLineEdit::KLineEdit (const \fBQString\fP & string, \fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructs a KLineEdit object with a default text, a parent, and a name. \fBParameters:\fP
.RS 4
\fIstring\fP Text to be shown in the edit widget. 
.br
\fIparent\fP The parent object of this widget. 
.br
\fIname\fP the name of this widget 
.RE
.PP
Definition at line 71 of file klineedit.cpp.
.PP
References KStdAccel::name().
.SS "KLineEdit::KLineEdit (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a KLineEdit object with a parent and a name. \fBParameters:\fP
.RS 4
\fIstring\fP Text to be shown in the edit widget. 
.br
\fIparent\fP The parent object of this widget. 
.br
\fIname\fP The name of this widget. 
.RE
.PP
Definition at line 77 of file klineedit.cpp.
.PP
References KStdAccel::name().
.SS "KLineEdit::~\fBKLineEdit\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 83 of file klineedit.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KLineEdit::setURL (const \fBKURL\fP & url)"
.PP
Sets \fCurl\fP into the lineedit. It uses \fBKURL::prettyURL\fP() so that the url is properly decoded for displaying. Definition at line 738 of file klineedit.cpp.
.PP
References KURL::prettyURL(), and QLineEdit::setText().
.SS "void KLineEdit::cursorAtEnd ()\fC [inline]\fP"
.PP
Puts the text cursor at the end of the string. This method is deprecated. Use \fBQLineEdit::end\fP() instead.
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP \fBQLineEdit::end\fP() Definition at line 185 of file klineedit.h.
.PP
References QLineEdit::end().
.SS "void KLineEdit::setCompletionMode (\fBKGlobalSettings::Completion\fP mode)\fC [virtual]\fP"
.PP
Re-implemented from \fBKCompletionBase\fP for internal reasons. This function is re-implemented in order to make sure that the EchoMode is acceptable before we set the completion mode.
.PP
See \fBKCompletionBase::setCompletionMode\fP Reimplemented from \fBKCompletionBase\fP.
.PP
Definition at line 100 of file klineedit.cpp.
.PP
References KGlobalSettings::Completion, KCompletionBase::completionMode(), KGlobalSettings::CompletionNone, KGlobalSettings::CompletionPopup, QLineEdit::echoMode(), and KCompletionBase::setCompletionMode().
.SS "virtual void KLineEdit::setContextMenuEnabled (bool showMenu)\fC [inline, virtual]\fP"
.PP
Enables/disables the popup (context) menu. Note that when this function is invoked with its argument set to \fCtrue\fP, then both the context menu and the completion menu item are enabled. If you do not want to the completion item to be visible simply invoke \fBhideModechanger\fP() right after calling this method. Also by default, the context menu is automatically created if this widget is editable. Thus you need to call this function with the argument set to false if you do not want this behaviour.
.PP
\fBParameters:\fP
.RS 4
\fIshowMenu\fP If \fCtrue\fP, show the context menu. 
.RE
.PP
Definition at line 211 of file klineedit.h.
.SS "bool KLineEdit::isContextMenuEnabled () const\fC [inline]\fP"
.PP
Returns \fCtrue\fP when the context menu is enabled. Definition at line 216 of file klineedit.h.
.SS "void KLineEdit::setURLDropsEnabled (bool enable)"
.PP
Enables/Disables handling of URL drops. If enabled and the user drops an URL, the decoded URL will be inserted. Otherwise the default behaviour of \fBQLineEdit\fP is used, which inserts the encoded URL.
.PP
\fBParameters:\fP
.RS 4
\fIenable\fP If \fCtrue\fP, insert decoded URLs 
.RE
.PP
Definition at line 718 of file klineedit.cpp.
.SS "bool KLineEdit::isURLDropsEnabled () const"
.PP
Returns \fCtrue\fP when decoded URL drops are enabled. Definition at line 723 of file klineedit.cpp.
.SS "void KLineEdit::setTrapReturnKey (bool trap)"
.PP
By default, KLineEdit recognizes \fCKey_Return\fP and \fCKey_Enter\fP and emits the \fBreturnPressed\fP() signals, but it also lets the event pass, for example causing a dialog's default-button to be called. Call this method with \fCtrap\fP = \fCtrue\fP to make \fCKLineEdit\fP stop these events. The signals will still be emitted of course.
.PP
\fBSee also:\fP
.RS 4
\fBtrapReturnKey()\fP 
.RE
.PP
Definition at line 728 of file klineedit.cpp.
.SS "bool KLineEdit::trapReturnKey () const"
.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP if keyevents of \fCKey_Return\fP or \fCKey_Enter\fP will be stopped or if they will be propagated.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetTrapReturnKey\fP () 
.RE
.PP
Definition at line 733 of file klineedit.cpp.
.SS "bool KLineEdit::eventFilter (\fBQObject\fP *, \fBQEvent\fP *)\fC [virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected. Definition at line 676 of file klineedit.cpp.
.PP
References QKeyEvent::accept(), KCursor::autoHideEventFilter(), QLineEdit::displayText(), QKeyEvent::key(), QLineEdit::returnPressed(), QKeyEvent::state(), and QEvent::type().
.SS "\fBKCompletionBox\fP * KLineEdit::completionBox (bool create = true)"
.PP
\fBReturns:\fP
.RS 4
the completion-box, that is used in completion mode \fBKGlobalSettings::CompletionPopup\fP. This method will create a completion-box if none is there, yet.
.RE
.PP
\fBParameters:\fP
.RS 4
\fIcreate\fP Set this to false if you don't want the box to be created i.e. to test if it is available. 
.RE
.PP
Definition at line 835 of file klineedit.cpp.
.PP
References KStdAction::create().
.SS "void KLineEdit::setCompletionObject (\fBKCompletion\fP *, bool hsig = true)\fC [virtual]\fP"
.PP
Reimplemented for internal reasons, the API is not affected. Reimplemented from \fBKCompletionBase\fP.
.PP
Definition at line 843 of file klineedit.cpp.
.PP
References KCompletionBase::compObj(), KCompletionBase::handleSignals(), setCompletedItems(), and KCompletionBase::setCompletionObject().
.SS "void KLineEdit::copy () const\fC [virtual]\fP"
.PP
Reimplemented for internal reasons, the API is not affected. Reimplemented from \fBQLineEdit\fP.
.PP
Definition at line 226 of file klineedit.cpp.
.PP
References QApplication::clipboard(), QLineEdit::copy(), KStdAccel::end(), QLineEdit::end(), QString::mid(), and QLineEdit::selectionChanged().
.PP
Referenced by keyPressEvent().
.SS "void KLineEdit::completionBoxActivated (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted whenever the completion box is activated. \fBSince:\fP
.RS 4
3.1 
.RE
.PP

.SS "void KLineEdit::returnPressed (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the user presses the return key. The argument is the current text. Note that this signal is \fInot\fP emitted if the widget's \fCEchoMode\fP is set to QLineEdit::EchoMode. 
.SS "void KLineEdit::completion (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the completion key is pressed. Please note that this signal is \fInot\fP emitted if the completion mode is set to \fCCompletionNone\fP or \fCEchoMode\fP is \fInormal\fP. Referenced by keyPressEvent().
.SS "void KLineEdit::substringCompletion (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the shortcut for substring completion is pressed. Referenced by keyPressEvent().
.SS "void KLineEdit::textRotation (\fBKCompletionBase::KeyBindingType\fP)\fC [signal]\fP"
.PP
Emitted when the text rotation key-bindings are pressed. The argument indicates which key-binding was pressed. In KLineEdit's case this can be either one of two values: \fBPrevCompletionMatch\fP or \fBNextCompletionMatch\fP. See \fBKCompletionBase::setKeyBinding\fP for details.
.PP
Note that this signal is \fInot\fP emitted if the completion mode is set to \fC\fBKGlobalSettings::CompletionNone\fP\fP or \fC\fBechoMode()\fP\fP is \fInot\fP normal. Referenced by keyPressEvent().
.SS "void KLineEdit::completionModeChanged (\fBKGlobalSettings::Completion\fP)\fC [signal]\fP"
.PP
Emitted when the user changed the completion mode by using the popupmenu. 
.SS "void KLineEdit::aboutToShowContextMenu (\fBQPopupMenu\fP *)\fC [signal]\fP"
.PP
Emitted before the context menu is displayed. The signal allows you to add your own entries into the the context menu that is created on demand.
.PP
NOTE: Do not store the pointer to the \fBQPopupMenu\fP provided through since it is created and deleted on demand.
.PP
\fBParameters:\fP
.RS 4
\fIthe\fP context menu about to be displayed 
.RE
.PP
Referenced by createPopupMenu().
.SS "void KLineEdit::setReadOnly (bool)\fC [virtual, slot]\fP"
.PP
Re-implemented for internal reasons. API not changed. Reimplemented from \fBQLineEdit\fP.
.PP
Definition at line 183 of file klineedit.cpp.
.PP
References QLineEdit::isReadOnly(), QLineEdit::setReadOnly(), and QLineEdit::setText().
.SS "void KLineEdit::rotateText (\fBKCompletionBase::KeyBindingType\fP)\fC [slot]\fP"
.PP
Iterates through all possible matches of the completed text or the history list. This function simply iterates over all possible matches in case multimple matches are found as a result of a text completion request. It will have no effect if only a single match is found.
.PP
\fBParameters:\fP
.RS 4
\fItype\fP The key-binding invoked. 
.RE
.PP
Definition at line 137 of file klineedit.cpp.
.PP
References KCompletionBase::compObj(), QLineEdit::displayText(), QLineEdit::hasSelectedText(), QString::isNull(), KCompletionBase::NextCompletionMatch, KCompletion::nextMatch(), KCompletionBase::PrevCompletionMatch, KCompletion::previousMatch(), and setCompletedText().
.PP
Referenced by keyPressEvent().
.SS "void KLineEdit::setCompletedText (const \fBQString\fP &)\fC [virtual, slot]\fP"
.PP
See \fBKCompletionBase::setCompletedText\fP. Implements \fBKCompletionBase\fP.
.PP
Definition at line 128 of file klineedit.cpp.
.PP
References KGlobalSettings::Completion, KGlobalSettings::CompletionAuto, KGlobalSettings::CompletionMan, KCompletionBase::completionMode(), and KGlobalSettings::CompletionPopup.
.PP
Referenced by makeCompletion(), and rotateText().
.SS "void KLineEdit::setCompletedItems (const \fBQStringList\fP & items)\fC [virtual, slot]\fP"
.PP
Sets \fCitems\fP into the completion-box if \fBcompletionMode\fP() is CompletionPopup. The popup will be shown immediately. Implements \fBKCompletionBase\fP.
.PP
Definition at line 814 of file klineedit.cpp.
.PP
References QString::isEmpty(), and QLineEdit::text().
.PP
Referenced by keyPressEvent(), makeCompletion(), and setCompletionObject().
.SS "void KLineEdit::clear ()\fC [virtual, slot]\fP"
.PP
Reimplemented to workaround a buggy \fBQLineEdit::clear()\fP (changing the clipboard to the text we just had in the lineedit). Reimplemented from \fBQLineEdit\fP.
.PP
Definition at line 864 of file klineedit.cpp.
.PP
References QLineEdit::setText().
.PP
Referenced by KEditListBox::clear().
.SS "void KLineEdit::setSqueezedText (const \fBQString\fP & text)\fC [slot]\fP"
.PP
Squeezes \fCtext\fP into the line edit. This can only be used with read-only line-edits. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 207 of file klineedit.cpp.
.PP
References QLineEdit::isReadOnly(), resizeEvent(), and QLineEdit::setText().
.SS "void KLineEdit::makeCompletion (const \fBQString\fP &)\fC [protected, virtual, slot]\fP"
.PP
Completes the remaining text with a matching one from a given list. Definition at line 152 of file klineedit.cpp.
.PP
References KCompletion::allMatches(), KGlobalSettings::Completion, KCompletionBase::completionMode(), KGlobalSettings::CompletionPopup, KCompletionBase::compObj(), QString::isNull(), KCompletion::makeCompletion(), setCompletedItems(), and setCompletedText().
.PP
Referenced by keyPressEvent().
.SS "void KLineEdit::slotAboutToShow ()\fC [inline, protected, slot]\fP"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP. Will be removed in the next major release! Definition at line 397 of file klineedit.h.
.SS "void KLineEdit::slotCancelled ()\fC [inline, protected, slot]\fP"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP. Will be removed in the next major release! Definition at line 402 of file klineedit.h.
.SS "void KLineEdit::resizeEvent (\fBQResizeEvent\fP *)\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected.
.PP
See \fBQLineEdit::resizeEvent\fP(). Definition at line 257 of file klineedit.cpp.
.PP
References QToolTip::add(), QToolTip::hide(), QString::left(), QString::length(), QToolTip::remove(), QString::right(), QLineEdit::setCursorPosition(), QLineEdit::setText(), and QFontMetrics::width().
.PP
Referenced by setSqueezedText().
.SS "void KLineEdit::keyPressEvent (\fBQKeyEvent\fP *)\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected.
.PP
See \fBQLineEdit::keyPressEvent\fP(). Reimplemented from \fBQLineEdit\fP.
.PP
Reimplemented in \fBKListViewLineEdit\fP, and \fBKRestrictedLine\fP.
.PP
Definition at line 320 of file klineedit.cpp.
.PP
References QKeyEvent::accept(), QApplication::clipboard(), completion(), KGlobalSettings::Completion, KGlobalSettings::CompletionAuto, KGlobalSettings::CompletionMan, KCompletionBase::completionMode(), KGlobalSettings::CompletionNone, KGlobalSettings::CompletionPopup, KGlobalSettings::CompletionShell, KCompletionBase::compObj(), copy(), KStdAccel::copy(), QLineEdit::cursorPosition(), QLineEdit::cursorWordBackward(), QLineEdit::cursorWordForward(), KStdAccel::cut(), QLineEdit::cut(), QLineEdit::del(), KStdAccel::deleteWordBack(), KStdAccel::deleteWordForward(), QLineEdit::deselect(), QLineEdit::echoMode(), KCompletionBase::emitSignals(), KCompletionBase::getKeyBindings(), KCompletionBase::handleSignals(), QLineEdit::hasSelectedText(), QLineEdit::insert(), QString::isEmpty(), QKeyEvent::key(), KStdAccel::key(), KCompletionBase::KeyBindingMap, QLineEdit::keyPressEvent(), QString::length(), makeCompletion(), KCompletionBase::NextCompletionMatch, QLineEdit::paste(), KStdAccel::paste(), KCompletionBase::PrevCompletionMatch, QLineEdit::redo(), KStdAccel::redo(), rotateText(), setCompletedItems(), KStdAccel::shortcut(), QKeyEvent::state(), substringCompletion(), KCompletionBase::SubstringCompletion, QLineEdit::text(), QKeyEvent::text(), KCompletionBase::TextCompletion, textRotation(), QLineEdit::undo(), KStdAccel::undo(), and QString::unicode().
.PP
Referenced by KListViewLineEdit::keyPressEvent().
.SS "void KLineEdit::mousePressEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected.
.PP
See \fBQLineEdit::mousePressEvent\fP(). Definition at line 546 of file klineedit.cpp.
.PP
References QMouseEvent::button(), and QLineEdit::selectAll().
.SS "void KLineEdit::mouseDoubleClickEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected.
.PP
See \fBQWidget::mouseDoubleClickEvent\fP(). Definition at line 535 of file klineedit.cpp.
.PP
References QMouseEvent::button(), QApplication::doubleClickInterval(), and QTimer::singleShot().
.SS "\fBQPopupMenu\fP * KLineEdit::createPopupMenu ()\fC [protected, virtual]\fP"
.PP
Re-implemented for internal reasons. API not affected.
.PP
See \fBQLineEdit::createPopupMenu\fP(). Reimplemented from \fBQLineEdit\fP.
.PP
Definition at line 561 of file klineedit.cpp.
.PP
References aboutToShowContextMenu(), KGlobalSettings::Completion, KGlobalSettings::CompletionAuto, KGlobalSettings::CompletionMan, KGlobalSettings::completionMode(), KCompletionBase::completionMode(), KGlobalSettings::CompletionNone, KGlobalSettings::CompletionPopup, KGlobalSettings::CompletionShell, KCompletionBase::compObj(), QLineEdit::createPopupMenu(), QPopupMenu::insertItem(), QPopupMenu::insertSeparator(), QLineEdit::isReadOnly(), QPopupMenu::setAccel(), and QPopupMenu::setItemChecked().
.SS "void KLineEdit::dropEvent (\fBQDropEvent\fP *)\fC [protected, virtual]\fP"
.PP
Re-implemented to handle URI drops. See \fBQLineEdit::dropEvent\fP(). Definition at line 653 of file klineedit.cpp.
.PP
References QDropEvent::accept(), QValueList< KURL >::begin(), QValueList< KURL >::ConstIterator(), KURLDrag::decode(), QValueList< KURL >::end(), QString::isEmpty(), QString::length(), and QLineEdit::text().
.SS "void KLineEdit::create (WId = 0, bool initializeWindow = true, bool destroyOldWindow = true)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons, the API is not affected. Definition at line 858 of file klineedit.cpp.
.PP
References KCursor::setAutoHideCursor().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
