BibleTime
btdropdownchooserbutton.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 <QToolButton>
16
17
19
20/**
21* Base class for book/ch/v dropdown list chooser buttons.
22*/
24 Q_OBJECT
25 public:
26 BtDropdownChooserButton(void (BtBibleKeyWidget::*populateMenu)(QMenu &),
27 BtBibleKeyWidget & parent);
28
29 /** The item list is constructed here just before the menu is shown.*/
30 void mousePressEvent(QMouseEvent* event) override;
31
32 protected: // methods:
33
34 void wheelEvent(QWheelEvent* event) override;
35
36 Q_SIGNALS:
37
38 void stepItem(int step);
39
40 private: // fields:
41
44
45};
void stepItem(int step)
void mousePressEvent(QMouseEvent *event) override
void(BtBibleKeyWidget::* m_populateMenu)(QMenu &)
void wheelEvent(QWheelEvent *event) override