\section{KLine\-Edit Class Reference}
\label{classKLineEdit}\index{KLineEdit@{KLineEdit}}
An enhanced {\bf QLine\-Edit} widget for inputting text.  


{\tt \#include $<$klineedit.h$>$}

Inheritance diagram for KLine\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=248pt]{classKLineEdit__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KLine\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=105pt]{classKLineEdit__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf set\-Read\-Only} (bool)
\item 
void {\bf rotate\-Text} ({\bf KCompletion\-Base::Key\-Binding\-Type} type)
\item 
virtual void {\bf set\-Completed\-Text} (const {\bf QString} \&)
\item 
void {\bf set\-Completed\-Items} (const {\bf QString\-List} \&items)
\item 
void {\bf set\-Completed\-Items} (const {\bf QString\-List} \&items, bool auto\-Suggest)
\item 
virtual void {\bf clear} ()
\item 
void {\bf set\-Squeezed\-Text} (const {\bf QString} \&{\bf text})
\item 
virtual void {\bf set\-Text} (const {\bf QString} \&)
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf completion\-Box\-Activated} (const {\bf QString} \&)
\item 
void {\bf return\-Pressed} (const {\bf QString} \&)
\item 
void {\bf completion} (const {\bf QString} \&)
\item 
void {\bf substring\-Completion} (const {\bf QString} \&)
\item 
void {\bf text\-Rotation} ({\bf KCompletion\-Base::Key\-Binding\-Type})
\item 
void {\bf completion\-Mode\-Changed} ({\bf KGlobal\-Settings::Completion})
\item 
void {\bf about\-To\-Show\-Context\-Menu} ({\bf QPopup\-Menu} $\ast$p)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KLine\-Edit} (const {\bf QString} \&string, {\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
{\bf KLine\-Edit} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KLine\-Edit} ()
\item 
void {\bf set\-URL} (const {\bf KURL} \&url)
\item 
void {\bf cursor\-At\-End} ()
\item 
virtual void {\bf set\-Completion\-Mode} ({\bf KGlobal\-Settings::Completion} mode)
\item 
virtual void {\bf set\-Context\-Menu\-Enabled} (bool show\-Menu)
\item 
bool {\bf is\-Context\-Menu\-Enabled} () const 
\item 
void {\bf set\-URLDrops\-Enabled} (bool enable)
\item 
bool {\bf is\-URLDrops\-Enabled} () const 
\item 
void {\bf set\-Trap\-Return\-Key} (bool trap)
\item 
bool {\bf trap\-Return\-Key} () const 
\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)
\item 
{\bf KCompletion\-Box} $\ast$ {\bf completion\-Box} (bool create=true)
\item 
virtual void {\bf set\-Completion\-Object} ({\bf KCompletion} $\ast$, bool hsig=true)
\item 
virtual void {\bf copy} () const 
\item 
void {\bf set\-Enable\-Squeezed\-Text} (bool enable)
\item 
bool {\bf is\-Squeezed\-Text\-Enabled} () const 
\item 
{\bf QString} {\bf original\-Text} () const 
\item 
void {\bf set\-Completion\-Box} ({\bf KCompletion\-Box} $\ast$box)
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf make\-Completion} (const {\bf QString} \&)
\item 
void {\bf slot\-About\-To\-Show} ()
\item 
void {\bf slot\-Cancelled} ()
\item 
void {\bf user\-Cancelled} (const {\bf QString} \&cancel\-Text)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)
\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$)
\item 
virtual void {\bf mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
virtual void {\bf mouse\-Double\-Click\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
virtual void {\bf context\-Menu\-Event} ({\bf QContext\-Menu\-Event} $\ast$)
\item 
virtual {\bf QPopup\-Menu} $\ast$ {\bf create\-Popup\-Menu} ()
\item 
virtual void {\bf drop\-Event} ({\bf QDrop\-Event} $\ast$)
\item 
virtual void {\bf set\-Completed\-Text} (const {\bf QString} \&, bool)\label{classKLineEdit_b7}

\item 
void {\bf set\-User\-Selection} (bool user\-Selection)
\item 
virtual void {\bf create} (WId=0, bool initialize\-Window=true, bool destroy\-Old\-Window=true)
\item 
virtual void {\bf focus\-In\-Event} ({\bf QFocus\-Event} $\ast$)
\item 
bool {\bf auto\-Suggest} () const 
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKLineEdit_b12}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
bool {\bf context\-Menu\-Enabled}\label{classKLineEdit_00}

\item 
bool {\bf url\-Drops\-Enabled}\label{classKLineEdit_01}

\item 
bool {\bf trap\-Enter\-Key\-Event}\label{classKLineEdit_02}

\item 
bool {\bf enable\-Squeezed\-Text}\label{classKLineEdit_03}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KCombo\-Box}\label{classKLineEdit_n0}

\end{CompactItemize}


\subsection{Detailed Description}
An enhanced {\bf QLine\-Edit} widget for inputting text. 

{\bf Detail} \par


This widget inherits from {\bf QLine\-Edit} 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.

To support these new features KLine\-Edit also emits a few more additional signals. These are: {\bf completion( const QString\& )}{\rm (p.\,\pageref{classKLineEdit_l2})}, {\bf text\-Rotation( Key\-Binding\-Type )}{\rm (p.\,\pageref{classKLineEdit_l4})}, and {\bf return\-Pressed( const QString\& )}{\rm (p.\,\pageref{classKLineEdit_l1})}. 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 {\tt {\bf return\-Pressed( const QString\& )}{\rm (p.\,\pageref{classKLineEdit_l1})}} signals are the same as QLine\-Edit's except it provides the current text in the widget as its argument whenever appropriate.

This widget by default creates a completion object when you invoke the {\bf completion\-Object( bool )} member function for the first time or use {\bf set\-Completion\-Object( KCompletion$\ast$, bool )}{\rm (p.\,\pageref{classKLineEdit_a14})} to assign your own completion object. Additionally, to make this widget more functional, KLine\-Edit 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 {\bf KCompletion\-Base::set\-Handle\-Signals( bool )} or set the boolean parameter in the above functions to false.

The default key-bindings for completion and rotation is determined from the global settings in {\bf KStd\-Accel}. These values, however, can be overridden locally by invoking {\bf KCompletion\-Base::set\-Key\-Binding()}. The values can easily be reverted back to the default setting, by simply calling use\-Global\-Settings(). An alternate method would be to default individual key-bindings by using {\bf set\-Key\-Binding()} with the default second argument.

If {\tt Echo\-Mode} for this widget is set to something other than {\tt QLine\-Edit::Normal}, the completion mode will always be defaulted to {\bf KGlobal\-Settings::Completion\-None}. This is done purposefully to guard against protected entries such as passwords being cached in KCompletion's list. Hence, if the {\tt Echo\-Mode} is not QLine\-Edit::Normal, the completion mode is automatically disabled.

A read-only KLine\-Edit will have the same background color as a disabled KLine\-Edit, but its foreground color will be the one used for the read-write mode. This differs from QLine\-Edit's implementation and is done to give visual distinction between the three different modes: disabled, read-only, and read-write.

{\bf Usage} \par


To enable the basic completion feature :



\footnotesize\begin{verbatim} KLineEdit *edit = new KLineEdit( this, "mywidget" );
 KCompletion *comp = edit->completionObject();
 // Connect to the return pressed signal - optional
 connect(edit,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&)));
\end{verbatim}
\normalsize


To use a customized completion objects or your own completion object :



\footnotesize\begin{verbatim} KLineEdit *edit = new KLineEdit( this,"mywidget" );
 KURLCompletion *comp = new KURLCompletion();
 edit->setCompletionObject( comp );
 // Connect to the return pressed signal - optional
 connect(edit,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&)));
\end{verbatim}
\normalsize


Note if you specify your own completion object you have to either delete it when you don't need it anymore, or you can tell KLine\-Edit to delete it for you: 

\footnotesize\begin{verbatim} edit->setAutoDeleteCompletionObject( true );
\end{verbatim}
\normalsize


{\bf Miscellaneous function calls :}\par




\footnotesize\begin{verbatim} // Tell the widget to not handle completion and iteration automatically.
 edit->setHandleSignals( false );

 // Set your own key-bindings for a text completion mode.
 edit->setKeyBinding( KCompletionBase::TextCompletion, Qt::End );

 // Hide the context (popup) menu
 edit->setContextMenuEnabled( false );

 // Temporarily disable signal (both completion & iteration) emitions
 edit->disableSignals();

 // Default the key-bindings back to the default system settings.
 edit->useGlobalKeyBindings();
\end{verbatim}
\normalsize


\begin{Desc}
\item[Author:]Dawit Alemayehu $<${\tt adawit@kde.org}$>$ \end{Desc}




Definition at line 145 of file klineedit.h.

\subsection{Constructor \& Destructor Documentation}
\index{KLineEdit@{KLine\-Edit}!KLineEdit@{KLineEdit}}
\index{KLineEdit@{KLineEdit}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLine\-Edit::KLine\-Edit (const {\bf QString} \& {\em string}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKLineEdit_a0}


Constructs a KLine\-Edit object with a default text, a parent, and a name. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]Text to be shown in the edit widget. \item[{\em parent}]The parent object of this widget. \item[{\em name}]the name of this widget \end{description}
\end{Desc}


Definition at line 102 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!KLineEdit@{KLineEdit}}
\index{KLineEdit@{KLineEdit}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLine\-Edit::KLine\-Edit ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKLineEdit_a1}


Constructs a KLine\-Edit object with a parent and a name. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]The parent object of this widget. \item[{\em name}]The name of this widget. \end{description}
\end{Desc}


Definition at line 108 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!~KLineEdit@{$\sim$KLineEdit}}
\index{~KLineEdit@{$\sim$KLineEdit}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KLine\-Edit::$\sim${\bf KLine\-Edit} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKLineEdit_a2}


Destructor. 



Definition at line 114 of file klineedit.cpp.

\subsection{Member Function Documentation}
\index{KLineEdit@{KLine\-Edit}!setURL@{setURL}}
\index{setURL@{setURL}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-URL (const {\bf KURL} \& {\em url})}\label{classKLineEdit_a3}


Sets {\tt url} into the lineedit. 

It uses {\bf KURL::pretty\-URL()} so that the url is properly decoded for displaying. 

Definition at line 1036 of file klineedit.cpp.

References set\-Text().\index{KLineEdit@{KLine\-Edit}!cursorAtEnd@{cursorAtEnd}}
\index{cursorAtEnd@{cursorAtEnd}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::cursor\-At\-End ()\hspace{0.3cm}{\tt  [inline]}}\label{classKLineEdit_a4}


Puts the text cursor at the end of the string. 

This method is deprecated. Use {\bf QLine\-Edit::end()} instead.

\begin{Desc}
\item[{\bf Deprecated}]{\bf QLine\-Edit::end()} \end{Desc}


Definition at line 195 of file klineedit.h.

References QLine\-Edit::end().\index{KLineEdit@{KLine\-Edit}!setCompletionMode@{setCompletionMode}}
\index{setCompletionMode@{setCompletionMode}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Completion\-Mode ({\bf KGlobal\-Settings::Completion} {\em mode})\hspace{0.3cm}{\tt  [virtual]}}\label{classKLineEdit_a5}


Re-implemented from {\bf KCompletion\-Base} for internal reasons. 

This function is re-implemented in order to make sure that the Echo\-Mode is acceptable before we set the completion mode.

See {\bf KCompletion\-Base::set\-Completion\-Mode} 

Reimplemented from {\bf KCompletion\-Base}.

Definition at line 144 of file klineedit.cpp.

References KCompletion\-Base::completion\-Mode(), QLine\-Edit::echo\-Mode(), and KCompletion\-Base::set\-Completion\-Mode().\index{KLineEdit@{KLine\-Edit}!setContextMenuEnabled@{setContextMenuEnabled}}
\index{setContextMenuEnabled@{setContextMenuEnabled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KLine\-Edit::set\-Context\-Menu\-Enabled (bool {\em show\-Menu})\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKLineEdit_a6}


Enables/disables the popup (context) menu. 

Note that when this function is invoked with its argument set to {\tt true}, 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 hide\-Modechanger() 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 behavior.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em show\-Menu}]If {\tt true}, show the context menu. \end{description}
\end{Desc}


Definition at line 221 of file klineedit.h.\index{KLineEdit@{KLine\-Edit}!isContextMenuEnabled@{isContextMenuEnabled}}
\index{isContextMenuEnabled@{isContextMenuEnabled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLine\-Edit::is\-Context\-Menu\-Enabled () const\hspace{0.3cm}{\tt  [inline]}}\label{classKLineEdit_a7}


Returns {\tt true} when the context menu is enabled. 



Definition at line 226 of file klineedit.h.\index{KLineEdit@{KLine\-Edit}!setURLDropsEnabled@{setURLDropsEnabled}}
\index{setURLDropsEnabled@{setURLDropsEnabled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-URLDrops\-Enabled (bool {\em enable})}\label{classKLineEdit_a8}


Enables/Disables handling of URL drops. 

If enabled and the user drops an URL, the decoded URL will be inserted. Otherwise the default behavior of {\bf QLine\-Edit} is used, which inserts the encoded URL.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em enable}]If {\tt true}, insert decoded URLs \end{description}
\end{Desc}


Definition at line 1016 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!isURLDropsEnabled@{isURLDropsEnabled}}
\index{isURLDropsEnabled@{isURLDropsEnabled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLine\-Edit::is\-URLDrops\-Enabled () const}\label{classKLineEdit_a9}


Returns {\tt true} when decoded URL drops are enabled. 



Definition at line 1021 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!setTrapReturnKey@{setTrapReturnKey}}
\index{setTrapReturnKey@{setTrapReturnKey}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Trap\-Return\-Key (bool {\em trap})}\label{classKLineEdit_a10}


By default, KLine\-Edit recognizes {\tt Key\_\-Return} and {\tt Key\_\-Enter} and emits the {\bf return\-Pressed()} signals, but it also lets the event pass, for example causing a dialog's default-button to be called. 

Call this method with {\tt trap} = {\tt true} to make {\tt KLine\-Edit} stop these events. The signals will still be emitted of course.

\begin{Desc}
\item[See also:]{\bf trap\-Return\-Key()}{\rm (p.\,\pageref{classKLineEdit_a11})} \end{Desc}


Definition at line 1026 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!trapReturnKey@{trapReturnKey}}
\index{trapReturnKey@{trapReturnKey}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLine\-Edit::trap\-Return\-Key () const}\label{classKLineEdit_a11}


\begin{Desc}
\item[Returns:]{\tt true} if keyevents of {\tt Key\_\-Return} or {\tt Key\_\-Enter} will be stopped or if they will be propagated.\end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Trap\-Return\-Key}{\rm (p.\,\pageref{classKLineEdit_a10})} () \end{Desc}


Definition at line 1031 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!eventFilter@{eventFilter}}
\index{eventFilter@{eventFilter}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLine\-Edit::event\-Filter ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)\hspace{0.3cm}{\tt  [virtual]}}\label{classKLineEdit_a12}


Re-implemented for internal reasons. 

API not affected. 

Definition at line 965 of file klineedit.cpp.

References QKey\-Event::accept(), KCursor::auto\-Hide\-Event\-Filter(), QLine\-Edit::deselect(), QLine\-Edit::display\-Text(), QKey\-Event::key(), QLine\-Edit::return\-Pressed(), QLine\-Edit::set\-Cursor\-Position(), QKey\-Event::state(), and QLine\-Edit::text().\index{KLineEdit@{KLine\-Edit}!completionBox@{completionBox}}
\index{completionBox@{completionBox}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KCompletion\-Box} $\ast$ KLine\-Edit::completion\-Box (bool {\em create} = {\tt true})}\label{classKLineEdit_a13}


\begin{Desc}
\item[Returns:]the completion-box, that is used in completion mode {\bf KGlobal\-Settings::Completion\-Popup}. This method will create a completion-box if none is there, yet.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em create}]Set this to false if you don't want the box to be created i.e. to test if it is available. \end{description}
\end{Desc}


Definition at line 1218 of file klineedit.cpp.

References set\-Completion\-Box().

Referenced by set\-Completed\-Items().\index{KLineEdit@{KLine\-Edit}!setCompletionObject@{setCompletionObject}}
\index{setCompletionObject@{setCompletionObject}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Completion\-Object ({\bf KCompletion} $\ast$, bool {\em hsig} = {\tt true})\hspace{0.3cm}{\tt  [virtual]}}\label{classKLineEdit_a14}


Reimplemented for internal reasons, the API is not affected. 



Reimplemented from {\bf KCompletion\-Base}.

Definition at line 1226 of file klineedit.cpp.

References KCompletion\-Base::comp\-Obj(), KCompletion\-Base::handle\-Signals(), set\-Completed\-Items(), and KCompletion\-Base::set\-Completion\-Object().\index{KLineEdit@{KLine\-Edit}!copy@{copy}}
\index{copy@{copy}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::copy () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKLineEdit_a15}


Reimplemented for internal reasons, the API is not affected. 



Reimplemented from {\bf QLine\-Edit}.

Definition at line 388 of file klineedit.cpp.

References QApplication::clipboard(), QLine\-Edit::copy(), QString::mid(), and QLine\-Edit::selection\-Changed().

Referenced by key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!setEnableSqueezedText@{setEnableSqueezedText}}
\index{setEnableSqueezedText@{setEnableSqueezedText}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Enable\-Squeezed\-Text (bool {\em enable})}\label{classKLineEdit_a16}


Enable text squeezing whenever the supplied text is too long. 

Only works for \char`\"{}read-only\char`\"{} mode.

Note that once text squeezing is enabled, {\bf QLine\-Edit::text()} and {\bf QLine\-Edit::display\-Text()} return the squeezed text. If you want the original text, use {\bf original\-Text}{\rm (p.\,\pageref{classKLineEdit_a18})}.

\begin{Desc}
\item[See also:]{\bf QLine\-Edit} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 294 of file klineedit.cpp.

Referenced by set\-Squeezed\-Text().\index{KLineEdit@{KLine\-Edit}!isSqueezedTextEnabled@{isSqueezedTextEnabled}}
\index{isSqueezedTextEnabled@{isSqueezedTextEnabled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLine\-Edit::is\-Squeezed\-Text\-Enabled () const}\label{classKLineEdit_a17}


Returns true if text squeezing is enabled. 

This is only valid when the widget is in read-only mode.

\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 299 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!originalText@{originalText}}
\index{originalText@{originalText}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KLine\-Edit::original\-Text () const}\label{classKLineEdit_a18}


Returns the original text if text squeezing is enabled. 

If the widget is not in \char`\"{}read-only\char`\"{} mode, this function returns the same thing as {\bf QLine\-Edit::text()}.

\begin{Desc}
\item[See also:]{\bf QLine\-Edit} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 1287 of file klineedit.cpp.

References QLine\-Edit::text().\index{KLineEdit@{KLine\-Edit}!setCompletionBox@{setCompletionBox}}
\index{setCompletionBox@{setCompletionBox}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Completion\-Box ({\bf KCompletion\-Box} $\ast$ {\em box})}\label{classKLineEdit_a19}


Set the completion-box to be used in completion mode {\bf KGlobal\-Settings::Completion\-Popup}. 

This will do nothing if a completion-box already exists.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em box}]The {\bf KCompletion\-Box}{\rm (p.\,\pageref{classKCompletionBox})} to set \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 1041 of file klineedit.cpp.

References completion\-Box\-Activated(), KCompletion\-Base::handle\-Signals(), and user\-Cancelled().

Referenced by completion\-Box().\index{KLineEdit@{KLine\-Edit}!completionBoxActivated@{completionBoxActivated}}
\index{completionBoxActivated@{completionBoxActivated}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::completion\-Box\-Activated (const {\bf QString} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l0}


Emitted whenever the completion box is activated. 

\begin{Desc}
\item[Since:]3.1 \end{Desc}


Referenced by set\-Completion\-Box().\index{KLineEdit@{KLine\-Edit}!returnPressed@{returnPressed}}
\index{returnPressed@{returnPressed}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::return\-Pressed (const {\bf QString} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l1}


Emitted when the user presses the return key. 

The argument is the current text. Note that this signal is {\em not\/} emitted if the widget's {\tt Echo\-Mode} is set to QLine\-Edit::Echo\-Mode. \index{KLineEdit@{KLine\-Edit}!completion@{completion}}
\index{completion@{completion}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::completion (const {\bf QString} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l2}


Emitted when the completion key is pressed. 

Please note that this signal is {\em not\/} emitted if the completion mode is set to {\tt Completion\-None} or {\tt Echo\-Mode} is {\em normal\/}. 

Referenced by key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!substringCompletion@{substringCompletion}}
\index{substringCompletion@{substringCompletion}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::substring\-Completion (const {\bf QString} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l3}


Emitted when the shortcut for substring completion is pressed. 



Referenced by key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!textRotation@{textRotation}}
\index{textRotation@{textRotation}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::text\-Rotation ({\bf KCompletion\-Base::Key\-Binding\-Type})\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l4}


Emitted when the text rotation key-bindings are pressed. 

The argument indicates which key-binding was pressed. In KLine\-Edit's case this can be either one of two values: Prev\-Completion\-Match or Next\-Completion\-Match. See {\bf KCompletion\-Base::set\-Key\-Binding} for details.

Note that this signal is {\em not\/} emitted if the completion mode is set to {\tt {\bf KGlobal\-Settings::Completion\-None}} or {\tt {\bf echo\-Mode()}} is {\em not\/} normal. 

Referenced by key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!completionModeChanged@{completionModeChanged}}
\index{completionModeChanged@{completionModeChanged}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::completion\-Mode\-Changed ({\bf KGlobal\-Settings::Completion})\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l5}


Emitted when the user changed the completion mode by using the popupmenu. 

\index{KLineEdit@{KLine\-Edit}!aboutToShowContextMenu@{aboutToShowContextMenu}}
\index{aboutToShowContextMenu@{aboutToShowContextMenu}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::about\-To\-Show\-Context\-Menu ({\bf QPopup\-Menu} $\ast$ {\em p})\hspace{0.3cm}{\tt  [signal]}}\label{classKLineEdit_l6}


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.

NOTE: Do not store the pointer to the {\bf QPopup\-Menu} provided through since it is created and deleted on demand.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p}]the context menu about to be displayed \end{description}
\end{Desc}


Referenced by create\-Popup\-Menu().\index{KLineEdit@{KLine\-Edit}!setReadOnly@{setReadOnly}}
\index{setReadOnly@{setReadOnly}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Read\-Only (bool)\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKLineEdit_i0}


Re-implemented for internal reasons. 

API not changed. 

Reimplemented from {\bf QLine\-Edit}.

Definition at line 259 of file klineedit.cpp.

References QLine\-Edit::set\-Read\-Only(), set\-Squeezed\-Text(), set\-Text(), and QLine\-Edit::text().\index{KLineEdit@{KLine\-Edit}!rotateText@{rotateText}}
\index{rotateText@{rotateText}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::rotate\-Text ({\bf KCompletion\-Base::Key\-Binding\-Type} {\em type})\hspace{0.3cm}{\tt  [slot]}}\label{classKLineEdit_i1}


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.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type}]The key-binding invoked. \end{description}
\end{Desc}


Definition at line 199 of file klineedit.cpp.

References KCompletion\-Base::comp\-Obj(), QLine\-Edit::display\-Text(), QLine\-Edit::has\-Selected\-Text(), QString::is\-Null(), KCompletion::next\-Match(), KCompletion::previous\-Match(), and set\-Completed\-Text().

Referenced by key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!setCompletedText@{setCompletedText}}
\index{setCompletedText@{setCompletedText}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Completed\-Text (const {\bf QString} \&)\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKLineEdit_i2}


See {\bf KCompletion\-Base::set\-Completed\-Text}. 



Implements {\bf KCompletion\-Base}.

Definition at line 189 of file klineedit.cpp.

References KCompletion\-Base::completion\-Mode().

Referenced by make\-Completion(), rotate\-Text(), and set\-Completed\-Items().\index{KLineEdit@{KLine\-Edit}!setCompletedItems@{setCompletedItems}}
\index{setCompletedItems@{setCompletedItems}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Completed\-Items (const {\bf QString\-List} \& {\em items})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKLineEdit_i3}


Sets {\tt items} into the completion-box if {\bf completion\-Mode()} is Completion\-Popup. 

The popup will be shown immediately.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em items}]list of completion matches to be shown in the completion box. \end{description}
\end{Desc}


Implements {\bf KCompletion\-Base}.

Definition at line 1151 of file klineedit.cpp.

Referenced by key\-Press\-Event(), make\-Completion(), and set\-Completion\-Object().\index{KLineEdit@{KLine\-Edit}!setCompletedItems@{setCompletedItems}}
\index{setCompletedItems@{setCompletedItems}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Completed\-Items (const {\bf QString\-List} \& {\em items}, bool {\em auto\-Suggest})\hspace{0.3cm}{\tt  [slot]}}\label{classKLineEdit_i4}


Same as the above function except it allows you to temporarily turn off text completion in Completion\-Popup\-Auto mode. 

TODO: Merge with above function in {\bf KDE} 4. TODO: Does that make this or the above 

\begin{Desc}
\item[{\bf Deprecated}]? \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em items}]list of completion matches to be shown in the completion box. \item[{\em auto\-Suggest}]true if you want automatic text completion (suggestion) enabled. \end{description}
\end{Desc}


Definition at line 1156 of file klineedit.cpp.

References KCompletion\-Box::cancelled\-Text, completion\-Box(), QList\-Box::current\-Text(), QList\-Box::find\-Item(), QString::is\-Empty(), QList\-Box::is\-Selected(), set\-Completed\-Text(), KCompletion\-Box::set\-Items(), set\-User\-Selection(), and QLine\-Edit::text().\index{KLineEdit@{KLine\-Edit}!clear@{clear}}
\index{clear@{clear}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::clear ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKLineEdit_i5}


Reimplemented to workaround a buggy {\bf QLine\-Edit::clear()} (changing the clipboard to the text we just had in the lineedit). 



Reimplemented from {\bf QLine\-Edit}.

Reimplemented in {\bf KIcon\-View\-Search\-Line} {\rm (p.\,\pageref{classKIconViewSearchLine_i3})}.

Definition at line 1276 of file klineedit.cpp.

References set\-Text().

Referenced by KIcon\-View\-Search\-Line::clear(), and KEdit\-List\-Box::clear().\index{KLineEdit@{KLine\-Edit}!setSqueezedText@{setSqueezedText}}
\index{setSqueezedText@{setSqueezedText}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Squeezed\-Text (const {\bf QString} \& {\em text})\hspace{0.3cm}{\tt  [slot]}}\label{classKLineEdit_i6}


Squeezes {\tt text} into the line edit. 

This can only be used with read-only line-edits. \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 288 of file klineedit.cpp.

References set\-Enable\-Squeezed\-Text(), and set\-Text().

Referenced by resize\-Event(), set\-Read\-Only(), and set\-Text().\index{KLineEdit@{KLine\-Edit}!setText@{setText}}
\index{setText@{setText}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-Text (const {\bf QString} \&)\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKLineEdit_i7}


Re-implemented to enable text squeezing. 

API is not affected. 

Reimplemented from {\bf QLine\-Edit}.

Definition at line 304 of file klineedit.cpp.

References QLine\-Edit::is\-Read\-Only(), set\-Squeezed\-Text(), and QLine\-Edit::set\-Text().

Referenced by clear(), KTool\-Bar::insert\-Lined(), KLine\-Edit\-Dlg::KLine\-Edit\-Dlg(), KTool\-Bar::set\-Lined\-Text(), set\-Read\-Only(), set\-Squeezed\-Text(), set\-URL(), KLine\-Edit\-Dlg::slot\-Clear(), and user\-Cancelled().\index{KLineEdit@{KLine\-Edit}!makeCompletion@{makeCompletion}}
\index{makeCompletion@{makeCompletion}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::make\-Completion (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKLineEdit_j0}


Completes the remaining text with a matching one from a given list. 



Definition at line 220 of file klineedit.cpp.

References KCompletion::all\-Matches(), KCompletion\-Base::completion\-Mode(), KCompletion\-Base::comp\-Obj(), QString::is\-Null(), KCompletion::make\-Completion(), set\-Completed\-Items(), set\-Completed\-Text(), and set\-User\-Selection().

Referenced by key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!slotAboutToShow@{slotAboutToShow}}
\index{slotAboutToShow@{slotAboutToShow}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::slot\-About\-To\-Show ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKLineEdit_j1}


\begin{Desc}
\item[{\bf Deprecated}]. Will be removed in the next major release! \end{Desc}


Definition at line 467 of file klineedit.h.\index{KLineEdit@{KLine\-Edit}!slotCancelled@{slotCancelled}}
\index{slotCancelled@{slotCancelled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::slot\-Cancelled ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKLineEdit_j2}


\begin{Desc}
\item[{\bf Deprecated}]. Will be removed in the next major release! \end{Desc}


Definition at line 472 of file klineedit.h.\index{KLineEdit@{KLine\-Edit}!userCancelled@{userCancelled}}
\index{userCancelled@{userCancelled}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::user\-Cancelled (const {\bf QString} \& {\em cancel\-Text})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKLineEdit_j3}


Resets the current displayed text. 

Call this function to revert a text completion if the user cancels the request. Mostly applies to popup completions. 

Definition at line 1059 of file klineedit.cpp.

References KCompletion\-Base::completion\-Mode(), QLine\-Edit::deselect(), QLine\-Edit::has\-Selected\-Text(), QString::length(), set\-Text(), and QLine\-Edit::text().

Referenced by set\-Completion\-Box().\index{KLineEdit@{KLine\-Edit}!resizeEvent@{resizeEvent}}
\index{resizeEvent@{resizeEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::resize\-Event ({\bf QResize\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b0}


Re-implemented for internal reasons. 

API not affected.

See QLine\-Edit::resize\-Event(). 

Definition at line 418 of file klineedit.cpp.

References set\-Squeezed\-Text().\index{KLineEdit@{KLine\-Edit}!keyPressEvent@{keyPressEvent}}
\index{keyPressEvent@{keyPressEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::key\-Press\-Event ({\bf QKey\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b1}


Re-implemented for internal reasons. 

API not affected.

See {\bf QLine\-Edit::key\-Press\-Event()}. 

Reimplemented from {\bf QLine\-Edit}.

Reimplemented in {\bf KList\-View\-Line\-Edit} {\rm (p.\,\pageref{classKListViewLineEdit_b1})}, and {\bf KRestricted\-Line} {\rm (p.\,\pageref{classKRestrictedLine_b0})}.

Definition at line 426 of file klineedit.cpp.

References QLine\-Edit::backspace(), QApplication::clipboard(), completion(), KCompletion\-Base::completion\-Mode(), KCompletion\-Base::comp\-Obj(), KShortcut::contains(), copy(), QLine\-Edit::cursor\-Position(), QLine\-Edit::cursor\-Word\-Backward(), QLine\-Edit::cursor\-Word\-Forward(), QLine\-Edit::cut(), QLine\-Edit::del(), QLine\-Edit::deselect(), QLine\-Edit::echo\-Mode(), KCompletion\-Base::emit\-Signals(), QLine\-Edit::end(), KCompletion\-Base::get\-Key\-Bindings(), KCompletion\-Base::handle\-Signals(), QLine\-Edit::has\-Selected\-Text(), QLine\-Edit::home(), QLine\-Edit::insert(), QString::is\-Empty(), QLine\-Edit::key\-Press\-Event(), QString::length(), make\-Completion(), QLine\-Edit::paste(), QLine\-Edit::redo(), rotate\-Text(), QLine\-Edit::selected\-Text(), set\-Completed\-Items(), QLine\-Edit::set\-Cursor\-Position(), set\-User\-Selection(), KStd\-Accel::shortcut(), substring\-Completion(), QLine\-Edit::text(), text\-Rotation(), QLine\-Edit::undo(), and QString::unicode().

Referenced by KList\-View\-Line\-Edit::key\-Press\-Event().\index{KLineEdit@{KLine\-Edit}!mousePressEvent@{mousePressEvent}}
\index{mousePressEvent@{mousePressEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::mouse\-Press\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b2}


Re-implemented for internal reasons. 

API not affected.

See QLine\-Edit::mouse\-Press\-Event(). 

Definition at line 815 of file klineedit.cpp.

References QLine\-Edit::select\-All().\index{KLineEdit@{KLine\-Edit}!mouseDoubleClickEvent@{mouseDoubleClickEvent}}
\index{mouseDoubleClickEvent@{mouseDoubleClickEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::mouse\-Double\-Click\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b3}


Re-implemented for internal reasons. 

API not affected.

See {\bf QWidget::mouse\-Double\-Click\-Event()}. 

Definition at line 804 of file klineedit.cpp.

References QTimer::single\-Shot().\index{KLineEdit@{KLine\-Edit}!contextMenuEvent@{contextMenuEvent}}
\index{contextMenuEvent@{contextMenuEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::context\-Menu\-Event ({\bf QContext\-Menu\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b4}


Re-implemented for internal reasons. 

API not affected.

See QLine\-Edit::context\-Menu\-Event(). 

Definition at line 831 of file klineedit.cpp.\index{KLineEdit@{KLine\-Edit}!createPopupMenu@{createPopupMenu}}
\index{createPopupMenu@{createPopupMenu}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KLine\-Edit::create\-Popup\-Menu ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b5}


Re-implemented for internal reasons. 

API not affected.

See {\bf QLine\-Edit::create\-Popup\-Menu()}. 

Reimplemented from {\bf QLine\-Edit}.

Reimplemented in {\bf KList\-View\-Search\-Line} {\rm (p.\,\pageref{classKListViewSearchLine_b1})}.

Definition at line 837 of file klineedit.cpp.

References about\-To\-Show\-Context\-Menu(), QPopup\-Menu::change\-Item(), KCompletion\-Base::completion\-Mode(), KCompletion\-Base::comp\-Obj(), QLine\-Edit::create\-Popup\-Menu(), QPopup\-Menu::id\-At(), QPopup\-Menu::insert\-Item(), QPopup\-Menu::insert\-Separator(), QLine\-Edit::is\-Read\-Only(), QPopup\-Menu::set\-Accel(), QPopup\-Menu::set\-Item\-Checked(), and QPopup\-Menu::text().

Referenced by KList\-View\-Search\-Line::create\-Popup\-Menu().\index{KLineEdit@{KLine\-Edit}!dropEvent@{dropEvent}}
\index{dropEvent@{dropEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::drop\-Event ({\bf QDrop\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b6}


Re-implemented to handle URI drops. 

See QLine\-Edit::drop\-Event(). 

Definition at line 942 of file klineedit.cpp.

References QValue\-List::begin(), KURLDrag::decode(), QValue\-List::end(), QString::is\-Empty(), QString::length(), and QLine\-Edit::text().\index{KLineEdit@{KLine\-Edit}!setUserSelection@{setUserSelection}}
\index{setUserSelection@{setUserSelection}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::set\-User\-Selection (bool {\em user\-Selection})\hspace{0.3cm}{\tt  [protected]}}\label{classKLineEdit_b8}


Sets the widget in user\-Selection mode or in automatic completion selection mode. 

This changes the colors of selections. 

Definition at line 1247 of file klineedit.cpp.

References QPalette::color(), and QPalette::set\-Color().

Referenced by key\-Press\-Event(), make\-Completion(), and set\-Completed\-Items().\index{KLineEdit@{KLine\-Edit}!create@{create}}
\index{create@{create}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::create (WId = {\tt 0}, bool {\em initialize\-Window} = {\tt true}, bool {\em destroy\-Old\-Window} = {\tt true})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b9}


Reimplemented for internal reasons, the API is not affected. 



Definition at line 1241 of file klineedit.cpp.

References KCursor::set\-Auto\-Hide\-Cursor().\index{KLineEdit@{KLine\-Edit}!focusInEvent@{focusInEvent}}
\index{focusInEvent@{focusInEvent}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KLine\-Edit::focus\-In\-Event ({\bf QFocus\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKLineEdit_b10}


Re-implemented for internal reasons. 

API not affected.

See QLine\-Edit::focus\-In\-Event(). 

Definition at line 1295 of file klineedit.cpp.

References QLine\-Edit::has\-Selected\-Text(), and QLine\-Edit::input\-Mask().\index{KLineEdit@{KLine\-Edit}!autoSuggest@{autoSuggest}}
\index{autoSuggest@{autoSuggest}!KLineEdit@{KLine\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KLine\-Edit::auto\-Suggest () const\hspace{0.3cm}{\tt  [protected]}}\label{classKLineEdit_b11}


Whether in current state text should be auto-suggested \begin{Desc}
\item[Since:]3.4. \end{Desc}




Definition at line 1304 of file klineedit.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
klineedit.h\item 
klineedit.cpp\end{CompactItemize}
