Version: CVS (using KDE KDE 3.1.1) Installed from: Debian testing/unstable Packages Compiler: N/A N/A OS: Linux It is impossible to add a new method or attribute in a class within a namespace.
works in cvs (adymo)
It doesn't work (says "Please select a class").
Created attachment 2077 [details] patch rmb menu to work correctly hopefully the patch is correct this time ;) made with: 'env LC_ALL=C TZ=UTC0 diff -Naurb --from-file kdevelop/parts/classview/ kdevelop_changed/parts/classview/{classtooldlg.cpp,classtreebase.cpp}'
uh oh ... ok the comment should be before the patch xD (the website is somewhat illogical for a first-timer). the combobox works fine, but the rmb menu of the treeview in the classview doesn't work. the previous patch fixs that and the problem with classtool (the correct class is not selected when choosing "Parent classes..." etc. from the rmb-menu).
Subject: kdevelop/parts/classview CVS commit by aclu: The rmb menu of the treeview in the classview doesn't work. This patch fixes that and the problem with classtool (the correct class is not selected when choosing "Parent classes..." etc. from the rmb-menu). CCMAIL: 56501-done@bugs.kde.org M +2 -0 classtooldlg.cpp 1.14 M +2 -4 classtreebase.cpp 1.47 --- kdevelop/parts/classview/classtooldlg.cpp #1.13:1.14 @@ -147,4 +147,6 @@ void ClassToolDialog::setLanguageSupport void ClassToolDialog::setClassName(const QString &name) { + if ( class_combo->count() == 0 ) refresh(); + QListBox *lb = class_combo->listBox(); --- kdevelop/parts/classview/classtreebase.cpp #1.46:1.47 @@ -93,10 +93,8 @@ KPopupMenu *ClassTreeItem::createPopup() QString ClassTreeItem::scopedText() const { - QString str; - if (m_item) - str = m_item->path(); + return m_item->path(); - return str.replace(QRegExp("\\."), "::"); + return QString::null; }