BibleTime
|
#include <btversekeymenu.h>
Public Member Functions | |
BtVerseKeyMenu (QWidget *parent) | |
Protected Member Functions | |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | timerEvent (QTimerEvent *event) override |
Private Attributes | |
bool | m_firstClickLock |
int | m_timerId |
Menu for book/ch/v dropdown lists.
This is implemented mostly because it needs a delay which prevents unwanted actions after the menu has been shown and mouse button is released over some item.
Definition at line 31 of file btversekeymenu.h.
BtVerseKeyMenu::BtVerseKeyMenu | ( | QWidget * | parent | ) |
Definition at line 20 of file btversekeymenu.cpp.
References BT_CONNECT, m_firstClickLock, and m_timerId.
|
overrideprotected |
Definition at line 49 of file btversekeymenu.cpp.
References m_firstClickLock.
|
overrideprotected |
Frees the mouse button release after the delay has elapsed.
Definition at line 36 of file btversekeymenu.cpp.
References m_firstClickLock, and m_timerId.
|
private |
Definition at line 42 of file btversekeymenu.h.
Referenced by BtVerseKeyMenu(), mouseReleaseEvent(), and timerEvent().
|
private |
Definition at line 41 of file btversekeymenu.h.
Referenced by BtVerseKeyMenu(), and timerEvent().