Logo Search packages:      
Sourcecode: lemonpos-kde4 version File versions  Download package

void lemon::reactOnLogOn (  )  [private, slot]

Slot used to check if the ui can be enabled

Definition at line 342 of file lemon.cpp.

References lemonView::canStartSelling(), disableUi(), enableUi(), and lemonView::getLoggedUser().

Referenced by lemon().

 QString msg = i18n("Administrator needs to start operation before you can start selling...");
  if (m_view->canStartSelling())
  else {
    //Show a dialog saying that operations need to be started by admin ???
    if (m_view->getLoggedUser() !="admin")
      KPassivePopup::message( i18n("Warning:"),msg,
                              DesktopIcon("dialog-warning", 48), this );

Generated by  Doxygen 1.6.0   Back to index