Ejemplo n.º 1
0
void dspWoSoStatus::sPopulateMenu(QMenu *pMenu, QTreeWidgetItem *pSelected)
{
  if ((pSelected->text(1) == "E") || (pSelected->text(1) == "I"))
    pMenu->insertItem(tr("View W/O Material Requirements..."), this, SLOT(sViewWomatlreq()), 0);

  pMenu->insertItem(tr("Close W/O..."), this, SLOT(sCloseWo()), 0);
}
Ejemplo n.º 2
0
void dspWoSoStatusMismatch::sPopulateMenu(QMenu *pMenu, QTreeWidgetItem *pSelected, int)
{
  if ((pSelected->text(1) == "E") || (pSelected->text(1) == "I"))
    pMenu->addAction(tr("View W/O Material Requirements..."), this, SLOT(sViewWomatlreq()));

  pMenu->addAction(tr("Close W/O..."), this, SLOT(sCloseWo()));
}