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

void lemonView::clearUsedWidgets (  )  [private, slot]

Slot used to clear the tableWidget, totals, amount and card number.

Definition at line 351 of file lemonview.cpp.

Referenced by cancelTransaction().

{
  ui_mainview.editAmount->setText("0.0");
  ui_mainview.editCardNumber->setText("");
  ui_mainview.editCardAuthNumber->setText("");
  ui_mainview.tableWidget->clearContents();
  ui_mainview.tableWidget->setRowCount(0);
  totalSum = 0.0;
  ui_mainview.labelDetailTax1->setText("");
  ui_mainview.labelDetailTax2->setText("");
  ui_mainview.labelDetailUnits->setText("");
  ui_mainview.labelDetailDesc->setText(i18n("No product selected"));
  ui_mainview.labelDetailPrice->setText("");
  ui_mainview.labelDetailDiscount->setText("");
  ui_mainview.labelDetailTotalTaxes->setText("");
  ui_mainview.labelDetailPhoto->clear();
}


Generated by  Doxygen 1.6.0   Back to index