private void addRow(int row, String email, boolean mod, boolean login) {
QFontMetrics f = QApplication.fontMetrics();
int fontHeight = f.height();
QTableWidgetItem emailWidget = new QTableWidgetItem();
emailWidget.setText(email);
table.setItem(row, 0, emailWidget);
table.setRowHeight(row, fontHeight);
emailWidget.setToolTip(email);
ItemFlags flags = emailWidget.flags();
flags.clear(ItemFlag.ItemIsEditable);
emailWidget.setFlags(flags);
QTableWidgetItem accessWidget = new QTableWidgetItem();
if (mod)
accessWidget.setText(tr("Modify"));
else
accessWidget.setText(tr("Read Only"));
table.setItem(row, 1,accessWidget);
accessWidget.setFlags(flags);
QTableWidgetItem loginWidget = new QTableWidgetItem();
if (login)
loginWidget.setText(tr("True"));
else
loginWidget.setText(tr("False"));
table.setItem(row, 2, loginWidget);
loginWidget.setFlags(flags);
}