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
keychooser
versekeychooser
btversekeymenu.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 <QMenu>
16
17
#include <QObject>
18
#include <QString>
19
20
21
class
QMouseEvent;
22
class
QTimerEvent;
23
class
QWidget
;
24
25
/**
26
* Menu for book/ch/v dropdown lists.
27
*
28
* This is implemented mostly because it needs a delay which prevents unwanted actions after
29
* the menu has been shown and mouse button is released over some item.
30
*/
31
class
BtVerseKeyMenu
:
public
QMenu
{
32
Q_OBJECT
33
public
:
34
BtVerseKeyMenu
(
QWidget
* parent);
35
protected
:
36
void
mouseReleaseEvent
(QMouseEvent* event)
override
;
37
/** Frees the mouse button release after the delay has elapsed.*/
38
void
timerEvent
(QTimerEvent* event)
override
;
39
40
private
:
41
int
m_timerId
;
42
bool
m_firstClickLock
;
43
};
31
class
BtVerseKeyMenu
:
public
QMenu
{
…
};
BtVerseKeyMenu
Definition
btversekeymenu.h:31
BtVerseKeyMenu::m_firstClickLock
bool m_firstClickLock
Definition
btversekeymenu.h:42
BtVerseKeyMenu::timerEvent
void timerEvent(QTimerEvent *event) override
Definition
btversekeymenu.cpp:36
BtVerseKeyMenu::m_timerId
int m_timerId
Definition
btversekeymenu.h:41
BtVerseKeyMenu::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event) override
Definition
btversekeymenu.cpp:49
QMenu
QWidget
Generated by
1.9.8