BibleTime
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
v
Variables
a
b
c
d
g
h
i
k
l
m
p
r
s
u
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
w
Properties
Related Symbols
Files
File List
File Members
All
a
b
c
e
f
h
i
j
k
l
m
o
p
r
s
t
u
w
Functions
b
c
f
i
j
l
m
o
p
r
t
Variables
Typedefs
Enumerations
Enumerator
Macros
a
b
c
i
l
m
r
s
t
u
w
src
frontend
displaywindow
bttoolbarpopupaction.h
Go to the documentation of this file.
1
/*********
2
*
3
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
*
5
* This file is part of BibleTime's source code, https://bibletime.info/
6
*
7
* Copyright 1999-2025 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#pragma once
14
15
#include <QWidgetAction>
16
17
#include <memory>
18
#include <QIcon>
19
#include <QObject>
20
#include <QString>
21
22
23
class
QEvent;
24
class
QWidget
;
25
26
class
QMenu
;
27
28
// This class manages the toolbar display for going forward and backward in history.
29
class
BtToolBarPopupAction
:
public
QWidgetAction
{
30
Q_OBJECT
31
public
:
32
33
BtToolBarPopupAction
(
const
QIcon& icon,
const
QString& text,
QObject
* parent);
34
~BtToolBarPopupAction
()
override
;
35
36
// return the QMenu object so a popup menu can be constructed
37
QMenu
*
popupMenu
()
const
;
38
39
bool
event
(QEvent* e)
override
;
40
41
protected
:
42
QWidget
*
createWidget
(
QWidget
* parent)
override
;
43
44
private
:
45
std::unique_ptr<QMenu>
const
m_menu
;
46
QIcon
m_icon
;
47
QString
m_text
;
48
};
29
class
BtToolBarPopupAction
:
public
QWidgetAction
{
…
};
BtToolBarPopupAction
Definition
bttoolbarpopupaction.h:29
BtToolBarPopupAction::m_text
QString m_text
Definition
bttoolbarpopupaction.h:47
BtToolBarPopupAction::createWidget
QWidget * createWidget(QWidget *parent) override
Definition
bttoolbarpopupaction.cpp:51
BtToolBarPopupAction::~BtToolBarPopupAction
~BtToolBarPopupAction() override
BtToolBarPopupAction::popupMenu
QMenu * popupMenu() const
Definition
bttoolbarpopupaction.cpp:49
BtToolBarPopupAction::event
bool event(QEvent *e) override
Definition
bttoolbarpopupaction.cpp:64
BtToolBarPopupAction::m_menu
std::unique_ptr< QMenu > const m_menu
Definition
bttoolbarpopupaction.h:45
BtToolBarPopupAction::m_icon
QIcon m_icon
Definition
bttoolbarpopupaction.h:46
QMenu
QObject
QWidgetAction
QWidget
Generated by
1.9.8