QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
plainmessagebox.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
8#ifndef SRC_PLAINMESSAGEBOX_H_
9#define SRC_PLAINMESSAGEBOX_H_
10
11#include <QMessageBox>
12
24namespace PlainMessageBox {
25
35auto show(QWidget *parent, QMessageBox::Icon icon, const QString &title,
36 const QString &text,
37 QMessageBox::StandardButtons buttons = QMessageBox::Ok)
38 -> QMessageBox::StandardButton;
39
47auto askYes(QWidget *parent, const QString &title, const QString &text) -> bool;
48
55void warning(QWidget *parent, const QString &title, const QString &text);
56
63void critical(QWidget *parent, const QString &title, const QString &text);
64
65} // namespace PlainMessageBox
66
67#endif // SRC_PLAINMESSAGEBOX_H_
Message boxes whose text is shown as the text it is.
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.