title: customContextMenuRequested(const QPoint&) want to have customContextMenuRequested(const QPoint&, QTableView)
body: <p>I'm stuck on a issue I have and I dont know how to solve it.
  The issue is that I want to have the QTableView object that I'm working with to be sent to the next function. In this way I don't need to copy the function for all the tables that I have. I can make a generic function and reuse it. But to do that I need to send the QTableView so that   I can add the row I want to add... Please see how my code looks. The code is how I would like to have it.</p>
  
  <pre><code>void InputWindow::on_pushButton_ViewMilestone_clicked()
  {
  
      QTableView *viewMilestone = new QTableView;
      viewMilestone-&gt;setModel(sourceMilestonesModel);
      viewMilestone-&gt;setContextMenuPolicy(Qt::CustomContextMenu);
      viewMilestone-&gt;resizeColumnsToContents();
      viewMilestone-&gt;setMinimumWidth(getVerticalSizeOfQTableView(viewMilestone));
      viewMilestone-&gt;show();
  
      connect(viewMilestone, SIGNAL(customContextMenuRequested(const QPoint&amp;)),
              this, SLOT(showMenu(const QPoint&amp;)));
  
  }
  
  void InputWindow::showMenu(const QPoint &amp;pos, QTableView *tableView)
  {
      QAction *insertRowAction = new QAction(this);
      insertRowAction-&gt;setText("Insert new row");
  
      connect(insertRowAction, SIGNAL(triggered()),
              this, SLOT(addNewRow()));
  
      QMenu *rightClickMenu = new QMenu(this);
      rightClickMenu-&gt;addAction(insertRowAction);
      rightClickMenu-&gt;popup(tableView-&gt;viewport()-&gt;mapToGlobal(pos));
  
  }
  
  void InputWindow::addNewRow(QTableView *qTblView)
  {
      QAbstractItemModel *tableModel = qTblView-&gt;model();
      int rows = tableModel-&gt;rowCount();
      tableModel-&gt;insertRow(rows);
  }
  </code></pre>