formatting
This commit is contained in:
parent
afb40c9f0a
commit
a01ae48964
1 changed files with 49 additions and 47 deletions
|
@ -165,6 +165,7 @@ void MessageBrowser::onAnchorClicked(const QUrl &url) {
|
|||
else {
|
||||
// User clicked some URL. Open it in external browser or download?
|
||||
MessageBox box(qApp->mainFormWidget());
|
||||
|
||||
box.setText(tr("You clicked some link. You can download the link contents or open it in external web browser."));
|
||||
box.setInformativeText(tr("What action do you want to take?"));
|
||||
box.setDetailedText(url.toString());
|
||||
|
@ -173,6 +174,7 @@ void MessageBrowser::onAnchorClicked(const QUrl &url) {
|
|||
QAbstractButton* btn_download = box.addButton(tr("Download"), QMessageBox::ButtonRole::ActionRole);
|
||||
QAbstractButton* btn_cancel = box.addButton(QMessageBox::StandardButton::Cancel);
|
||||
bool always;
|
||||
|
||||
MessageBox::setCheckBox(&box, tr("Always open links in external browser."), &always);
|
||||
|
||||
box.setDefaultButton(QMessageBox::StandardButton::Cancel);
|
||||
|
|
Loading…
Add table
Reference in a new issue