Add setting for not displaying KeePassHTTP migration popup

This commit is contained in:
varjolintu 2019-07-02 11:55:15 +03:00 committed by Jonathan White
parent d12f15da92
commit c27ee6aba8
7 changed files with 65 additions and 16 deletions

View file

@ -81,25 +81,29 @@ public:
const QString& text,
Buttons buttons = MessageBox::Ok,
Button defaultButton = MessageBox::NoButton,
Action action = MessageBox::None);
Action action = MessageBox::None,
QCheckBox* checkbox = nullptr);
static Button information(QWidget* parent,
const QString& title,
const QString& text,
Buttons buttons = MessageBox::Ok,
Button defaultButton = MessageBox::NoButton,
Action action = MessageBox::None);
Action action = MessageBox::None,
QCheckBox* checkbox = nullptr);
static Button question(QWidget* parent,
const QString& title,
const QString& text,
Buttons buttons = MessageBox::Ok,
Button defaultButton = MessageBox::NoButton,
Action action = MessageBox::None);
Action action = MessageBox::None,
QCheckBox* checkbox = nullptr);
static Button warning(QWidget* parent,
const QString& title,
const QString& text,
Buttons buttons = MessageBox::Ok,
Button defaultButton = MessageBox::NoButton,
Action action = MessageBox::None);
Action action = MessageBox::None,
QCheckBox* checkbox = nullptr);
class OverrideParent
{
@ -123,7 +127,8 @@ private:
const QString& text,
Buttons buttons = MessageBox::Ok,
Button defaultButton = MessageBox::NoButton,
Action action = MessageBox::None);
Action action = MessageBox::None,
QCheckBox* checkbox = nullptr);
static QString stdButtonText(QMessageBox::StandardButton button);
};