Bug 64262 - Incorrect source example in KComboBox class documentation page
Summary: Incorrect source example in KComboBox class documentation page
Status: RESOLVED FIXED
Alias: None
Product: docs.kde.org
Classification: Websites
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-14 15:22 UTC by Colin Desmond
Modified: 2003-09-14 15:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
  *