[Bug 66039] New: Overloaded Function in C++, Tool tip on the sceen can not type

Daniel Daugherty Daniel at mdaugherty.com
Tue Oct 14 23:09:06 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=66039     
           Summary: Overloaded Function in C++, Tool tip on the sceen can
                    not type
           Product: kdevelop
           Version: 2.1.5
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: Daniel at mdaugherty.com


Version:           2.1.5 (using KDE 3.1.1)
Installed from:    SuSE
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-64GB-SMP

If you have a class in C++ and create and object of that class. If you call a member function of that class that is overloaded, and both except a paramiter. The tool tip is displayed on the screen (Tool tip - the tan box that displays the function deffinition). The user can not type until he moves his mouse and either clicks the tool tip, or clicks some place else on the screen.

Example code that can cause the error:
int main()
{
  ZString Z1("Hello, World!");
  Z1.Print(cout);
  cout << endl;
  Z1.String_Copy("Test");
  Z1.Print(cout);
  cout << endl;
  Z1.String_Concat("This");
  Z1.Print(cout);
  ZString Z2("Linux");
  Z2.Print(cout);
  cout << endl;
  Z1.String_Concat(Z2);
  Z1.Print(cout);	
  cout << endl;

  return EXIT_SUCCESS;
}

The lines that will cause this to happen are the ones where you type String_Concat because I have the function overloaded with a C-Type string, and an object of my class. It does not happen with functions like Print because they are not overloaded. It also does not happen when you call the copy constructor of ZString because no tool tip is displayed.




More information about the KDevelop-devel mailing list