BibleTime
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
BtVerseKeyMenu Class Reference

#include <btversekeymenu.h>

Inheritance diagram for BtVerseKeyMenu:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BtVerseKeyMenu()

BtVerseKeyMenu::BtVerseKeyMenu ( QWidget parent)

Definition at line 20 of file btversekeymenu.cpp.

References BT_CONNECT, m_firstClickLock, and m_timerId.

Member Function Documentation

◆ mouseReleaseEvent()

void BtVerseKeyMenu::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 49 of file btversekeymenu.cpp.

References m_firstClickLock.

◆ timerEvent()

void BtVerseKeyMenu::timerEvent ( QTimerEvent *  event)
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.

Member Data Documentation

◆ m_firstClickLock

bool BtVerseKeyMenu::m_firstClickLock
private

Definition at line 42 of file btversekeymenu.h.

Referenced by BtVerseKeyMenu(), mouseReleaseEvent(), and timerEvent().

◆ m_timerId

int BtVerseKeyMenu::m_timerId
private

Definition at line 41 of file btversekeymenu.h.

Referenced by BtVerseKeyMenu(), and timerEvent().


The documentation for this class was generated from the following files: