Summary: | Can't add a method/attribute to a class within a namespace (and also nested namespace) | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Benjamin Piwowarski <bpiwowar> |
Component: | Language Support: CPP (old) | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | patch rmb menu to work correctly |
Description
Benjamin Piwowarski
2003-03-27 17:30:22 UTC
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; } |