mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 14:32:39 -04:00
Switch browser integration to use native raising of windows
This commit is contained in:
parent
c630214915
commit
5488f1bfc3
16 changed files with 229 additions and 34 deletions
|
@ -63,6 +63,11 @@ public:
|
|||
Last = Merge,
|
||||
};
|
||||
|
||||
enum Action {
|
||||
None = 0,
|
||||
Raise = 1,
|
||||
};
|
||||
|
||||
typedef uint64_t Buttons;
|
||||
|
||||
static void initializeButtonDefs();
|
||||
|
@ -72,22 +77,26 @@ public:
|
|||
const QString& title,
|
||||
const QString& text,
|
||||
Buttons buttons = MessageBox::Ok,
|
||||
Button defaultButton = MessageBox::NoButton);
|
||||
Button defaultButton = MessageBox::NoButton,
|
||||
Action action = MessageBox::None);
|
||||
static Button information(QWidget* parent,
|
||||
const QString& title,
|
||||
const QString& text,
|
||||
Buttons buttons = MessageBox::Ok,
|
||||
Button defaultButton = MessageBox::NoButton);
|
||||
Button defaultButton = MessageBox::NoButton,
|
||||
Action action = MessageBox::None);
|
||||
static Button question(QWidget* parent,
|
||||
const QString& title,
|
||||
const QString& text,
|
||||
Buttons buttons = MessageBox::Ok,
|
||||
Button defaultButton = MessageBox::NoButton);
|
||||
Button defaultButton = MessageBox::NoButton,
|
||||
Action action = MessageBox::None);
|
||||
static Button warning(QWidget* parent,
|
||||
const QString& title,
|
||||
const QString& text,
|
||||
Buttons buttons = MessageBox::Ok,
|
||||
Button defaultButton = MessageBox::NoButton);
|
||||
Button defaultButton = MessageBox::NoButton,
|
||||
Action action = MessageBox::None);
|
||||
|
||||
private:
|
||||
static Button m_nextAnswer;
|
||||
|
@ -99,7 +108,8 @@ private:
|
|||
const QString& title,
|
||||
const QString& text,
|
||||
Buttons buttons = MessageBox::Ok,
|
||||
Button defaultButton = MessageBox::NoButton);
|
||||
Button defaultButton = MessageBox::NoButton,
|
||||
Action action = MessageBox::None);
|
||||
|
||||
static QString stdButtonText(QMessageBox::StandardButton button);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue