Пример #1
0
void dspCheckRegister::sPopulateMenu( QMenu * pMenu )
{
  QAction *menuItem;

  if(_check->altId() == 1)
  {
    menuItem = pMenu->addAction(tr("Void Posted Check..."), this, SLOT(sVoidPosted()));
    menuItem->setEnabled(_privileges->check("VoidPostedAPCheck"));
  }
}
Пример #2
0
void dspCheckRegister::sPopulateMenu( QMenu * pMenu )
{
  int menuItem;

  if(_check->altId() == 1)
  {
    menuItem = pMenu->insertItem(tr("Void Posted Check"), this, SLOT(sVoidPosted()), 0);
    if(!_privileges->check("VoidPostedAPCheck"))
      pMenu->setItemEnabled(menuItem, FALSE);
  }
}