Hello,

I get a warning from the java compiler if there is a private function, whose only invocations go the signal-slot way, like this:
Qt Code:
  1. public Mainwindow() {
  2. ...
  3. m_ui.actionHinzuf_gen_2.triggered.connect(this, "addCategory()");
  4. ...
  5. }
  6.  
  7. private void addCategory() {
  8. AddCategoryWidget acw=new AddCategoryWidget(this);
  9. m_layoutManager.showWidget(acw);
  10. }
To copy to clipboard, switch view to plain text mode 
The method addCategory() from the type Mainwindow is never used locally
Is there another possibility to getting rid of this warning than to disable all warnings of this type or to making the function protected?

best regards,
kiker99