void GsmMapSummaryDialog::updateWidgets() { // QPushButton *refresh_bt = ui->buttonBox->button(QDialogButtonBox::Reset); // QPushButton *save_bt = ui->buttonBox->button(QDialogButtonBox::Save); // if (file_closed_) { // if (refresh_bt) { // refresh_bt->setEnabled(false); // } // ui->commentsTextEdit->setReadOnly(true); // if (save_bt) { // save_bt->setEnabled(false); // } // return; // } ui->summaryTextEdit->setHtml(summaryToHtml()); }
void CaptureFilePropertiesDialog::updateWidgets() { QPushButton *refresh_bt = ui->buttonBox->button(QDialogButtonBox::Reset); QPushButton *save_bt = ui->buttonBox->button(QDialogButtonBox::Save); if (file_closed_) { if (refresh_bt) { refresh_bt->setEnabled(false); } ui->commentsTextEdit->setReadOnly(true); if (save_bt) { save_bt->setEnabled(false); } return; } bool enable = wtap_dump_can_write(cap_file_.capFile()->linktypes, WTAP_COMMENT_PER_SECTION); save_bt->setEnabled(enable); ui->commentsTextEdit->setEnabled(enable); ui->detailsTextEdit->setHtml(summaryToHtml()); ui->commentsTextEdit->setText(cf_read_shb_comment(cap_file_.capFile())); }
void Mtp3SummaryDialog::updateWidgets() { ui->summaryTextEdit->setHtml(summaryToHtml()); WiresharkDialog::updateWidgets(); }