Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 3210

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kdeui: KComboBox Class Reference (kdeui)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdeui</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">KComboBox Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KComboBox" --><!-- doxytag: inherits="QComboBox,KCompletionBase" -->
<p>An enhanced combo box.  
 <a href="classKComboBox.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KComboBox:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKComboBox.png" usemap="#KComboBox_map" alt=""/>
  <map id="KComboBox_map" name="KComboBox_map">
<area href="qcombobox.html" alt="QComboBox" shape="rect" coords="0,0,110,24"/>
<area doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html" alt="KCompletionBase" shape="rect" coords="120,0,230,24"/>
<area href="classKFontCombo.html" title="A combobox that lists the available fonts." alt="KFontCombo" shape="rect" coords="0,112,110,136"/>
<area href="classKHistoryCombo.html" title="A combobox for offering a history and completion." alt="KHistoryCombo" shape="rect" coords="120,112,230,136"/>
</map>
 </div></div>

<p><a href="classKComboBox-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#aebabebf3535c0cc7fbfd5704a47bb149">rotateText</a> (<a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afcb3584e759d233cf9acabf6a5d4ab4b">KCompletionBase::KeyBindingType</a> type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a1de0df49c02165790a9a44e4b147f2eb">setCompletedText</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a56e74862adb57752f84a14abf6cf0787">setCompletedItems</a> (const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;items)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a633c4dc51b0ea801e2efbb505e0e341d">setCurrentItem</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;item, bool insert=false, int index=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#aa929e367a5ad43088f124033c3f6abb1">setCurrentItem</a> (int index)</td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#acf72efbbe3d2ce2de2a648cf71b8f5ac">returnPressed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a016a019754037011cdf73a42651b9f3f">returnPressed</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#aba01e87084e255186af8e5b9d23c5ad9">completion</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a056cb4bc158ae9688d78e067c17fecb0">substringCompletion</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a7d892aff1ad8f076ea6ab888550b8c48">textRotation</a> (<a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afcb3584e759d233cf9acabf6a5d4ab4b">KCompletionBase::KeyBindingType</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a976743f77f6ab35f1e4ebbb510eb06e9">completionModeChanged</a> (<a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a4df0f8e08f3ffde1e176276cbf5aa821">KGlobalSettings::Completion</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a685f6c6f6cdb0b2b878892c3abf01865">aboutToShowContextMenu</a> (<a class="elRef" href="qpopupmenu.html">QPopupMenu</a> *p)</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#ab45b5799cfa68917fc5e57589c9d3b13">KComboBox</a> (<a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a1e62b20a9f572f84b2cc0d76542ec84a">KComboBox</a> (bool rw, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a553f223552b1ac4b1217a1e611820a7e">~KComboBox</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a0b2e8ca692b5a1209ddddf247e7cedab">setEditURL</a> (const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a4ad05f9f2024472bf727906be764e9d4">insertURL</a> (const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;url, int index=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#aa82a3e4515dab201f108f1a95b0ddc47">insertURL</a> (const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;<a class="elRef" href="qcombobox.html#pixmap">pixmap</a>, const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;url, int index=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a93798f2a71055cc7735fab8e1492e0d1">changeURL</a> (const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;url, int index)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a64fdab5bcb103451c8e25f755df0d641">changeURL</a> (const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;<a class="elRef" href="qcombobox.html#pixmap">pixmap</a>, const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;url, int index)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a144a643b99ed17c328799c08f2bf0351">cursorPosition</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#ae14aa07f44ab4ef1767586afe592155c">setAutoCompletion</a> (bool autocomplete)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#aaa88ca9b4bcb24dcb9ea63b54e5a3da9">autoCompletion</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a5daf26b4c50406073c1c87302d7c8605">setContextMenuEnabled</a> (bool showMenu)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a4da308554013eb74de41ce31574c2545">isContextMenuEnabled</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#ab3befa09ce1acbd1af5c284b610b7aaf">setURLDropsEnabled</a> (bool enable)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#ac63bd983f788b576ce12b1473b37b7bd">isURLDropsEnabled</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a8463f3ef6789b74af3f3535e7b4c9cae">contains</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;<a class="elRef" href="qcombobox.html#text">text</a>) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a8e871fd7d8d6e67539e5db44b9b9b1dd">setTrapReturnKey</a> (bool trap)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#ab736e2f168b57263c932a35bbcc3f08d">trapReturnKey</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a0a5c733315f99e28aeb426b331b55845">eventFilter</a> (<a class="elRef" href="qobject.html">QObject</a> *, <a class="elRef" href="qevent.html">QEvent</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKCompletionBox.html">KCompletionBox</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#acf349780217a9e85f0e20b63f023a120">completionBox</a> (bool create=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#afc70af07d7562b48cb370ce8f7ad336e">setLineEdit</a> (<a class="elRef" href="qlineedit.html">QLineEdit</a> *)</td></tr>
<tr><td colspan="2"><h2><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a07b79823da4190038191da0bb8d39b7e">itemSelected</a> (<a class="elRef" href="qlistboxitem.html">QListBoxItem</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#a5135d425795f13e479871cf8110c6855">makeCompletion</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21bf6ef61ec8c4e793aca1e900646535"></a><!-- doxytag: member="KComboBox::setCompletedText" ref="a21bf6ef61ec8c4e793aca1e900646535" args="(const QString &amp;, bool)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>setCompletedText</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;, bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKComboBox.html#aa39015c4af74618d9c369b63523b0175">create</a> (WId=0, bool initializeWindow=true, bool destroyOldWindow=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91a6a0f9313a564ef8ee0bc66a5cd3d0"></a><!-- doxytag: member="KComboBox::wheelEvent" ref="a91a6a0f9313a564ef8ee0bc66a5cd3d0" args="(QWheelEvent *ev)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>wheelEvent</b> (<a class="elRef" href="qwheelevent.html">QWheelEvent</a> *ev)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75fdf8626f73c53e73d7809d70cd65a5"></a><!-- doxytag: member="KComboBox::virtual_hook" ref="a75fdf8626f73c53e73d7809d70cd65a5" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79da0f46d8f0a5a7dcbcf728996bfba8"></a><!-- doxytag: member="KComboBox::autoCompletion" ref="a79da0f46d8f0a5a7dcbcf728996bfba8" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>autoCompletion</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca3f74c3184bba92d040c38ee7be8114"></a><!-- doxytag: member="KComboBox::contextMenuEnabled" ref="aca3f74c3184bba92d040c38ee7be8114" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>contextMenuEnabled</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7115f5d4c02d8cb5492397ddeae68528"></a><!-- doxytag: member="KComboBox::urlDropsEnabled" ref="a7115f5d4c02d8cb5492397ddeae68528" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>urlDropsEnabled</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8400a7077e7261f885eacf3e1e59f5c4"></a><!-- doxytag: member="KComboBox::trapReturnKey" ref="a8400a7077e7261f885eacf3e1e59f5c4" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>trapReturnKey</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An enhanced combo box. </p>
<p>A combined button, line-edit and a popup list widget.</p>
<p><b>Detail</b> <br/>
</p>
<p>This widget inherits from <a class="elRef" href="qcombobox.html">QComboBox</a> and implements the following additional functionalities: a completion object that provides both automatic and manual text completion as well as text rotation features, configurable key-bindings to activate these features, and a popup-menu item that can be used to allow the user to change the text completion mode on the fly.</p>
<p>To support these new features <a class="el" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> emits a few additional signals such as <a class="el" href="classKComboBox.html#aba01e87084e255186af8e5b9d23c5ad9" title="Emitted when the completion key is pressed.">completion( const QString&amp; )</a> and textRotation( KeyBindgingType ). The completion signal can be connected to a slot that will assist the user in filling out the remaining text while the rotation signal can be used to traverse through all possible matches whenever text completion results in multiple matches. Additionally, a <a class="el" href="classKComboBox.html#acf72efbbe3d2ce2de2a648cf71b8f5ac" title="Emitted when the user presses the Enter key.">returnPressed()</a> and a <a class="el" href="classKComboBox.html#a016a019754037011cdf73a42651b9f3f" title="Emitted when the user presses the Enter key.">returnPressed( const QString&amp; )</a> signals are emitted when the user presses the Enter/Return key.</p>
<p>KCombobox by default creates a completion object when you invoke the <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a91300b6572df20758b840788e4e7967a">completionObject( bool )</a> member function for the first time or explicitly use <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a78dc31219a52ceeba02753970e46ca45">setCompletionObject( KCompletion*, bool )</a> to assign your own completion object. Additionally, to make this widget more functional, <a class="el" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> will by default handle text rotation and completion events internally whenever a completion object is created through either one of the methods mentioned above. If you do not need this functionality, simply use <code><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a58de94406fccd3eea9b0075e987cb309">setHandleSignals(bool)</a></code> or alternatively set the boolean parameter in the <code>setCompletionObject</code> call to false.</p>
<p>Beware: The completion object can be deleted on you, especially if a call such as setEditable(false) is made. Store the pointer at your own risk, and consider using QGuardedPtr&lt;KCompletion&gt;.</p>
<p>The default key-bindings for completion and rotation is determined from the global settings in <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/namespaceKStdAccel.html">KStdAccel</a>. These values, however, can be overridden locally by invoking <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#ac479643d5f628263e423e44dc7d92334">KCompletionBase::setKeyBinding()</a>. The values can easily be reverted back to the default setting, by simply calling useGlobalSettings(). An alternate method would be to default individual key-bindings by usning <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#ac479643d5f628263e423e44dc7d92334">setKeyBinding()</a> with the default second argument.</p>
<p>A non-editable combobox only has one completion mode, <code>CompletionAuto</code>. Unlike an editable combobox the CompletionAuto mode, works by matching any typed key with the first letter of entries in the combobox. Please note that if you call setEditable( false ) to change an editable combobox to a non-editable one, the text completion object associated with the combobox will no longer exist unless you created the completion object yourself and assigned it to this widget or you called setAutoDeleteCompletionObject( false ). In other words do not do the following:</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a>* combo = <span class="keyword">new</span> <a class="code" href="classKCompletionBox.html" title="A helper widget for &quot;completion-widgets&quot; (KLineEdit, KComboBox))">KCompletionBox</a>(<span class="keyword">true</span>, <span class="keyword">this</span>, <span class="stringliteral">&quot;mywidget&quot;</span>);
 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletion.html">KCompletion</a>* comp = combo-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a91300b6572df20758b840788e4e7967a">completionObject</a>();
 combo-&gt;<a class="codeRef" href="qcombobox.html#setEditable">setEditable</a>( <span class="keyword">false</span> );
 comp-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletion.html#aa83d65e9084382a6ecfcf5ff2b465a9f">clear</a>(); <span class="comment">// CRASH: completion object does not exist anymore.</span>
</pre></div><p>A read-only <a class="el" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> will have the same background color as a disabled <a class="el" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a>, but its foreground color will be the one used for the read-write mode. This differs from QComboBox's implementation and is done to give visual distinction between the three different modes: disabled, read-only, and read-write.</p>
<p><b>Usage</b> <br/>
</p>
<p>To enable the basic completion feature:</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> *combo = <span class="keyword">new</span> <a class="code" href="classKComboBox.html#ab45b5799cfa68917fc5e57589c9d3b13" title="Constructs a read-only or rather select-only combo box with a parent object and a name...">KComboBox</a>( <span class="keyword">true</span>, <span class="keyword">this</span>, <span class="stringliteral">&quot;mywidget&quot;</span> );
 <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletion.html">KCompletion</a> *comp = combo-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a91300b6572df20758b840788e4e7967a">completionObject</a>();
 <span class="comment">// Connect to the return pressed signal - optional</span>
 connect(combo,SIGNAL(<a class="code" href="classKComboBox.html#acf72efbbe3d2ce2de2a648cf71b8f5ac" title="Emitted when the user presses the Enter key.">returnPressed</a>(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp;)),comp,SLOT(addItem(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp;)));

 <span class="comment">// Provide the to be completed strings. Note that those are separate from the combo&#39;s</span>
 <span class="comment">// contents.</span>
 comp-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletion.html#a13b8fb6f3cd37d817418c873d1032c8d">insertItems</a>( someQStringList );
</pre></div><p>To use your own completion object:</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> *combo = <span class="keyword">new</span> <a class="code" href="classKComboBox.html#ab45b5799cfa68917fc5e57589c9d3b13" title="Constructs a read-only or rather select-only combo box with a parent object and a name...">KComboBox</a>( <span class="keyword">this</span>,<span class="stringliteral">&quot;mywidget&quot;</span> );
 KURLCompletion *comp = <span class="keyword">new</span> KURLCompletion();
 combo-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a78dc31219a52ceeba02753970e46ca45">setCompletionObject</a>( comp );
 <span class="comment">// Connect to the return pressed signal - optional</span>
 connect(combo,SIGNAL(<a class="code" href="classKComboBox.html#acf72efbbe3d2ce2de2a648cf71b8f5ac" title="Emitted when the user presses the Enter key.">returnPressed</a>(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp;)),comp,SLOT(addItem(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp;)));
</pre></div><p>Note that you have to either delete the allocated completion object when you don't need it anymore, or call setAutoDeleteCompletionObject( true );</p>
<p>Miscellaneous function calls:</p>
<div class="fragment"><pre class="fragment"> <span class="comment">// Tell the widget not to handle completion and rotation</span>
 combo-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a58de94406fccd3eea9b0075e987cb309">setHandleSignals</a>( <span class="keyword">false</span> );
 <span class="comment">// Set your own completion key for manual completions.</span>
 combo-&gt;<a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#ac479643d5f628263e423e44dc7d92334">setKeyBinding</a>( <a class="codeRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afcb3584e759d233cf9acabf6a5d4ab4bab533a930960cd953ee3300a107966697">KCompletionBase::TextCompletion</a>, Qt::End );
 <span class="comment">// Hide the context (popup) menu</span>
 combo-&gt;<a class="code" href="classKComboBox.html#a5daf26b4c50406073c1c87302d7c8605" title="Enables or disable the popup (context) menu.">setContextMenuEnabled</a>( <span class="keyword">false</span> );
</pre></div><dl class="author"><dt><b>Author:</b></dt><dd>Dawit Alemayehu &lt;<a href="mailto:adawit@kde.org">adawit@kde.org</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="kcombobox_8h_source.html#l00144">144</a> of file <a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab45b5799cfa68917fc5e57589c9d3b13"></a><!-- doxytag: member="KComboBox::KComboBox" ref="ab45b5799cfa68917fc5e57589c9d3b13" args="(QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KComboBox::KComboBox </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a read-only or rather select-only combo box with a parent object and a name. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>The parent object of this widget </td></tr>
    <tr><td class="paramname">name</td><td>The name of this widget </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00059">59</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1e62b20a9f572f84b2cc0d76542ec84a"></a><!-- doxytag: member="KComboBox::KComboBox" ref="a1e62b20a9f572f84b2cc0d76542ec84a" args="(bool rw, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KComboBox::KComboBox </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>rw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a "read-write" or "read-only" combo box depending on the value of the first argument( <code>rw</code> ) with a parent, a name. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rw</td><td>When <code>true</code>, widget will be editable. </td></tr>
    <tr><td class="paramname">parent</td><td>The parent object of this widget. </td></tr>
    <tr><td class="paramname">name</td><td>The name of this widget. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00065">65</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a553f223552b1ac4b1217a1e611820a7e"></a><!-- doxytag: member="KComboBox::~KComboBox" ref="a553f223552b1ac4b1217a1e611820a7e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KComboBox::~KComboBox </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00077">77</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a685f6c6f6cdb0b2b878892c3abf01865"></a><!-- doxytag: member="KComboBox::aboutToShowContextMenu" ref="a685f6c6f6cdb0b2b878892c3abf01865" args="(QPopupMenu *p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::aboutToShowContextMenu </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qpopupmenu.html">QPopupMenu</a> *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted before the context menu is displayed. </p>
<p>The signal allows you to add your own entries into the context menu. Note that you MUST NOT store the pointer to the <a class="elRef" href="qpopupmenu.html">QPopupMenu</a> since it is created and deleted on demand. Otherwise, you can crash your app.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the context menu about to be displayed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaa88ca9b4bcb24dcb9ea63b54e5a3da9"></a><!-- doxytag: member="KComboBox::autoCompletion" ref="aaa88ca9b4bcb24dcb9ea63b54e5a3da9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KComboBox::autoCompletion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Re-implemented from <a class="elRef" href="qcombobox.html">QComboBox</a>. </p>
<p>Returns <code>true</code> if the current completion mode is set to automatic. See its more comprehensive replacement <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afe4e31cf4edcef7407b58c02a8ade108">completionMode()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> when completion mode is automatic. </dd></dl>

<p>Definition at line <a class="el" href="kcombobox_8h_source.html#l00246">246</a> of file <a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>.</p>

</div>
</div>
<a class="anchor" id="a93798f2a71055cc7735fab8e1492e0d1"></a><!-- doxytag: member="KComboBox::changeURL" ref="a93798f2a71055cc7735fab8e1492e0d1" args="(const KURL &amp;url, int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::changeURL </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Replaces the item at position <code>index</code> with <code>url</code>. </p>
<p><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html#a9382bc0e035124e884f755cff962530f">KURL::prettyURL()</a> is used so that the url is properly decoded for displaying. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00212">212</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a64fdab5bcb103451c8e25f755df0d641"></a><!-- doxytag: member="KComboBox::changeURL" ref="a64fdab5bcb103451c8e25f755df0d641" args="(const QPixmap &amp;pixmap, const KURL &amp;url, int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::changeURL </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;&#160;</td>
          <td class="paramname"><em>pixmap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Replaces the item at position <code>index</code> with <code>url</code> and pixmap <code>pixmap</code>. </p>
<p><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html#a9382bc0e035124e884f755cff962530f">KURL::prettyURL()</a> is used so that the url is properly decoded for displaying. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00217">217</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aba01e87084e255186af8e5b9d23c5ad9"></a><!-- doxytag: member="KComboBox::completion" ref="aba01e87084e255186af8e5b9d23c5ad9" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::completion </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the completion key is pressed. </p>
<p>The argument is the current text being edited.</p>
<p>Note that this signal is <em>not</em> available when the widget is non-editable or the completion mode is set to <code><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a4df0f8e08f3ffde1e176276cbf5aa821aec030b2f4faf8614c501f54af10050a7">KGlobalSettings::CompletionNone</a></code>. </p>

</div>
</div>
<a class="anchor" id="acf349780217a9e85f0e20b63f023a120"></a><!-- doxytag: member="KComboBox::completionBox" ref="acf349780217a9e85f0e20b63f023a120" args="(bool create=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKCompletionBox.html">KCompletionBox</a> * KComboBox::completionBox </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>create</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the completion-box, that is used in completion mode <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a4df0f8e08f3ffde1e176276cbf5aa821a0472299ebbe88d7c36b0ca5f19cd0cbe">KGlobalSettings::CompletionPopup</a> and <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a4df0f8e08f3ffde1e176276cbf5aa821af8663fa5bbad534bbe8ddadbdea586db">KGlobalSettings::CompletionPopupAuto</a>. This method will create a completion-box by calling <a class="el" href="classKLineEdit.html#ad3bc57bfc4d530e172162c3a11e34466">KLineEdit::completionBox</a>, if none is there, yet.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">create</td><td>Set this to false if you don't want the box to be created i.e. to test if it is available. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00228">228</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a976743f77f6ab35f1e4ebbb510eb06e9"></a><!-- doxytag: member="KComboBox::completionModeChanged" ref="a976743f77f6ab35f1e4ebbb510eb06e9" args="(KGlobalSettings::Completion)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::completionModeChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKGlobalSettings.html#a4df0f8e08f3ffde1e176276cbf5aa821">KGlobalSettings::Completion</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted whenever the completion mode is changed by the user through the context menu. </p>

</div>
</div>
<a class="anchor" id="a8463f3ef6789b74af3f3535e7b4c9cae"></a><!-- doxytag: member="KComboBox::contains" ref="a8463f3ef6789b74af3f3535e7b4c9cae" args="(const QString &amp;text) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KComboBox::contains </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience method which iterates over all items and checks if any of them is equal to <code>text</code>. </p>
<p>If <code>text</code> is an empty string, <code>false</code> is returned.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if an item with the string <code>text</code> is in the combobox. </dd></dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00093">93</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa39015c4af74618d9c369b63523b0175"></a><!-- doxytag: member="KComboBox::create" ref="aa39015c4af74618d9c369b63523b0175" args="(WId=0, bool initializeWindow=true, bool destroyOldWindow=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::create </td>
          <td>(</td>
          <td class="paramtype">WId&#160;</td>
          <td class="paramname"><em>id</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>initializeWindow</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>destroyOldWindow</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented for internal reasons, the API is not affected. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00236">236</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a144a643b99ed17c328799c08f2bf0351"></a><!-- doxytag: member="KComboBox::cursorPosition" ref="a144a643b99ed17c328799c08f2bf0351" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KComboBox::cursorPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current cursor position. </p>
<p>This method always returns a -1 if the combo-box is <em>not</em> editable (read-write).</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current cursor position. </dd></dl>

<p>Definition at line <a class="el" href="kcombobox_8h_source.html#l00223">223</a> of file <a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0a5c733315f99e28aeb426b331b55845"></a><!-- doxytag: member="KComboBox::eventFilter" ref="a0a5c733315f99e28aeb426b331b55845" args="(QObject *, QEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KComboBox::eventFilter </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qobject.html">QObject</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qevent.html">QEvent</a> *&#160;</td>
          <td class="paramname"><em>ev</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Re-implemented for internal reasons. </p>
<p>API not affected. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00178">178</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4ad05f9f2024472bf727906be764e9d4"></a><!-- doxytag: member="KComboBox::insertURL" ref="a4ad05f9f2024472bf727906be764e9d4" args="(const KURL &amp;url, int index=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::insertURL </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts <code>url</code> at position <code>index</code> into the combobox. </p>
<p>The item will be appended if <code>index</code> is negative. <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html#a9382bc0e035124e884f755cff962530f">KURL::prettyURL()</a> is used so that the url is properly decoded for displaying. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00202">202</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa82a3e4515dab201f108f1a95b0ddc47"></a><!-- doxytag: member="KComboBox::insertURL" ref="aa82a3e4515dab201f108f1a95b0ddc47" args="(const QPixmap &amp;pixmap, const KURL &amp;url, int index=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::insertURL </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;&#160;</td>
          <td class="paramname"><em>pixmap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts <code>url</code> with the pixmap &amp;p pixmap at position <code>index</code> into the combobox. </p>
<p>The item will be appended if <code>index</code> is negative. <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html#a9382bc0e035124e884f755cff962530f">KURL::prettyURL()</a> is used so that the url is properly decoded for displaying. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00207">207</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4da308554013eb74de41ce31574c2545"></a><!-- doxytag: member="KComboBox::isContextMenuEnabled" ref="a4da308554013eb74de41ce31574c2545" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KComboBox::isContextMenuEnabled </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns <code>true</code> when the context menu is enabled. </p>

<p>Definition at line <a class="el" href="kcombobox_8h_source.html#l00270">270</a> of file <a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac63bd983f788b576ce12b1473b37b7bd"></a><!-- doxytag: member="KComboBox::isURLDropsEnabled" ref="ac63bd983f788b576ce12b1473b37b7bd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KComboBox::isURLDropsEnabled </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns <code>true</code> when decoded URL drops are enabled. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00137">137</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a07b79823da4190038191da0bb8d39b7e"></a><!-- doxytag: member="KComboBox::itemSelected" ref="a07b79823da4190038191da0bb8d39b7e" args="(QListBoxItem *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KComboBox::itemSelected </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qlistboxitem.html">QListBoxItem</a> *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, protected, virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000024">Deprecated:</a></b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="kcombobox_8h_source.html#l00460">460</a> of file <a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5135d425795f13e479871cf8110c6855"></a><!-- doxytag: member="KComboBox::makeCompletion" ref="a5135d425795f13e479871cf8110c6855" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::makeCompletion </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [protected, virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Completes text according to the completion mode. </p>
<p>Note: this method is <code>not</code> invoked if the completion mode is set to CompletionNone. Also if the mode is set to <code>CompletionShell</code> and multiple matches are found, this method will complete the text to the first match with a beep to inidicate that there are more matches. Then any successive completion key event iterates through the remaining matches. This way the rotation functionality is left to iterate through the list as usual. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00155">155</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acf72efbbe3d2ce2de2a648cf71b8f5ac"></a><!-- doxytag: member="KComboBox::returnPressed" ref="acf72efbbe3d2ce2de2a648cf71b8f5ac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::returnPressed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the user presses the Enter key. </p>
<p>Note that this signal is only emitted when the widget is editable. </p>

</div>
</div>
<a class="anchor" id="a016a019754037011cdf73a42651b9f3f"></a><!-- doxytag: member="KComboBox::returnPressed" ref="a016a019754037011cdf73a42651b9f3f" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::returnPressed </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the user presses the Enter key. </p>
<p>The argument is the current text being edited. This signal is just like <a class="el" href="classKComboBox.html#acf72efbbe3d2ce2de2a648cf71b8f5ac" title="Emitted when the user presses the Enter key.">returnPressed()</a> except it contains the current text as its argument.</p>
<p>Note that this signal is only emitted when the widget is editable. </p>

</div>
</div>
<a class="anchor" id="aebabebf3535c0cc7fbfd5704a47bb149"></a><!-- doxytag: member="KComboBox::rotateText" ref="aebabebf3535c0cc7fbfd5704a47bb149" args="(KCompletionBase::KeyBindingType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::rotateText </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afcb3584e759d233cf9acabf6a5d4ab4b">KCompletionBase::KeyBindingType</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Iterates through all possible matches of the completed text or the history list. </p>
<p>Depending on the value of the argument, this function either iterates through the history list of this widget or the all possible matches in whenever multiple matches result from a text completion request. Note that the all-possible-match iteration will not work if there are no previous matches, i.e. no text has been completed and the *nix shell history list rotation is only available if the insertion policy for this widget is set either <code>QComobBox::AtTop</code> or <code>QComboBox::AtBottom</code>. For other insertion modes whatever has been typed by the user when the rotation event was initiated will be lost.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>The key-binding invoked. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00171">171</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae14aa07f44ab4ef1767586afe592155c"></a><!-- doxytag: member="KComboBox::setAutoCompletion" ref="ae14aa07f44ab4ef1767586afe592155c" args="(bool autocomplete)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setAutoCompletion </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>autocomplete</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Re-implemented from <a class="elRef" href="qcombobox.html">QComboBox</a>. </p>
<p>If <code>true</code>, the completion mode will be set to automatic. Otherwise, it is defaulted to the global setting. This method has been replaced by the more comprehensive <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#aea639442f6234fafc4cabe770ec9573b">setCompletionMode()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">autocomplete</td><td>Flag to enable/disable automatic completion mode. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="elRef" href="qcombobox.html#setAutoCompletion">QComboBox</a>.</p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00107">107</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a56e74862adb57752f84a14abf6cf0787"></a><!-- doxytag: member="KComboBox::setCompletedItems" ref="a56e74862adb57752f84a14abf6cf0787" args="(const QStringList &amp;items)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setCompletedItems </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstringlist.html">QStringList</a> &amp;&#160;</td>
          <td class="paramname"><em>items</em></td><td>)</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets <code>items</code> into the completion-box if <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afe4e31cf4edcef7407b58c02a8ade108">completionMode()</a> is CompletionPopup. </p>
<p>The popup will be shown immediately. </p>

<p>Implements <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a432a16c135f894b5f66d8e4a00c688f0">KCompletionBase</a>.</p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00222">222</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1de0df49c02165790a9a44e4b147f2eb"></a><!-- doxytag: member="KComboBox::setCompletedText" ref="a1de0df49c02165790a9a44e4b147f2eb" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setCompletedText </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the completed text in the line-edit appropriately. </p>
<p>This function is a re-implementation of <code>setCompletedText</code>. </p>

<p>Implements <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#a4aaa12b7b3900f3ac4c0cc22774bd212">KCompletionBase</a>.</p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00149">149</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5daf26b4c50406073c1c87302d7c8605"></a><!-- doxytag: member="KComboBox::setContextMenuEnabled" ref="a5daf26b4c50406073c1c87302d7c8605" args="(bool showMenu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setContextMenuEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>showMenu</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables or disable the popup (context) menu. </p>
<p>This method only works if this widget is editable, i.e. read-write and allows you to enable/disable the context menu. It does nothing if invoked for a none-editable combo-box. Note that by default the mode changer item is made visiable whenever the context menu is enabled. Use hideModechanger() if you want to hide this item. Also by default, the context menu is created if this widget is editable. Call this function with the argument set to false to disable the popup menu.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">showMenu</td><td>If <code>true</code>, show the context menu. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00124">124</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a633c4dc51b0ea801e2efbb505e0e341d"></a><!-- doxytag: member="KComboBox::setCurrentItem" ref="a633c4dc51b0ea801e2efbb505e0e341d" args="(const QString &amp;item, bool insert=false, int index=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setCurrentItem </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>insert</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Selects the first item that matches <code>item</code>. </p>
<p>If there is no such item, it is inserted at position <code>index</code> if <code>insert</code> is true. Otherwise, no item is selected. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00305">305</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa929e367a5ad43088f124033c3f6abb1"></a><!-- doxytag: member="KComboBox::setCurrentItem" ref="aa929e367a5ad43088f124033c3f6abb1" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setCurrentItem </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Simply calls QComboBox' implementation. </p>
<p>Only here to not become shadowed. </p>

<p>Reimplemented from <a class="elRef" href="qcombobox.html#setCurrentItem">QComboBox</a>.</p>

<p>Reimplemented in <a class="el" href="classKFontCombo.html#a445b5fe3e3a668b3534f8543675bd136">KFontCombo</a>.</p>

<p>Definition at line <a class="el" href="kcombobox_8h_source.html#l00453">453</a> of file <a class="el" href="kcombobox_8h_source.html">kcombobox.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0b2e8ca692b5a1209ddddf247e7cedab"></a><!-- doxytag: member="KComboBox::setEditURL" ref="a0b2e8ca692b5a1209ddddf247e7cedab" args="(const KURL &amp;url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setEditURL </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html">KURL</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets <code>url</code> into the edit field of the combobox. </p>
<p>It uses <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKURL.html#a9382bc0e035124e884f755cff962530f">KURL::prettyURL()</a> so that the url is properly decoded for displaying. </p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00197">197</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afc70af07d7562b48cb370ce8f7ad336e"></a><!-- doxytag: member="KComboBox::setLineEdit" ref="afc70af07d7562b48cb370ce8f7ad336e" args="(QLineEdit *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setLineEdit </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qlineedit.html">QLineEdit</a> *&#160;</td>
          <td class="paramname"><em>edit</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Re-implemented for internal reasons. </p>
<p>API remains unaffected. NOTE: Only editable comboboxes can have a line editor. As such any attempt to assign a line-edit to a non-editable combobox will simply be ignored. </p>

<p>Reimplemented from <a class="elRef" href="qcombobox.html#setLineEdit">QComboBox</a>.</p>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00248">248</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8e871fd7d8d6e67539e5db44b9b9b1dd"></a><!-- doxytag: member="KComboBox::setTrapReturnKey" ref="a8e871fd7d8d6e67539e5db44b9b9b1dd" args="(bool trap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setTrapReturnKey </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>trap</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>By default, <a class="el" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> recognizes Key_Return and Key_Enter and emits the <a class="el" href="classKComboBox.html#acf72efbbe3d2ce2de2a648cf71b8f5ac" title="Emitted when the user presses the Enter key.">returnPressed()</a> signals, but it also lets the event pass, for example causing a dialog's default-button to be called. </p>
<p>Call this method with <code>trap</code> equal to true to make <a class="el" href="classKComboBox.html" title="An enhanced combo box.">KComboBox</a> stop these events. The signals will still be emitted of course.</p>
<p>Only affects read-writable comboboxes.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKComboBox.html#a8e871fd7d8d6e67539e5db44b9b9b1dd" title="By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals...">setTrapReturnKey()</a> </dd></dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00183">183</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab3befa09ce1acbd1af5c284b610b7aaf"></a><!-- doxytag: member="KComboBox::setURLDropsEnabled" ref="ab3befa09ce1acbd1af5c284b610b7aaf" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::setURLDropsEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables/Disables handling of URL drops. </p>
<p>If enabled and the user drops an URL, the decoded URL will be inserted. Otherwise the default behavior of <a class="elRef" href="qcombobox.html">QComboBox</a> is used, which inserts the encoded URL.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>If <code>true</code>, insert decoded URLs </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kcombobox_8cpp_source.html#l00131">131</a> of file <a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a056cb4bc158ae9688d78e067c17fecb0"></a><!-- doxytag: member="KComboBox::substringCompletion" ref="a056cb4bc158ae9688d78e067c17fecb0" args="(const QString &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::substringCompletion </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the shortcut for substring completion is pressed. </p>

</div>
</div>
<a class="anchor" id="a7d892aff1ad8f076ea6ab888550b8c48"></a><!-- doxytag: member="KComboBox::textRotation" ref="a7d892aff1ad8f076ea6ab888550b8c48" args="(KCompletionBase::KeyBindingType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KComboBox::textRotation </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#afcb3584e759d233cf9acabf6a5d4ab4b">KCompletionBase::KeyBindingType</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the text rotation key-bindings are pressed. </p>
<p>The argument indicates which key-binding was pressed. In this case this can be either one of four values: <code>PrevCompletionMatch</code>, <code>NextCompletionMatch</code>, <code>RotateUp</code> or <code>RotateDown</code>. See <code><a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKCompletionBase.html#ac479643d5f628263e423e44dc7d92334">setKeyBinding()</a></code> for details.</p>
<p>Note that this signal is <em>NOT</em> emitted if the completion mode is set to CompletionNone. </p>

</div>
</div>
<a class="anchor" id="ab736e2f168b57263c932a35bbcc3f08d"></a><!-- doxytag: member="KComboBox::trapReturnKey" ref="ab736e2f168b57263c932a35bbcc3f08d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KComboBox::trapReturnKey </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if keyevents of Key_Return or Key_Enter will be stopped or if they will be propagated.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKComboBox.html#a8e871fd7d8d6e67539e5db44b9b9b1dd" title="By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals...">setTrapReturnKey</a> () </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kcombobox_8h_source.html">kcombobox.h</a></li>
<li><a class="el" href="kcombobox_8cpp_source.html">kcombobox.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdeui</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKAboutApplication.html">kaboutapplication</option>,  <option value="classKAboutContainer.html">kaboutcontainer</option>,  <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>,  <option value="classKAboutContributor.html">kaboutcontributor</option>,  <option value="classKAboutDialog.html">kaboutdialog</option>,  <option value="classKAboutKDE.html">kaboutkde</option>,  <option value="classKAboutWidget.html">kaboutwidget</option>,  <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>,  <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>,  <option value="classKAction.html">kaction</option>,  <option value="classKActionCollection.html">kactioncollection</option>,  <option value="classKActionMenu.html">kactionmenu</option>,  <option value="classKActionSelector.html">kactionselector</option>,  <option value="classKActiveLabel.html">kactivelabel</option>,  <option value="classKAnimWidget.html">kanimwidget</option>,  <option value="classKArrowButton.html">karrowbutton</option>,  <option value="classKAuthIcon.html">kauthicon</option>,  <option value="classKBugReport.html">kbugreport</option>,  <option value="classKButtonBox.html">kbuttonbox</option>,  <option value="classKCharSelect.html">kcharselect</option>,  <option value="classKCharSelectTable.html">kcharselecttable</option>,  <option value="classKCModule.html">kcmodule</option>,  <option value="classKColor.html">kcolor</option>,  <option value="classKColorButton.html">kcolorbutton</option>,  <option value="classKColorCells.html">kcolorcells</option>,  <option value="classKColorCombo.html">kcolorcombo</option>,  <option value="classKColorDialog.html">kcolordialog</option>,  <option value="classKColorDrag.html">kcolordrag</option>,  <option value="classKColorPatch.html">kcolorpatch</option>,  <option value="classKComboBox.html">kcombobox</option>,  <option value="classKCommand.html">kcommand</option>,  <option value="classKCommandHistory.html">kcommandhistory</option>,  <option value="classKCompletionBox.html">kcompletionbox</option>,  <option value="classKConfigDialog.html">kconfigdialog</option>,  <option value="classKContextMenuManager.html">kcontextmenumanager</option>,  <option value="classKCursor.html">kcursor</option>,  <option value="classKCursorPrivate.html">kcursorprivate</option>,  <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>,  <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>,  <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>,  <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>,  <option value="classKDatePicker.html">kdatepicker</option>,  <option value="classKDateTable.html">kdatetable</option>,  <option value="classKDateTimeWidget.html">kdatetimewidget</option>,  <option value="classKDateValidator.html">kdatevalidator</option>,  <option value="classKDateWidget.html">kdatewidget</option>,  <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>,  <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>,  <option value="classKDialog.html">kdialog</option>,  <option value="classKDialogBase.html">kdialogbase</option>,  <option value="classKDialogBaseButton.html">kdialogbasebutton</option>,  <option value="classKDialogBaseTile.html">kdialogbasetile</option>,  <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>,  <option value="classKDockButton__Private.html">kdockbutton__private</option>,  <option value="classKDockMainWindow.html">kdockmainwindow</option>,  <option value="classKDockManager.html">kdockmanager</option>,  <option value="classKDockSplitter.html">kdocksplitter</option>,  <option value="classKDockTabGroup.html">kdocktabgroup</option>,  <option value="classKDockWidget.html">kdockwidget</option>,  <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>,  <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>,  <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>,  <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>,  <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>,  <option value="classKDockWindow.html">kdockwindow</option>,  <option value="classKDoubleNumInput.html">kdoublenuminput</option>,  <option value="classKDoubleSpinBox.html">kdoublespinbox</option>,  <option value="classKDoubleValidator.html">kdoublevalidator</option>,  <option value="classKDualColorButton.html">kdualcolorbutton</option>,  <option value="classKEdit.html">kedit</option>,  <option value="classKEditListBox.html">keditlistbox</option>,  <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>,  <option value="classKEditToolbar.html">kedittoolbar</option>,  <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>,  <option value="classKFloatValidator.html">kfloatvalidator</option>,  <option value="classKFontChooser.html">kfontchooser</option>,  <option value="classKFontCombo.html">kfontcombo</option>,  <option value="classKFontDialog.html">kfontdialog</option>,  <option value="classKFontRequester.html">kfontrequester</option>,  <option value="classKGradientSelector.html">kgradientselector</option>,  <option value="classKGuiItem.html">kguiitem</option>,  <option value="classKHelpMenu.html">khelpmenu</option>,  <option value="classKHistoryCombo.html">khistorycombo</option>,  <option value="classKHSSelector.html">khsselector</option>,  <option value="classKIconView.html">kiconview</option>,  <option value="classKIconViewItem.html">kiconviewitem</option>,  <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>,  <option value="classKImageTrackLabel.html">kimagetracklabel</option>,  <option value="classKInputDialog.html">kinputdialog</option>,  <option value="classKIntNumInput.html">kintnuminput</option>,  <option value="classKIntSpinBox.html">kintspinbox</option>,  <option value="classKIntValidator.html">kintvalidator</option>,  <option value="classKJanusWidget.html">kjanuswidget</option>,  <option value="classKKeyButton.html">kkeybutton</option>,  <option value="classKKeyChooser.html">kkeychooser</option>,  <option value="classKKeyDialog.html">kkeydialog</option>,  <option value="classKLanguageButton.html">klanguagebutton</option>,  <option value="classKLed.html">kled</option>,  <option value="classKLineEdit.html">klineedit</option>,  <option value="classKLineEditDlg.html">klineeditdlg</option>,  <option value="classKListAction.html">klistaction</option>,  <option value="classKListBox.html">klistbox</option>,  <option value="classKListView.html">klistview</option>,  <option value="classKListViewItem.html">klistviewitem</option>,  <option value="classKListViewLineEdit.html">klistviewlineedit</option>,  <option value="classKListViewSearchLine.html">klistviewsearchline</option>,  <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>,  <option value="classKMacroCommand.html">kmacrocommand</option>,  <option value="classKMainWindow.html">kmainwindow</option>,  <option value="classKMainWindowInterface.html">kmainwindowinterface</option>,  <option value="classKMenuBar.html">kmenubar</option>,  <option value="classKMessageBox.html">kmessagebox</option>,  <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>,  <option value="classKNamedCommand.html">knamedcommand</option>,  <option value="classKNumInput.html">knuminput</option>,  <option value="classKPaletteTable.html">kpalettetable</option>,  <option value="classKPanelApplet.html">kpanelapplet</option>,  <option value="classKPanelAppMenu.html">kpanelappmenu</option>,  <option value="classKPanelExtension.html">kpanelextension</option>,  <option value="classKPanelMenu.html">kpanelmenu</option>,  <option value="classKPassivePopup.html">kpassivepopup</option>,  <option value="classKPasswordDialog.html">kpassworddialog</option>,  <option value="classKPasswordEdit.html">kpasswordedit</option>,  <option value="classKPasteTextAction.html">kpastetextaction</option>,  <option value="classKPixmapIO.html">kpixmapio</option>,  <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>,  <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>,  <option value="classKPopupFrame.html">kpopupframe</option>,  <option value="classKPopupMenu.html">kpopupmenu</option>,  <option value="classKPopupTitle.html">kpopuptitle</option>,  <option value="classKProgress.html">kprogress</option>,  <option value="classKProgressDialog.html">kprogressdialog</option>,  <option value="classKPushButton.html">kpushbutton</option>,  <option value="classKRadioAction.html">kradioaction</option>,  <option value="classKRecentFilesAction.html">krecentfilesaction</option>,  <option value="classKRestrictedLine.html">krestrictedline</option>,  <option value="classKRootPermsIcon.html">krootpermsicon</option>,  <option value="classKRootPixmap.html">krootpixmap</option>,  <option value="classKRuler.html">kruler</option>,  <option value="classKScrollView.html">kscrollview</option>,  <option value="classKSelectAction.html">kselectaction</option>,  <option value="classKSelector.html">kselector</option>,  <option value="classKSeparator.html">kseparator</option>,  <option value="classKShortcutDialog.html">kshortcutdialog</option>,  <option value="classKSpell.html">kspell</option>,  <option value="classKSpellConfig.html">kspellconfig</option>,  <option value="classKSplashScreen.html">ksplashscreen</option>,  <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>,  <option value="classKStatusBar.html">kstatusbar</option>,  <option value="classKStatusBarLabel.html">kstatusbarlabel</option>,  <option value="classKStdGuiItem.html">kstdguiitem</option>,  <option value="classKStringListValidator.html">kstringlistvalidator</option>,  <option value="classKSwitchLanguageDialog.html">kswitchlanguagedialog</option>,  <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>,  <option value="classKSystemTray.html">ksystemtray</option>,  <option value="classKTabBar.html">ktabbar</option>,  <option value="classKTabCtl.html">ktabctl</option>,  <option value="classKTabWidget.html">ktabwidget</option>,  <option value="classKTextBrowser.html">ktextbrowser</option>,  <option value="classKTextEdit.html">ktextedit</option>,  <option value="classKTimeWidget.html">ktimewidget</option>,  <option value="classKTimezoneWidget.html">ktimezonewidget</option>,  <option value="classKTipDatabase.html">ktipdatabase</option>,  <option value="classKTipDialog.html">ktipdialog</option>,  <option value="classKToggleAction.html">ktoggleaction</option>,  <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>,  <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>,  <option value="classKToolBar.html">ktoolbar</option>,  <option value="classKToolBarButton.html">ktoolbarbutton</option>,  <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>,  <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>,  <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>,  <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>,  <option value="classKURLLabel.html">kurllabel</option>,  <option value="classKValueSelector.html">kvalueselector</option>,  <option value="classKWidgetAction.html">kwidgetaction</option>,  <option value="classKWindowInfo.html">kwindowinfo</option>,  <option value="classKWizard.html">kwizard</option>,  <option value="classKWordWrap.html">kwordwrap</option>,  <option value="classKWritePermsIcon.html">kwritepermsicon</option>,  <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>,  <option value="classKXMLGUIClient.html">kxmlguiclient</option>,  <option value="classKXMLGUIFactory.html">kxmlguifactory</option>,  <option value="classKXYSelector.html">kxyselector</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>