QtPass
2.0.0
Developer documentation
Toggle main menu visibility
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
24
namespace
PlainMessageBox
{
25
35
auto
show
(QWidget *parent, QMessageBox::Icon icon,
const
QString &title,
36
const
QString &text,
37
QMessageBox::StandardButtons buttons = QMessageBox::Ok)
38
-> QMessageBox::StandardButton;
39
47
auto
askYes
(QWidget *parent,
const
QString &title,
const
QString &text) -> bool;
48
55
void
warning
(QWidget *parent,
const
QString &title,
const
QString &text);
56
63
void
critical
(QWidget *parent,
const
QString &title,
const
QString &text);
64
65
}
// namespace PlainMessageBox
66
67
#endif
// SRC_PLAINMESSAGEBOX_H_
PlainMessageBox
Message boxes whose text is shown as the text it is.
Definition
plainmessagebox.h:24
PlainMessageBox::show
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.
Definition
plainmessagebox.cpp:10
PlainMessageBox::askYes
auto askYes(QWidget *parent, const QString &title, const QString &text) -> bool
Ask a yes/no question in plain text.
Definition
plainmessagebox.cpp:25
PlainMessageBox::warning
void warning(QWidget *parent, const QString &title, const QString &text)
Show a warning in plain text.
Definition
plainmessagebox.cpp:31
PlainMessageBox::critical
void critical(QWidget *parent, const QString &title, const QString &text)
Show an error in plain text.
Definition
plainmessagebox.cpp:36
src
plainmessagebox.h
Generated by
1.18.0