Hello, I have this class:

Qt Code:
  1. class MyWindow : public QMainWindow {
  2. Q_OBJECT
  3.  
  4. public:
  5. MyWindow();
  6.  
  7. signals:
  8. void aspectRatioChange(AspectRatio aspectRatio);
  9.  
  10. private slots:
  11. void setAspectRatio(QAction* action);
  12.  
  13. private:
  14. struct Impl;
  15. std::auto_ptr<Impl> imp;
  16. };
To copy to clipboard, switch view to plain text mode 

which works alright as it is. I would like to know if I could get rid of that setAspectRatio() private slot somehow by using an "anonymous" function (callback?) in the QObject::connect() statement. My goal is to reduce as much possible the implementation details from my header files.

Thank you