From kdevelop-bugs Thu Mar 29 18:36:35 2012 From: Piotr Mierzwinski Date: Thu, 29 Mar 2012 18:36:35 +0000 To: kdevelop-bugs Subject: [Bug 295683] 'Add private/public member' functionality made adding function to private/public slots Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=133304635417338 https://bugs.kde.org/show_bug.cgi?id=295683 Piotr Mierzwinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |--- --- Comment #1 from Piotr Mierzwinski --- Example: class MyClass { Q_OBJECT public: MyClass(); private: void foo(); public slots: void slotFoo(); }; MyClass::MyClass() { newFoo(); } Below header file after using assistant: Declare 'void newFoo()' as: 1 - public function in MyClass 2 - private function in NewClass 0 - Hide". And selected Alt+1 (public function). class MyClass { Q_OBJECT public: MyClass(); private: void foo(); public slots: void slotFoo(); void newFoo(); }; Declaration: "void newFoo();" should be in section "public". And one thing KDevelop not respect set (in configuration) separators when inserts new function's declaration. I will request new bug. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs