|
QtPass 2.0.0
Developer documentation
|
Message boxes whose text is shown as the text it is. More...
Functions | |
| auto | show (QWidget *parent, QMessageBox::Icon icon, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Ok) -> QMessageBox::StandardButton |
| Show a modal message box with plain text and wait for it. | |
| auto | askYes (QWidget *parent, const QString &title, const QString &text) -> bool |
| Ask a yes/no question in plain text. | |
| void | warning (QWidget *parent, const QString &title, const QString &text) |
| Show a warning in plain text. | |
| void | critical (QWidget *parent, const QString &title, const QString &text) |
| Show an error in plain text. | |
Message boxes whose text is shown as the text it is.
QMessageBox's static helpers read their text as rich text when it looks like it (Qt::AutoText). A message quoting a name from the store would then be markup that other writers of a shared store control: a folder named <img src=" with dev/zero">.gpg beneath it has Qt read /dev/zero without end. These set Qt::PlainText before the text, for every message that quotes a path, a field or anything else from the store.
| auto PlainMessageBox::askYes | ( | QWidget * | parent, |
| const QString & | title, | ||
| const QString & | text ) -> bool |
Ask a yes/no question in plain text.
| parent | The parent widget. |
| title | The window title. |
| text | The question, shown as it is. |
Definition at line 25 of file plainmessagebox.cpp.
| void PlainMessageBox::critical | ( | QWidget * | parent, |
| const QString & | title, | ||
| const QString & | text ) |
Show an error in plain text.
| parent | The parent widget. |
| title | The window title. |
| text | The error, shown as it is. |
Definition at line 36 of file plainmessagebox.cpp.
| auto PlainMessageBox::show | ( | QWidget * | parent, |
| QMessageBox::Icon | icon, | ||
| const QString & | title, | ||
| const QString & | text, | ||
| QMessageBox::StandardButtons | buttons = QMessageBox::Ok ) -> QMessageBox::StandardButton |
Show a modal message box with plain text and wait for it.
| parent | The parent widget. |
| icon | The icon. |
| title | The window title. |
| text | The message, shown as it is. |
| buttons | The buttons offered. |
Definition at line 10 of file plainmessagebox.cpp.
| void PlainMessageBox::warning | ( | QWidget * | parent, |
| const QString & | title, | ||
| const QString & | text ) |
Show a warning in plain text.
| parent | The parent widget. |
| title | The window title. |
| text | The warning, shown as it is. |
Definition at line 31 of file plainmessagebox.cpp.