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

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

SLot used to update the clock on status bar

Definition at line 462 of file lemon.cpp.

References updateDate().

Referenced by lemon().

{
  QTime time = QTime::currentTime();
  QString text = time.toString("hh:mm");
  if ((time.second() % 2) == 0)
    text[2] = '.';
  labelTime->setText(text);
  if ((time.hour()==0) && (time.minute()==0) && (time.second()==0) ) updateDate();
}


Generated by  Doxygen 1.6.0   Back to index