BibleTime
btbookshelfview.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 <QTreeView>
16
17#include <QObject>
18#include <QString>
19
20
22class QKeyEvent;
23class QModelIndex;
24class QMouseEvent;
25class QPoint;
26class QWidget;
27
29 Q_OBJECT
30 public:
31 BtBookshelfView(QWidget *parent = nullptr);
32
33 CSwordModuleInfo *getModule(const QModelIndex &index) const;
34
35 Q_SIGNALS:
36 void contextMenuActivated(QPoint pos);
38 QPoint pos);
41
42 protected:
43 void keyPressEvent(QKeyEvent *event) override;
44 void mousePressEvent(QMouseEvent *event) override;
45
46};
void moduleHovered(CSwordModuleInfo *item)
void moduleActivated(CSwordModuleInfo *item)
void mousePressEvent(QMouseEvent *event) override
void contextMenuActivated(QPoint pos)
void moduleContextMenuActivated(CSwordModuleInfo *item, QPoint pos)
void keyPressEvent(QKeyEvent *event) override
CSwordModuleInfo * getModule(const QModelIndex &index) const