| 48 | } |
| 49 | |
| 50 | PwDialog::PwDialog(pass_info *p, bool write) |
| 51 | :QDialog(p->getWidget()), pi(p) |
| 52 | { |
| 53 | pi = p; |
| 54 | setupUi(this); |
| 55 | image->setPixmap(QPixmap(pi->getImage())); |
| 56 | description->setText(pi->getDescription()); |
| 57 | title->setText(pi->getType()); |
| 58 | if (!pi->getTitle().isEmpty()) |
| 59 | setWindowTitle(pi->getTitle()); |
| 60 | else |
| 61 | setWindowTitle(XCA_TITLE); |
| 62 | if (pi->getType() != "PIN") |
| 63 | takeHex->hide(); |
| 64 | setRW(write); |
| 65 | } |
| 66 | |
| 67 | void PwDialog::setRW(bool write) |
| 68 | { |