Bug 64262

Summary: Incorrect source example in KComboBox class documentation page
Product: [Websites] docs.kde.org Reporter: Colin Desmond <colin.desmond>
Component: generalAssignee: Documentation Editorial Team <kde-doc-english>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Colin Desmond 2003-09-14 15:22:12 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3 
OS:          Linux

The following code sample on the KComboBox documentation page (http://developer.kde.org/documentation/library/cvs-api/kdeui/html/classKComboBox.html)
should have an extra ")" before the final ";"

connect(combo,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&));

should be

connect(combo,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&)) -->>)<<--;
Comment 1 Stephan Kulow 2003-09-14 15:41:10 UTC
Subject: kdelibs/kdeui

CVS commit by coolo: 

doxygen should have warned :)
CCMAIL: 64262-close@bugs.kde.org


  M +2 -2      kcombobox.h   1.135


--- kdelibs/kdeui/kcombobox.h  #1.134:1.135
@@ -84,5 +84,5 @@ class KURL;
  * KCompletion *comp = combo->completionObject();
  * // Connect to the return pressed signal - optional
- * connect(combo,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&));
+ * connect(combo,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&)));
  *
  * // Provide the to be completed strings. Note that those are separate from the combo's
@@ -98,5 +98,5 @@ class KURL;
  * combo->setCompletionObject( comp );
  * // Connect to the return pressed signal - optional
- * connect(combo,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&));
+ * connect(combo,SIGNAL(returnPressed(const QString&)),comp,SLOT(addItem(const QString&)));
  * \endcode
  *